苹果cms不同系统页面来设置不同的TDK

{$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}

© 版权声明
THE END
喜欢就支持一下吧
点赞11
评论 抢沙发

请登录后发表评论

    暂无评论内容