Phpcms V9 template Design Common variables

Source: Internet
Author: User
Tags add time variables return sort

Phpcms V9 template Design Common variables

Label:

Zatan

Category: Phpcmsv9
Variable Global Interpretation
{CHARSET} Character
$SEO [' title '] Page title
$SEO [' Site_title '] Site Title
$SEO [' keyword '] Keyword
{$SEO [' description '] Description
{Css_path} CSS Path
{Js_path} JS Path
{Img_path} IMG Path
{App_path} App Path
{Get_siteid ()} Site ID
{$siteid} Sub-station URL
{SiteURL ($siteid)} Site URL
{$catid}
Column ID
{$pages}
Paging



{Date (' y-m-d h:i:s ', $r [Inputtime])}
Update Time
{Str_cut ($v [description],116, '.. ')}
truncated string
{Thumb ($v [thumb],70,60)}
Truncate thumbnail
{$CATEGORYS [$cid][catname]}
Channel name
{$CATEGORYS [$cid][url]}
Channel URL
{Template "content", "Footer"}
Template call
{pc:block pos= "Index_block_1"}
Controversy (block Call)
Action:lists list, position recommendation, category Sub-column, relation related articles, hits rankings
Action
Posid:
Recommended position
1 first page Focus map recommendation
Posid
2 first page Headline recommendation

5 Recommended Downloads

8 Picture Channel Homepage Focus Chart

9 recommended at the top of the website

10 Home recommended

12 first Page Pictures recommended

13 Column Page Focus map

thumb:0 all articles, 1 contains thumbnails
Thumb
Order:listorder desc Sort Descending, listorder asc sort Ascending, id desc add time Descending, updatetime desc update Time Descending Order



{pc:content
action= "position" posid= "2" order= "Listorder DESC" num= "4"}

News-hot
{pc:content
action= "position" posid= "1"
order= "Listorder DESC" thumb= "1" num= "5"}

Focuspic
{pc:content
action= "position" posid= "A" thumb= "1" order= "id DESC" num= "10"}

Photo News
{pc:content action= "lists" catid= "$r [catid]" num= "1" thumb= "1" order= "ID DESC" return= "Info"}
{pc:content action= "lists" catid= "$r [catid]" num= "5" order= "id DESC" return= "Info"}

{Pc:announce
action= "lists " siteid= "$siteid" num= "2"}

Notice
{pc:special
action= "lists" siteid= "$siteid" elite= "1" listorder= "3" num= "2"}

Special
{pc:content action= "hits" catid= "num=" "" order= "views DESC"}
Digg Click
{pc:comment action= "bang" num= "ten" cache= "3600"}
Comments
{pc:content action= "hits" catid= "num=" "" order= "views DESC"}

{Pc:link
action= "type_list" siteid= "$siteid" linktype= "1" order= " listorder DESC" num= "8" Return= "Pic_link"}
Friendship Link
{pc:content action= "lists " catid= "$catid" num= "" order= "id DESC " page= "$page"}
List
{pc:content action= "hits" catid= "$catid" num= "a" order= "views DESC" Cache = "3600"}
Total ranking
{pc:content action= "hits" catid= "$catid" num= "8" order= "monthviews DESC" cache= " 3600 "}
Month ranking
{pc:content
action= "position" posid= "5" order= "Listorder DESC" num= "4"}

Recommended Downloads



{Catpos ($catid)}
Column positioning
{Loop subcat (0,0,0, $siteid) $r}

{Title_style ($r [style])}
Heading styles
{$inputtime}


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.