当前位置:首页 > 极致CMS > 关键词 > 极致cms标签 > 正文

极致CMS模版制作入门,极致CMS模版常用标签大全汇总

头部SEO TDK标签

首页SEO-搜索-自定义页面等

<title>{$webconf['web_name']}</title>
<meta name="keywords" content="{$webconf['web_keyword']}" />
<meta name="description" content="{$webconf['web_desc']}" />

栏目列表SEO

<title>{$type['seo_classname']}-{$webconf['web_name']}</title>
<meta name="keywords" content="{$type['keywords']}" />
<meta name="description" content="{$type['description']}" />

内容页SEO

<title>{$jz['seo_title']}-{$webconf['web_name']}</title>
<meta name="keywords" content="{$jz['keywords']}" />
<meta name="description" content="{$jz['description']}" />

系统配置参数

//网站域名
{$webconf['domain']} 
//网站名
{$webconf['web_name']}
//网站描述
{$webconf['web_desc']}
//底部版权
{$webconf['web_copyright']}
//网站备案
{$webconf['web_beian']}
//网站手机
{$webconf['web_tel']}
//400电话
{$webconf['web_tel_400']}
//QQ
{$webconf['web_qq']}
//邮箱
{$webconf['web_email']}
//公司地址
{$webconf['web_address']}
//模板资源路径
{$tpl}
解析路径:/staic/default(当前模板)/

判断是否手机端

{if(isMobile())}
手机端
    {if(isWeixin())}
    微信内置浏览器
    {/if}

{else}

PC电脑端

{/if}

手机端判断,并自定跳转到手机端

<script type="text/javascript">
(function(){ if(/iphone|nokia|sony|eriCSSon|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|wap|mobile/i.test(navigator.userAgent.toLowerCase())){     window.location.href="http://手机端网址/";}})();
</script>

本文属原创,转载请注明原文:https://www.zhimatong.com/jiaocheng/907.html

为保证教程的实用性及扩大知识面覆盖,如果您有相似问题而未解决,可联系在线客服免费技术支持。

点赞 1

联系
顾问

在线
客服
账号登录

没有账号?立即注册

忘记密码

登录即同意用户协议没有账号? 立即注册
账号注册
我已阅读并同意用户协议
立即注册
注册即同意用户协议已有账号? 立即登录
找回密码

操作步骤:邮箱验证->设置新密码

注册即同意用户协议已有账号? 立即登录