Phpcmsv9 template creation tutorial (III) continue with the subject section today
{template "content","header"}
Call the phpcms/template/content/header file in the root directory
This is a template comment! We recommend that you develop the habit of writing code and adding comments.
This is the p tag. I don't know what p is. I can go online and find some tutorials. if I don't know anything about it, I don't need to continue reading it.
{Pc: content action = "position" posid = "2" order = "listorder DESC" num = "4 "}
{Loop $ data $ r} {str_cut ($ r [title], 36)} {if $ n = 1} {/if} {str_cut ($ r [description], 112)} {/loop} {/pc}
{Pc: content action = "position" posid = "1" order = "listorder DESC" thumb = "1" num = "5"} {loop $ data $ r} {/loop }{ /pc} promotion {pc: block pos = "index_block_1"} {/pc} Picture News {pc: content action = "position" posid = "12" thumb = "1" order = "id DESC" num = "10"} {loop $ data $ r} {str_cut ($ r [title], 20)} {/loop} {/pc} {loop subcat (0, 0, 0, $ siteid) $ r} {php $ num ++} {$ r [catname]} more >>{ pc: content action = "lists" catid = "$ r [catid]" num = "1" thumb = "1" ord Er = "id DESC" return = "info"} {loop $ info $ v} {str_cut ($ v ['title'], 28 )} {str_cut ($ v ['description'], 100)} {/loop} {/pc} {pc: content action = "lists" catid = "$ r [catid]" num = "5" order = "id DESC" return = "info"} {loop $ info $ v }· {str_cut ($ v ['title'], 40)} {/loop} {/pc} {if $ num % 2 = 0} {/if} {/loop} announcement {pc: announce action = "lists" siteid = "$ siteid" num = "2"} {loop $ data $ r} {$ r ['title']} {/loop }{/ pc} topic more> {pc: special action = "lists" Siteid = "$ siteid" elite = "1" listorder = "3" num = "2"} {loop $ data $ r} {if $ n! = 1} {/if} {str_cut ($ r [title], '18')} {str_cut ($ r ['description'], 50 )} {/loop} {/pc} hotspot | comment | ranking of followers {pc: content action = "hits" catid = "35" num = "10" order = "views DESC"} {loop $ data $ r }{$ r [title]} {/loop} {/pc} {pc: comment action = "bang" num = "10" cache = "3600"} {loop $ data $ r} {$ r [title]} {/loop} {/pc }{ pc: content action = "hits" catid = "35" num = "10" order = "views DESC"} {loop $ data $ r }{$ r [title]} {/loop} {/pc} questionnaire more> link of the link application {pc: link action = "type_list" siteid = "$ siteid" linktype = "1" order = "listorder DESC" num = "8" return = "pic_link"} {loop $ pic_link $ v} {/loop} {/pc} {pc: link action = "type_list" siteid = "$ siteid" order = "listorder DESC" num = "10" return = "dat"} {loop $ dat $ v} {if $ type = 0} {$ v [name]} | {else} {/if} {/loop} {/pc} $ (function () {new slide ("# main-slide", "cur", 310,260, 1); // new SwapTab (". swapTab "," span ",". tab-content "," ul "," fb "); // ranking TAB}) {template" content "," footer "}
The above is the content of the phpcms v9 template creation tutorial (3). For more information, see PHP Chinese network (www.php1.cn )!