标签:img tle cti color 首页 active info input time
1 网站头部 <title>{if isset($SEO[‘title‘]) && !empty($SEO[‘title‘])}{$SEO[‘title‘]}{/if}{$SEO[‘site_title‘]}</title> <meta name="keywords" content="{$SEO[‘keyword‘]}"> <meta name="description" content="{$SEO[‘description‘]}"> 2 <!--Logo菜单--> "img/ 替换 "{IMG_PATH}img/ "bs/ 替换 "{JS_PATH}bs/ 3 <!--toubu--> {template "content","header"} <!--页脚开始--> {template "content","footer"} 4 category 主栏目 lists 子栏目 <!--导航--> <li><a href="{siteurl($siteid)}" style="color:#4e910b">首页</a></li> {pc:content action="category" catid="0" num="5" siteid="$siteid" order="listorder ASC"} {loop $data $r} <li><a href="{$r[‘url‘]}">{$r[catname]}</a></li> {/loop} {/pc} <!-- 轮播(Carousel)项目 --> <div class="carousel-inner"> {pc:content action="lists" catid="16" order="id ASC" num="3"} {loop $data $key $val} {if $key==1} <div class="item active"> <img class="img_lunbo" src="{$val[‘thumb‘]}" alt="First slide"> </div> {else} <div class="item"> <img class="img_lunbo" src="{$val[‘thumb‘]}" alt="First slide"> </div> {/if} {/loop} {/pc} <!--内容+分页--> {pc:content action="lists" catid="$catid" order="id DESC" num="3" page="$page" moreinfo="1" } {loop $data $key $val} <!--将来源进行拆分,来源就是作者--> {php list($copyfrom) = explode(‘|‘, $val[‘copyfrom‘])} {$copyfrom} {$val[‘thumb‘]}图片 {$val[‘title‘] 标题 {$val[‘description‘]} 简介 {$content} 内容 {date(‘Y-m-d H:i:s‘,$val["inputtime"])} {/loop} {/pc} <div class="row wai"> <div class="col-sm-4"></div> <div class="col-sm-4">{$pages}</div> <div class="col-sm-4"></div> </div> <!-- 循环二级栏目内容 --> {pc:content action="category" catid="$catid" num="3" siteid="$siteid" moreinfo="1"} {loop $data $K $v} {$CATEGORYS[$v[catid]][catname]} 栏目名 {$CATEGORYS[$v[catid]][description]} 描述 {pc:content action="lists" catid="$v[arrchildid]" order="id ASC" num="4"} // {php $i=1;} {loop $data $key $val} {$val[‘title‘]} {$val[‘description‘]} {/loop} {/pc} {/loop} {/pc} <div class="row wai"> <div class="col-sm-4"></div> <div class="col-sm-4">{$pages}</div> <div class="col-sm-4"></div> </div> 调用栏目名加标题 {pc:content action="lists" catid="15" num="7" order="inputtime desc"} {loop $data $r} <li>[<a href=” {$CATEGORYS[$r[catid]][url]}”> {$CATEGORYS[$r[catid]][catname]}</a>]<a href="{$r[url]}">{str_cut($r[title],24,‘‘)}</a></li> {/loop} {/pc} 取分栏目名称 {$CATEGORYS[25][catname]} 取栏目的图片 {$CAT[‘image‘]} {$CATEGORYS[$catid][description]}显示栏目描述 {catpos($catid)} 显示文章位置导航 {$CATEGORYS[$catid][url]} 显示当前栏目链接 {$CATEGORYS[$catid][catname]} 显示当前栏目名称 <!--内容页 show.html--> {pc:content action="relation" relation="$relation" catid="$catid" num="5" order="id ASC" keywords="$rs[keywords]"} {loop $data $r} {if $r["id"]==$id} <a href="{$r[url]}" style=" background-image:url({IMG_PATH}nt2.jpg); height:65px; background-repeat:round" class="list-group-item active">[{$r[title]}]{$r[‘description‘]}</a> {else} <a href="{$r[url]}" class="list-group-item ">[{$r[title]}]{$r[‘description‘]}</a> {/if} {/loop} {/pc}
标签:img tle cti color 首页 active info input time
原文地址:http://www.cnblogs.com/benpaodegegen/p/6159018.html