phpcms V9內容頁調用標籤

來源:互聯網
上載者:User

標籤:zhang   height   rom   多檔案   自訂   tty   注釋   rip   ram   

1、頁面標題:{$title}

2、發表時間:{$inputtime}

3、內容來源:{$copyfrom}

4、文章內容:{$content}

5、縮圖地址:{$thumb}

6、組圖列表:

{loop $photos $r}<li><a href="{$r[url]}"><img src="{thumb($r[url], 75, 45, 0)}" />{/loop}

 

 

注釋:其中$photos為自訂群組圖欄位,{$r[url]}為圖片地址,{thumb($r[url], 75, 45, 0)}為圖片縮圖,{$r[alt]}為圖片描述。

7.點擊量

<span>點擊:<span id="hits"></span>次</span>(需載入{app_path}jquery.min.js)<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>

 

8.相關文章

{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"}{if $data}{loop $data $r}<a href="{$r[url]}" target="_blank">{$r[title]}</a>{date(‘Y-m-d‘,$r[inputtime])}{/loop}{/if}{/pc}{$inputtime}

 

9.頻道排行

{pc:content  action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}{loop $data $r}<a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title], 28, ‘‘)}</a>{/loop}{/pc}

 

10.當前位置

<a href="{siteurl($siteid)}">首頁</a><span> &gt; </span>{catpos($catid)} 本文

 

11.內容分頁

{$pages}

 

12.當前欄目

<a href="{$CAT[url]}">{$CAT[catname]}</a> 

 

13.上一篇

上一篇:
<a href="{$previous_page[url]}">{$previous_page[title]}</a>

 

下一篇

下一篇:
<a href="{$next_page[url]}">{$next_page[title]}</a>

 

 

14.文章投票

{if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}

 

 

 

15.文章評論

{if $allow_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><h5>評論排行</h5>{pc:comment action="bang" siteid="$siteid" cache="3600"}{loop $data $r}<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span>{/loop}{/pc}{/if} 

 

16.加入收藏

<a href="javascript:;" onclick="add_favorite(‘{$title}‘);" class="t6">收藏</a>

 

17.檔案/多檔案  【$自訂欄位名】

{loop $downfile $r}<li>{$r}</li>{/loop}{loop $downfiles $r}<li>{$r}</li>{/loop}

18.相關熱詞搜尋:

{loop $keywords $keyword}<a href="{APP_PATH}index.php?m=content&c=tag&catid={$catid}&tag={urlencode($keyword)}" class="blue">{$keyword}</a>{/loop}

 




phpcms V9內容頁調用標籤

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.