头部

<!--首页seo标题-->
<title>{eyou:global name=\'web_title\' /}</title>
<!--首页seo描述-->
<meta name="description" content="{eyou:global name=\'web_description\' /}" />
<!--首页seo关键词-->
<meta name="keywords" content="{eyou:global name=\'web_keywords\' /}" />

logo
{eyou:global name=\'web_logo\' /}

{eyou:include file="header.htm" /}
{eyou:include file="footer.htm" /}

导航  banner

{eyou:channel type="top" row="60" id="field" currentstyle="activeNav"}
        <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a></li>
{/eyou:channel}

{eyou:adv pid=\'7\' currentstyle="active"}
        <div class="item {eyou:eq name=\'$i\' value=\'1\'}active{/eyou:eq}">
            <img alt="{$field.title}" src="{$field.litpic}">
        </div>
{/eyou:adv}

常用

当前栏目
{eyou:type typeid=\'栏目ID\' empty=\'\'}
<a href="{$field.typeurl}">{$field.typename}</a>
{/eyou:type}

typeid=\'\' 指定栏目ID,如果没有指定则获取当前列表页的栏目ID
type=\'self\' 表示当前栏目
l type=\'top\' 表示当前栏目最顶级的一级栏目
addfields=\'content\' 自定义字段名,多个字段以逗号隔开
empty=\'\' 没有数据时显示的文案
id=\'\' 可以任意指定循环里的变量名替代field,假设id=\'field1\',模板调用如:{$field.typename} 变成 {$field1.typename}

面包屑导航
{eyou:position style="crumb" /}
详情    {$eyou.field.content} 
时间    {$eyou.field.add_time|MyDate=\'Y-m-d H:i:s\',###}   /*这里如果是从某个标签内的话把 $eyou去掉即可。*/
作者    {$eyou.field.author}
点击    {eyou:arcclick /}
详情获取栏目图片
{eyou:flink type=\'text\' row=\'30\' titlelen=\'15\'}
   <a href="{$field.url}" target="_blank">{$field.title}</a>
{/eyou:flink}

友情链接

{eyou:type typeid=\'\'}
         <a href="{$field.typeurl}" class="backR fr">返回</a>
{/eyou:type}

推荐调用

{eyou:arclist typeid=\'72\'limit=\'0,10\' flag=\'a\' titlelen=\'30\' infolen=\'160\' orderby=\'add_time\'}
          <div class="swiper-slide">
            <div class="pic">
              <img src="{$field.litpic}" alt="{$field.title}">
            </div>
            <div class="tit">{$field.title}</div>
          </div>
{/eyou:arclist}

 

版权声明:本文为xaun原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/xaun/p/12935493.html