苹果CMS v10自用调用标签收藏

/ 0评 / 0

调用网址

{$maccms.path}

调用标题

{$vo.vod_name}

{$vo.art_name}

调用时间格式化

{$obj.vod_time|date='Y-m-d',###}

{$vo.art_time|date='Y-m-d',###}

{$vo.vod_time|date='Y-m-d',###}

调用影片长度

{$vo.vod_duration}

{$obj.vod_duration}

动态页面调用图

{:mac_url_img($vo.vod_pic_thumb)}

{:mac_url_vod_detail($vo)}

{:mac_url_img($vo.vod_pic_slide)}

字数截取

{$vo.vod_lang|mac_filter_html|mac_substring=1}

调用演员

{$vo.vod_actor}

{$vo.vod_actor|mac_url_create='actor','vod','search'}

{$obj.vod_actor|mac_url_create='actor'}

调用tags标签

{$obj.vod_tag|mac_url_create='tag'}

调用当前ID信息

{maccms:type parent="current" order="asc" by="sort"}

{maccms:vod num="30" type="'.$vo['type_id'].'" order="desc" by="time"}

{/maccms:vod}

{/maccms:type}

调用指定属性信息

{maccms:vod order="desc" by="time" num="30" ids="all" type="all" version="电影"}

{$vo.vod_pubdate}

统计点击量

{$vo.topic_rel_vod|explode=',',###|count}

点击量

{$vo.vod_hits}

调用编号

<i {if condition="$key lt 4"} class="stress"{/if}>{$key}</i>

列表调用结合项

<li><a {if condition="$param['state'] eq ''"} class="current" {/if} href="{:mac_url_type($obj,['class'=>$param['class'],'version'=>$param['version'],'state'=>''],'show')}">全部</a></li>

{empty name="$obj.type_extend.state"}

{maccms:foreach name=":explode(',',$obj.parent.type_extend.state)" id="vo2" key="key2"}

<li><a {if condition="$param['state'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['class'=>$param['class'],'version'=>$param['version'],'state'=>$vo2],'show')}">{$vo2}</a></li>

{/maccms:foreach}

{else /}

{maccms:foreach name=":explode(',',$obj.type_extend.state)" id="vo2" key="key2"}

<li><a {if condition="$param['state'] eq $vo2"} class="current" {/if} href="{:mac_url_type($obj,['class'=>$param['class'],'version'=>$param['version'],'state'=>$vo2],'show')}">{$vo2}</a></li>

{/maccms:foreach}

{/empty}

替换字段

$param['class']

$obj.type_extend.class

class'=>''

class'=>$vo2

调用演员结合项

<li><a href="{:mac_url('actor/show',['starsign'=>$param['starsign']])}" {if condition="$param['area']==''"}class="current"{/if}>全部</a></li>

{maccms:foreach name=":explode(',','内地,香港,日本,美国')" id="vo2" key="key2"}

<li><a href="{:mac_url('actor/show',['area'=>$vo2,'starsign'=>$param['starsign']])}" {if condition="$param['area'] eq $vo2"}class="current"{/if}>{$vo2}</a></li>

{/maccms:foreach}

调用网站导航

<li class="nav-item {if condition="$maccms.aid eq 1"} current{/if}"><a class="nav-link" href="{$maccms.path}">网站首页</a></li>

{maccms:type ids="parent" order="asc" by="sort"}

<li class="nav-item {$vo.type_id}={$vo.type_pid} {if condition="($vo.type_id eq MAC_TYPE_ID || $vo.type_id eq MAC_TYPE_PID)"} current{/if}"><a class="nav-link" href="{:mac_url_type($vo)}">{$vo.type_name}</a></li>

{/maccms:type}

调用文章

{maccms:art num="30" paging="yes" type="current" order="desc" by="time"}

<li><span>{$vo.art_time|date='Y-m-d',###}</span><a href="{:mac_url_art_detail($vo)}">{$vo.art_name}</a></li>

{/maccms:art}

调用热门信息

{maccms:art num="20" order="desc" by="hits_month"}

<li><span>{$vo.art_hits_month}</span><i {if condition="$key lt 4"} class="stress"{/if}>{$key}</i><a href="{:mac_url_art_detail($vo)}" title="{$vo.art_name}">{$vo.art_name}</a></li>

{/maccms:art}

调用分页

<div id="page">

{include file="public/paging"}

</div>

封面、列表判断

<!-- 封面 -->

{maccms:type parent="current" order="asc" by="sort"}

{maccms:vod num="30" type="'.$vo['type_id'].'" order="desc" by="time"}

{/maccms:vod}

{/maccms:type}

<!-- 列表 -->

{if condition="$obj.childids eq '' "}

{/maccms:vod}

<!-- 分页 -->

<div id="page">

include file="public/paging"}

</div>

{/if}

发表评论

电子邮件地址不会被公开。 必填项已用*标注