Hongmu Notes
Home Program Notes Apple cms common parameters
Program Notes Apple cms

Apple cms common parameters

Apple cms common parameters

global label

tip

    全局标签就是全局变量,可以在所有页面调用,苹果cmsV10全局数组为 $maccms
    也可以用过php全局变量$GLOBALS获取,常用配置赋值给了 $GLOBALS['config']。

Common website parameters

{$maccms.site_name}网站名称
{$maccms.site_url}网站url
{$maccms.site_wapurl} wap网站url
{$maccms.site_logo}网站logo
{$maccms.site_waplogo} wap网站logo
{$maccms.site_keywords}网站关键字
{$maccms.site_description}网站描述
{$maccms.site_icp}备案号
{$maccms.site_qq}站长qq
{$maccms.site_email}站长email 
{$maccms.site_tj}统计代码;也可以用{$maccms.path}static/js/tj.js 来动态引入统计代码。
{$maccms.site_status}网站状态1开启0关闭
{$maccms.site_close_tip}网站关闭提示信息
 
{$maccms.path}网站目录
{$maccms.path_tpl}当前模板目录
{$maccms.date} 当前日期
{$maccms.search_hot}       热门搜索词
{$maccms.art_extend_class}       全局文章扩展分类
{$maccms.vod_extend_class}       全局视频扩展分类
{$maccms.vod_extend_state}       全局视频资源
{$maccms.vod_extend_version}       全局视频版本
{$maccms.vod_extend_area}       全局视频地区
{$maccms.vod_extend_lang}       全局视频语言
{$maccms.vod_extend_year}       全局视频年代
{$maccms.vod_extend_weekday}       全局视频更新周期
{$maccms.actor_extend_area}       全局演员地区
{$maccms.http_type}  当前url访问协议,会输出 http:// 或者 https://
{$maccms.controller_action} 当前页面触发的程序路径controller/action

If the $maccms. tag is not enough and you want to call the contents of other configuration items, you can use $GLOBALS['config'] to obtain it.

For example:{$GLOBALS'config'['site_name']} Other items: The specific attributes included can be debugged and viewed;

{php} dump($GLOBALS['config']);die; {/php}

Common parameters

$GLOBALS['config']['site'] 站点配置 
$GLOBALS['config']['app'] 预留参数配置
$GLOBALS['config']['user'] 用户配置
$GLOBALS['config']['gbook'] 留言本配置
$GLOBALS['config']['comment'] 评论配置
$GLOBALS['config']['upload'] 上传配置
$GLOBALS['config']['interface'] 站外入库配置
$GLOBALS['config']['pay'] 支付配置
$GLOBALS['config']['collect'] 采集配置
$GLOBALS['config']['api'] api配置
$GLOBALS['config']['connect'] 第三方登录配置
$GLOBALS['config']['weixin'] 微信配置
$GLOBALS['config']['view'] url浏览模式配置
$GLOBALS['config']['path'] url静态路径配置
$GLOBALS['config']['rewrite'] 路由配置
$GLOBALS['config']['weixin'] 微信配置
$GLOBALS['config']['email'] 邮件配置
$GLOBALS['config']['play'] 播放器配置
$GLOBALS['config']['urlsend'] url推送配置
$GLOBALS['config']['sms'] 短信配置
$GLOBALS['config']['extra'] 自定义参数配置
$GLOBALS['config']['seo'] SEO参数配置

------------------SEO参数信息------------------------------ 
{$maccms.seo.vod.name}  视频首页SEO标题
{$maccms.seo.vod.key}  视频首页SEO关键字
{$maccms.seo.vod.des}  视频首页SEO描述
{$maccms.seo.art.name}  文章首页SEO标题
{$maccms.seo.art.key}  文章首页SEO关键字
{$maccms.seo.art.des}  文章首页SEO描述

{$maccms.seo.actor.name}  演员首页SEO标题
{$maccms.seo.actor.key}  演员首页SEO关键字
{$maccms.seo.actor.des}  演员首页SEO描述

{$maccms.seo.role.name}  角色首页SEO标题
{$maccms.seo.role.key}  角色首页SEO关键字
{$maccms.seo.role.des}  角色首页SEO描述
{$maccms.seo.plot.name}  剧情首页SEO标题
{$maccms.seo.plot.key}  剧情首页SEO关键字
{$maccms.seo.plot.des}  剧情首页SEO描述
{$maccms.seo.website.name}  网址导航首页SEO标题
{$maccms.seo.website.key}  网址导航首页SEO关键字
{$maccms.seo.website.des}  网址导航首页SEO描述
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Apple cms commonly used processing functions

Apple cms commonly used processing functions Program Notes Apple cms

Multiple functions are allowed, separated by | {:mac_data_count(0,'all','vod')} Get the total number of videos {:mac_data_count(0,'today','vod')} Get the total number of updated videos today {:mac_data_count(0,'all','art')} Get the total number of articles {:ma…
👁 261

Recommended reading

Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 198
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517
Typecho article page comment style modification

Typecho article page comment style modification Program Notes Typecho

When you need to use typecho for template development, the default comment style is ugly. Therefore, comments need to be re-output or styled. The default comment template file path is: comments.php Mainly used related variables<?php $comments->gravatar('40', ''); ?> //Avatar has two parameters, size,...
👁 389
Typecho's API for adding, deleting, modifying and querying databases

Typecho's API for adding, deleting, modifying and querying databases Program Notes Typecho

Typecho database provides a very easy-to-use API, which is not much different from the native SQL writing method. At the same time, it also handles common SQL security issues, such as SQL injection. From a practical perspective, this article introduces common scenarios for typecho to operate databases and related API usage. Table creation and deletion During the development process of Typecho plug-in, you often need to create your own table. Typecho_… mentioned above
👁 552
PHP ob function record

PHP ob function record Language Notes PHP

Usage of the following three functions ob_get_contents(); ob_end_clean(); ob_start(); You can use these functions to buffer local files and execute local script code. Use ob_start() to save the output code into the buffer, and the page will not be displayed; then use ob_get_contents to get the data in the buffer. o…
👁 141
Summary of methods for calling popular comment articles and calling latest articles in Typecho

Summary of methods for calling popular comment articles and calling latest articles in Typecho Program Notes Typecho

Typecho articles call the Typecho program. When designing a theme, the sidebar sometimes needs to call popular articles or the latest articles. We can call it directly through the script at the specified location. In this article, we will organize this method of calling articles, which can be directly called and used in templates where needed in the future. In fact, designing a theme is just that. After the static template is completed, it is called directly. The latest article calls <?php $t…
👁 295