phpcms之首页组成调用
{pc:content action="lists" catid="32" order="id ASC" num="6" moreinfo="1"} {loop $data $val} <!-- indser_box start --> <div class="col-md-3"> <div class="indser_box"> <!-- indser_btop start --> <div class="indser_btop"> {if $val['id'] == 4} <span class="glyphicon glyphicon-fast-backward" aria-hidden="true"></span> {elseif $val['id'] == 6} <span class="glyphicon glyphicon-search" aria-hidden="true"></span> {elseif $val['id'] == 11} <span class="glyphicon glyphicon-headphones" aria-hidden="true"></span> {elseif $val['id'] == 12} <span class="glyphicon glyphicon-print" aria-hidden="true"></span> {/if} <h3>{$val['title']}</h3> </div> <!-- indser_btop end --> <!-- indser_btxt start --> <div class="indser_btxt"> <p>{$val['description']}</p> <a class="indser_btn" href="" role="button">这个是按钮</a> </div> <!-- indser_btxt end --> </div> </div> <!-- indser_box end --> {/loop} {/pc}