Phpcms V9 common template label call method PC label description {template "content", "Header"} ---------- call the phpcms \ template \ content \ header file under the root directory
{Charset} ------------------------------------- character set (GBK or UTF-8)
{If isset ($ Seo ['title']) &! Empty ($ Seo ['title'])}
{$ Seo ['title']} {/if}
{$ Seo ['site _ title']}
{$ Seo ['keyword']}
{$ Seo ['description']} the above four do not need to be explained, all are title and title Seo Optimization
{Css_path} ----------------------------------- Replace the address with \ statics \ CSS under the root directory.
{Js_path} -------------------------------------- Replace the address with \ statics \ JS under the root directory
{PC: Content action = "position" POS order = "ID" num = "10" cache = "3600 "}
PC tag {PC: Content parameter = "parameter value" parameter name = "parameter value" parameter name = "parameter value "}
{Loop $ data $ K $ v}
<Li> <a href = "{$ V [url]}" >{$ V [title]} </a> </LI>
{/Loop}
Show PC tag values
Action = "position" ------------- dialog box type = "content recommendation bit list"
Pos -------------------- recommended bit id = "9"
Order = "ID" -------------------- sorting type = "ID"
Num = "10" ------------------- number of data calls = "10"
Cache = "3600" ---------------- cache = "3600" milliseconds
{App_path} ----------------- Project address
{Get_siteid ()}----------------
{Img_path }-----------------
Action = "hits" ranking, hotspot, etc.
Action = "Lists" is mainly used for list and so on.
Cat specifies the number of the current column ID, that is, the specified Column
Num = "" number of articles called
Order = "id DESC" sort by ID in descending order
Order = "id ASC" in ascending order of ID
Order = "views DESC"
Sort = ""
Thumb = "1" thumbnail
Return = ""
Page = "$ page" requires Paging
The {if $ num % 2 = 0} {/if}
Loop tag {loop $ data $ R} {/loop} {loop $ info $ R} {/loop}
Date {date ('Y-m-d h: I: s', $ R [inputtime])}
Article link {$ R [url]}
Article Title {$ R [title]}
Header truncation {str_cut ($ R [title], 40 ,'...')}
When the thumbnail loop is info, use {thumb ($ R [thumb], 110,0)} When the loop is data, use {thumb ($ V [thumb], 90,0 )}
Pagination tag {$ pages}
{$ V [url]}
{Str_cut ($ V ['title'], 26 ,'')}
{Str_cut ($ V ['description'], 40 ,'')}
{Thumb ($ V [thumb], 120,150 )}
Article Tab
Title {$ title}
Content {$ content}
Date {$ inputtime}
Source {$ copyfrom}
Clicks <span> </span> <script language = "JavaScript" src = "{app_path} API. php? OP = count & ID ;={$ ID} & modelid ;={$ modelid} "> </SCRIPT>
Website homepage {siteurl ($ siteid )}
Current position {catpos ($ catid )}