标题:{$title}
来源:{$copyfrom}
评论:<a href="#comment_iframe" id="comment">0</a>【js】
点击:<span id="hits"></span>【带上js】 <script language="JavaScript"
src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
描述:{if $description}<div class="summary" >{$description}</div>{/if}
如果有权限:{if $allow_visitor==1},显示内容:{$content}。
如果有投票:{if $voteid}<script language="javascript" src="{APP_PATH}
index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}
&type=2"></script>{/if}
投票的id:{$voteid}
阅读花费点数:{$readpoint}
支付类型:{if $paytype}元{else}点{/if}(如果有支付类型显示‘元’,否则显
示点‘数’)
子标题:{if $titles}(如果存在子标题)
显示子标题列表:
-----------------------------------------------------------------------
{if $titles}
<fieldset>
<legend class="f14">本文导航</legend><ul class="list blue row-2">
{loop $titles $r}
<li>{$n}、<a href="{$r[url]}">{$r[title]}</a></li>
{/loop}
</ul>
</fieldset>
{/if}
---------------------------------------------------------------------
分页:{$pages}
关键词:{loop $keywords $keyword}<a href="{APP_PATH}index.php?
m=content&c=tag&a=lists&tag={urlencode($keyword)}" class="blue">
{$keyword}</a> {/loop}
上一篇:<a href="{$previous_page[url]}">{$previous_page[title]}</a>
下一篇:<a href="{$next_page[url]}">{$next_page[title]}</a>
----------------------------------------------------------------------
相关文章:{pc:content action="relation" relation="$relation" id="$id"
catid="$catid" num="5" keywords="$rs[keywords]"}
{if $data}
<div class="related">
<h5 class="blue">延伸阅读:</h5>
<ul class="list blue lh24 f14">
{loop $data $r}
<li>·<a href="{$r[url]}" target="_blank">
{$r[title]}</a><span>({date(‘Y-m-d‘,$r[inputtime])})</span></li>
{/loop}
</ul>
</div>
{/if}
{/pc}
-------------------------------------------------------------------------
心情: {if module_exists(‘mood‘)}<script type="text/javascript"
src="{APP_PATH}index.php?m=mood&c=index&a=init&id={id_encode($catid,$id,
$siteid)}"></script>{/if}
-------------------------------------------------------------------------
分享到:
<div class="Article-Tool">
分享到:
<img
src="http://v.t.qq.com/share/images/s/weiboicon16.png" style="padding-
bottom:3px;" onclick="postToWb();" class="cu" title="分享到腾讯微
博"/><script type="text/javascript">
function postToWb(){
var _t = encodeURI(document.title);
var _url = encodeURIComponent(document.location);
var _appkey = encodeURI
("cba3558104094dbaa4148d8caa436a0b");
var _pic = encodeURI(‘{$thumb}‘);
var _site = ‘‘;
var _u = ‘http://v.t.qq.com/share/share.php?url=‘+_url
+‘&appkey=‘+_appkey+‘&site=‘+_site+‘&pic=‘+_pic+‘&title=‘+_t;
window.open( _u,‘‘, ‘width=700, height=680, top=0,
left=0, toolbar=no, menubar=no, scrollbars=no, location=yes,
resizable=no, status=no‘ );
}
</script>
<script type="text/javascript">document.write(‘<a
href="http://v.t.sina.com.cn/share/share.php?url=‘+encodeURIComponent
(location.href)+‘&appkey=3172366919&title=‘+encodeURIComponent
(‘{new_addslashes($title)}‘)+‘" title="分享到新浪微博" class="t1"
target="_blank"> </a>‘);</script>
<script type="text/javascript">document.write(‘<a
href="http://www.douban.com/recommend/?url=‘+encodeURIComponent
(location.href)+‘&title=‘+encodeURIComponent(‘{new_addslashes
($title)}‘)+‘" title="分享到豆瓣" class="t2"
target="_blank"> </a>‘);</script>
<script type="text/javascript">document.write(‘<a
href="http://share.renren.com/share/buttonshare.do?
link=‘+encodeURIComponent(location.href)+‘&title=‘+encodeURIComponent
(‘{new_addslashes($title)}‘)+‘" title="分享到人人" class="t3"
target="_blank"> </a>‘);</script>
<script type="text/javascript">document.write(‘<a
href="http://www.kaixin001.com/repaste/share.php?
rtitle=‘+encodeURIComponent(‘{new_addslashes
($title)}‘)+‘&rurl=‘+encodeURIComponent(location.href)+‘&rcontent="
title="分享到开心网" class="t4" target="_blank"> </a>‘);</script>
<script type="text/javascript">document.write(‘<a
href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?
url=‘+encodeURIComponent(location.href)+‘" title="分享到QQ空间"
class="t5" target="_blank"> </a>‘);</script>
<span id=‘favorite‘>
<a href="javascript:;" onclick="add_favorite
(‘{addslashes($title)}‘);" class="t6">收藏</a>
</span>
</div>
===================================================================
评论:
{if $allow_comment && module_exists(‘comment‘)}
<iframe src="{APP_PATH}index.php?
m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,
$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe"
frameborder="0" scrolling="no"></iframe>
<div class="box">
<h5>评论排行</h5>
{pc:comment action="bang"
siteid="$siteid" cache="3600"}
<ul class="content list blue f14 row-2">
{loop $data $r}
<li>·<a href="{$r[url]}" target="_blank">
{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li>
{/loop}
</ul>
{/pc}
</div>
{/if}
-------------------------------------------------------
是否允许评论:$allow_comment
是否存在评论模块:module_exists(‘comment‘)
评论排行: {pc:comment action="bang" siteid="$siteid" cache="3600"}
<ul class="content list blue f14 row-2">
{loop $data $r}
<li>·<a href="{$r[url]}" target="_blank">
{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li>
{/loop}
</ul>
{/pc}
======================================================================
在内容页获取他的栏目id:{$catid}
在js中可以直接写入phpcms标签,格式如下:
{APP_PATH}
例如:$.getJSON(‘{APP_PATH}api.php?
op=add_favorite&title=‘+encodeURIComponent
(title)+‘&url=‘+encodeURIComponent(location.href)+‘&‘+Math.random
()+‘&callback=?‘