苹果CMS v10自用调用标签收藏
调用网址
1
|
{ $maccms .path} |
调用标题
1
2
|
{ $vo .vod_name} { $vo .art_name} |
调用时间格式化
1
2
3
|
{ $obj .vod_time| date = 'Y-m-d' ,###} { $vo .art_time| date = 'Y-m-d' ,###} { $vo .vod_time| date = 'Y-m-d' ,###} |
调用影片长度
1
2
|
{ $vo .vod_duration} { $obj .vod_duration} |
动态页面调用图
1
2
3
|
{:mac_url_img( $vo .vod_pic_thumb)} {:mac_url_vod_detail( $vo )} {:mac_url_img( $vo .vod_pic_slide)} |
字数截取
1
|
{ $vo .vod_lang|mac_filter_html|mac_substring=1} |
调用演员
1
2
3
|
{ $vo .vod_actor} { $vo .vod_actor|mac_url_create= 'actor' , 'vod' , 'search' } { $obj .vod_actor|mac_url_create= 'actor' } |
调用tags标签
1
|
{ $obj .vod_tag|mac_url_create= 'tag' } |
调用当前ID信息
1
2
3
4
|
{maccms:type parent= "current" order= "asc" by= "sort" } {maccms:vod num= "30" type= "'.$vo['type_id'].'" order= "desc" by= "time" } {/maccms:vod} {/maccms:type} |
调用指定属性信息
1
2
|
{maccms:vod order= "desc" by= "time" num= "30" ids= "all" type= "all" version= "电影" } { $vo .vod_pubdate} |
统计点击量
1
2
3
|
{ $vo .topic_rel_vod| explode = ',' ,###| count } 点击量 { $vo .vod_hits} |
调用编号
1
|
<i { if condition= "$key lt 4" } class = "stress" {/ if }>{ $key }</i> |
列表调用结合项
1
2
3
4
5
6
7
8
9
10
|
<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 } |
替换字段
1
2
3
4
|
$param [ 'class' ] $obj .type_extend. class class '=>' ' class '=> $vo2 |
调用演员结合项
1
2
3
4
|
<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 } |
调用网站导航
1
2
3
4
|
<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} |
1
2
3
4
|
调用文章 {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} |
调用热门信息
1
2
3
|
{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} |
调用分页
1
2
3
|
<div id= "page" > { include file= "public/paging" } </div> |
封面、列表判断
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!-- 封面 --> {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 } |
严正声明:本站只出售html页面效果模板,不提供任何类型的网站内容数据,模板仅供学习交流使用,不得用于任何商业以及触犯国家法律法规的用途,违者需自行承担全部责任,与本站无以及模板设计作者无关,本站以及模板作者不承担任何连带责任!!!!
关爱邦 | 网站源码程序下载_免费商业源码分享! » 苹果CMS v10自用调用标签收藏
关爱邦 | 网站源码程序下载_免费商业源码分享! » 苹果CMS v10自用调用标签收藏