==== 标题 {if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']} ==== 关键词 <meta name="keywords" content="{$SEO['keyword']}"> <meta name="description" content="{$SEO['description']}"> ==== 栏目父级 {php $tpid = $CATEGORYS[$catid][parentid]==0?$catid:$CATEGORYS[$catid][parentid];} <?php $thischannel = subcat($tpid);?> ==== 导航栏 {pc:content action="category" catid="0" return="hdata" num="6" siteid="$siteid"} {loop $hdata $r} <a href="{$r[url]}" title="{$r[title]}">{$r[catname]}</a> {/loop} {/pc} ==== 联级菜单 {pc:content action="category" catid="0" num="9" return="data"} {loop $data $v} ==== 一级 <li><a href="{$v[url]}">{$v[catname]}</a> <ul class="one"> {loop subcat($v['catid']) $k} ==== 二级 <li><a href="{$k[url]}">{$k[catname]}</a></li> {/loop} </ul> {/loop} {/pc} ==== 选择第几条数据(排序) order="id ASC LIMIT 2,2--" ==== 推荐位 {pc:content action="position" catid="102" posid="43" order="listorder" num="2" return="data"} {loop $data $v}14:20 2014/10/15 {/loop} {/pc} ==== 栏目列表 {pc:content action="lists" catid="$catid" where="`thumb`!='' AND `status`=99" num="1" thumb="" order="id ASC-DESC" moreinfo="1" page="$page" return="data"} {loop $data $v} {/loop} {/pc} ==== 相关文章 {pc:content action="relation" relation="$relation" catid="$catid" num="5" keywords="$rs[keywords]"} {loop $data $r} <li>·<a href="{$r[url]}" target="_blank">{$r[title]}</a><span>({date('Y-m-d',$r[inputtime])})</span></li> {/loop} {/pc} ==== 数据模式 {pc:get sql="SELECT * FROM phpcms_member" cache="3600" page="$page" dbsource="discuz" return="data"} {loop $data $key $val} {/loop} {/pc} {pc:get sql="SELECT * FROM `bcok_news` WHERE `catid`=16 AND `thumb`!='' AND `status`=6" num="1" return="data"} ==== 当前页面 {catpos($catid)} <p>{$CATEGORYS[$catid][catname]}推荐</p> ==== 上级栏目 <?php $topidarr= explode(',',$CATEGORYS[$catid][arrparentid]);?> <?php $topid = $topidarr[1];?> <div class="infonav"> {loop subcat($topid) $r} <a href="{$r[url]}">{$r[catname]}</a> {/loop} ==== 下级栏目 {loop subcat($parentid) $r} <a href="{$r[url]}">{$r[catname]}</a> {/loop} ==== 栏目id下级 {php $cat11=subcat(11)} ==== 截取字符 CATEGORYS {str_cut($r[summry],600) ==== 栏目URL {$CATEGORYS[14][url]} ==== 时间 {date('Y-m-d',$v[inputtime])} ==== 点击下载 <a href="{$downarr[0][fileurl]}">点击下载></a> <?php $downarr = string2array($v[downfiles]);?> <?php $data = subcat($CATEGORYS[$catid][parentid]);?> ==== 栏目内容 content 文章来源:{$copyfrom} 类型:{$CATEGORYS[$catid][catname]} 日期:{$inputtime} ==== 上下页 <strong>上一篇:</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a> <strong>下一篇:</strong><a href="{$next_page[url]}">{$next_page[title]}</a> =====新闻添加news {if $r[inputtime] + 259200 > time()}<font color="#ff0000">New</font>{/if} CACHE_PATH 缓存文件夹地址 SITE_PROTOCOL 主机协议 SITE_URL 当前访问的主机名 HTTP_REFERER 来源 SYS_START_TIME 系统开始时间 CHARSET 页面字符集 SYS_TIME 当前时间戳 WEB_PATH 网站根路径 JS_PATH JS路径 CSS_PATH CSS路径 IMG_PATH 图片路径 APP_PATH 动态程序路径 PLUGIN_STATICS_PATH 应用静态 ==== URL 规则 {$catdir}/index.html|/{$catdir}/index_{$page}.html {$categorydir}{$catdir}/index.html|{$categorydir}{$catdir}/{$page}.html {$year}/{$catdir}_{$month}{$day}/{$id}.html|{$year}/{$catdir}_{$month}{$day}/{$id}_{$page}.html {$catdir}/{$id}.html|{$catdir}/{$id}_{$page}.html 转载请说明文字来源:玄玄博客 www.blogxuan.com