Phpcms label Daquan V9

Source: Internet
Author: User

Transferred from: http://blog.csdn.net/cloudday/article/details/7343448
Call the end of the header {Template "content", "header"}, {Template "content", "Footer"}{siteurl ($siteid)} Home link address <a href= "{SiteURL ($si Teid)}/' ></a> date-------------{date (' y-m-d h:i:s ', $r [Inputtime])} Monthly ranking by clicks Hits{pc:content action= "hits" catid= "$catid" num= "" order= "Monthviews DESC" cache= "3600"} {loop $data $r} <li><span>{number_format ($r [monthviews])}</span><a href= "{$r [url]}" {Title_style ($r [style]) } class= "title" title= "{$r [title]}" >{str_cut ($r [title],56, ' ... ')}</a></li> {/loop} {/PC} list by channel column S{pc:content action= "lists" catid= "6" order= "id DESC" num= "4" start= "2"} {loop $data $r}<a href= "{$r [url]}" title= " {$r [title]} ">{str_cut ($r [title],46, ')}</a> {/loop} {/PC} by recommended bit with picture {pc:content action=" position "posid=" 1 " thumb= "1" order= "id DESC" num= "6" start= "2"}//start= ' 2 ' means 0 entries from the 3rd (starting from 6) bar. {Loop $data $r} <li class= "Datu_li_nor" id= "a{$n}">{str_cut ($r [description],100)}</li> <a href= "{$r [url]}" title= "{$r [title]}" ></a> <a href= "{$r [url]}" title= "{$r [title]}" >{str_cut ($r [t itle],40, ')}</a> {/loop} {/PC} call column {pc:content action= "category" Catid= "7 "Num=" 4 "siteid=" $siteid "order=" Listorder ASC "}{loop $data $r} <li><a class=" Nav_link "href= "{$r [url]}" > {$r [catname]} </a></li> {/loop} {/pc}//7 is the label parent link {pc:link action= "type_list" siteid= "$siteid" linktype= "1" order= "Listorder DESC" num= "8" retur N= "Pic_link"}//Picture link return= "" {Loop $pic _link $v} <li><a href= "{$v [' url ']}" title= "{$v [' name ']}" target= "_blank" ></a></li> {/loop} {/PC} CallRandom article {pc:content action= "lists" catid= "$catid" num= "8" order= "rand ()" return= "info"} <ul class= "list lh24 F13" > {Loop $info $v} <li><a href= "{$v [' url ']}" target= "_blank" title= "{$v [' title ']} ' {Title_style ($v [s Tyle])}>{$v [' title ']}</a></li> {/loop} </ul> {/PC} The above code only made a little modification: order= "rand ()", others with normal call Sample.


Current position----------------{Catpos ($catid)}
Column name----------------{$CAT [catname]}
column Pinyin----------------{$CAT [letter]}
Column link----------------{$CAT [url]}
Parent column name--------------{$CATEGORYS [$CAT [Parentid]][catname]}
Parent column Link--------------{$CATEGORYS [$CAT [Parentid]][url]}
Upper column name--------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][catname]}
Upper column link--------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][url]}

First-level parent column list

{pc:content action= "category" catid= "0" num= "siteid=" $siteid "order=" Listorder ASC "}
{Loop $data $r}
<li><a href= "{$r [url]}" >{$r [catname]}</a></li>
{/loop}
{/PC}

Peer Column list

{pc:content action= "category" Catid= "$parentid" num= "siteid=" $siteid "order=" Listorder ASC "}
{Loop $data $r}
<li><a href= "{$r [url]}" >{$r [catname]}</a></li>
{/loop}
{/PC}

List of photos

{Loop $photos $r}
<li><a href= "{$r [url]}" ></a></li >
{/loop}

Other commonly used: {$SEO [' title ']}{/if}{$SEO [' Site_title ']}{$SEO [' keyword ']}{$SEO [' description ']} title and title SEO optimizer {Css_path} Replace the address with the root directory under the \statics\css{js_path}  address replaced by the root directory under \statics\js

Phpcms label Daquan V9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.