Phpcms v9 Template Making tutorial (iii)

Source: Internet
Author: User
Continue with the main part today.

{Template "content", "header"}

Call the root directory under the Phpcms/template/content/header file

<!--main--> This is a template note! It is recommended to develop the habit of writing code and commenting

This is a div tag, do not know what is div can go online to find some tutorials to learn, this is not understood there is no need to continue to see

<!--here is the PC tag {pc:content parameter name = parameter value argument name = parameter value parameter name = "parameter value"}-->{pc:content action= "position" posid= "2" order= " Listorder DESC "num=" 4 "}<!--display the data in the PC label-->{loop $data $r}{str_cut ($r [title],36)}{if $n ==1}{/if}{str_cut ($r [ description],112)}{/loop}{/pc}<!--end tag--><!--here or PC label-->{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= "thumb=" 1 "order=" id DESC "num="}{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 "order=" 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], ' + ')}{str_cut ($r [' Description '],50)}{/LOOP}{/PC} hotspots | Comments | Concern ranking {pc:content action= "hits" catid= "" num= "ten" order= "views DESC"}{loop $data $r} {$r [title]}{/loop}{/pc}{pc: Comment action= "bang" num= "ten" cache= "3600"}{loop $data $r} {$r [title]}{/loop}{/pc}{pc:content action= "hits" catid= "35 "num=" order= "views DESC"}{loop $data $r} {$r [TITLE]}{/LOOP}{/PC} questionnaire more >> more >> link application Link {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= "ten" return= "Dat"}{loop $dat $v}{if $type = = 0}{$v [name]} | {Else} {/if} {/loop} {/pc}$ (function () {New Slide ("#main-slide", "cur", 310,260, 1);//Focus Graph New Swaptab (". Swaptab "," span ",". Tab-content "," ul "," FB ");//Ranking Tab}) {Template "Content", "Footer"} 

The above is Phpcms v9 Template production tutorial (three), more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.