zoukankan      html  css  js  c++  java
  • eyoucms 调用

    头部

    <!--首页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}
  • 相关阅读:
    ASP.NET MVC 5 安全性和创建用户角色
    使用ENTITY FRAMEWORK 6以正确的方式管理DBCONTEXT:深入指南
    C#读取二进制格式的shapefile
    ASP.NET MVC 应用程序初学者常见问题汇总
    ASP.NET MVC 应用程序中使用CKEditor 4 的步骤
    html5学习笔记2
    html5学习笔记
    c#接口定义与应用
    Django ORM 优化心得
    携程的那点事
  • 原文地址:https://www.cnblogs.com/xaun/p/12935493.html
Copyright © 2011-2022 走看看