苹果cms不同系统页面来设置不同的TDK
时间:2023年09月24日
/来源:网络
/编辑:佚名
{$maccms.aid}当前系统页面id
根据苹果cms的当前系统页面来设置不同的TDK(title,keywords,description)
{if$maccms.aid==1}
<title>{$maccms.site_name}</title>
<meta name="keywords" content="{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==2}
<title>最近更新 - {$maccms.site_name}</title>
<meta name="keywords" content="最近更新,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==4}
<title>留言板 - {$maccms.site_name}</title>
<meta name="keywords" content="留言板,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==6}
<title>个人中心 - {$maccms.site_name}</title>
<meta name="keywords" content="个人中心,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==10}
<title>{$maccms.site_name}</title>
<meta name="keywords" content="{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==11}
<title>{$obj.type_title|mac_default=$obj.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type_name},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==12}
<title>{$param.year}{$param.area}{$obj.type_name}{$param.lang} - {$maccms.site_name}</title>
<meta name="keywords" content="{$param.year},{$param.area},{$obj.type_name},{$param.lang},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==13}
<title>{$param.wd}{$param.actor}{$param.director}{$param.area}{$param.lang}{$param.year}_搜索结果 - {$maccms.site_name}</title>
<meta name="keywords" content="{$param.wd},{$param.actor},{$param.director},{$param.area},{$param.lang},{$param.year},{$maccms.site_name}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==14}
<title>{$obj.vod_name|mac_default='404'}_影片详情_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}">
{elseif$maccms.aid==15}
<title>{$obj.vod_name|mac_default='404'}{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['name']}高清在线播放_{$obj['vod_play_list'][$param['sid']]['player_info']['show']}_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==16}
<title>{$obj.vod_name|mac_default='404'}_{$obj['vod_down_list'][$param['sid']]['player_info']['show']}_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==20}
<title>资讯首页 - {$maccms.site_name}</title>
<meta name="keywords" content="资讯首页,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==21}
<title>{$obj.type_name|mac_default='404'} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type_name},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==24}
<title>{$obj.art_name|mac_default='404'}_文章详情_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type.type_name},{$obj.art_tag|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.art_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==30}
<title>专题首页 - {$maccms.site_name}</title>
<meta name="keywords" content="电影专题,电视剧专题,动漫专题,综艺专题,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==34}
<title>{$obj.topic_name|mac_default='404'}_专题 - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.topic_name},{$obj.topic_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.topic_des|mac_default=$maccms.site_description}" />
{/if}
根据苹果cms的当前系统页面来设置不同的TDK(title,keywords,description)
{if$maccms.aid==1}
<title>{$maccms.site_name}</title>
<meta name="keywords" content="{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==2}
<title>最近更新 - {$maccms.site_name}</title>
<meta name="keywords" content="最近更新,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==4}
<title>留言板 - {$maccms.site_name}</title>
<meta name="keywords" content="留言板,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==6}
<title>个人中心 - {$maccms.site_name}</title>
<meta name="keywords" content="个人中心,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==10}
<title>{$maccms.site_name}</title>
<meta name="keywords" content="{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==11}
<title>{$obj.type_title|mac_default=$obj.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type_name},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==12}
<title>{$param.year}{$param.area}{$obj.type_name}{$param.lang} - {$maccms.site_name}</title>
<meta name="keywords" content="{$param.year},{$param.area},{$obj.type_name},{$param.lang},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==13}
<title>{$param.wd}{$param.actor}{$param.director}{$param.area}{$param.lang}{$param.year}_搜索结果 - {$maccms.site_name}</title>
<meta name="keywords" content="{$param.wd},{$param.actor},{$param.director},{$param.area},{$param.lang},{$param.year},{$maccms.site_name}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==14}
<title>{$obj.vod_name|mac_default='404'}_影片详情_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}">
{elseif$maccms.aid==15}
<title>{$obj.vod_name|mac_default='404'}{$obj['vod_play_list'][$param['sid']]['urls'][$param['nid']]['name']}高清在线播放_{$obj['vod_play_list'][$param['sid']]['player_info']['show']}_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==16}
<title>{$obj.vod_name|mac_default='404'}_{$obj['vod_down_list'][$param['sid']]['player_info']['show']}_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.vod_actor},{$obj.vod_director},{$obj.vod_name},{$obj.vod_tag|mac_default=$maccms.site_keywords},{$obj.type.type_name},{$maccms.site_name}" />
<meta name="description" content="{$obj.vod_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==20}
<title>资讯首页 - {$maccms.site_name}</title>
<meta name="keywords" content="资讯首页,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==21}
<title>{$obj.type_name|mac_default='404'} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type_name},{$obj.type_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.type_des|mac_default=$maccms.site_description}" />
{elseif$maccms.aid==24}
<title>{$obj.art_name|mac_default='404'}_文章详情_{$obj.type.type_name} - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.type.type_name},{$obj.art_tag|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.art_content|mac_filter_html|mac_substring=110}" />
{elseif$maccms.aid==30}
<title>专题首页 - {$maccms.site_name}</title>
<meta name="keywords" content="电影专题,电视剧专题,动漫专题,综艺专题,{$maccms.site_keywords}" />
<meta name="description" content="{$maccms.site_description}" />
{elseif$maccms.aid==34}
<title>{$obj.topic_name|mac_default='404'}_专题 - {$maccms.site_name}</title>
<meta name="keywords" content="{$obj.topic_name},{$obj.topic_key|mac_default=$maccms.site_keywords},{$maccms.site_name}" />
<meta name="description" content="{$obj.topic_des|mac_default=$maccms.site_description}" />
{/if}
新闻资讯 更多
猜你需要
热门文章
- 178Moban源码谈谈免费源码与收费源码的区别
- 2帝国CMS忘记后台登陆用户名、密码、认证码的解决方法
- 3帝国CMS(EmpireCMS) v7.5后台任意代码执行漏洞及具体修复方法
- 4帝国CMS和WordPress 哪个好?哪个适合建站?
- 5如何解决Discuz的密码错误次数过多请15分钟后登陆的问题
- 6帝国cms灵动标签取得内容和栏目链接地址
- 7emlog pro 注册码“开心”教程(如果有一天,emlog官方版 或者 emlog免费版 跑路了,那用户怎么办?)
- 8织梦CMS在nginx下设置伪静态方法(附nginx伪静态规则)
- 9帝国cms后台登录出现”您还未登录”怎么解决?
- 10帝国cms7.5忘记登录密码 和忘记登录认证码以及多次登录 失败被锁定解决办法