<?php $tuji = dr_arraycut($tuji, 10);?> <?php $myimg = $tuji; if ($myimg) { $key=0; foreach ($myimg as $c) { ?> <div id="thumb{$key+1}" class="tab-pane fade {if $is_first}show active{/if}"> <div class="shop-thumb"> <img alt="{$title}" src="{dr_thumb($c, 524, 533)}"> </div> </div> {php $myfile=\Phpcmf\Service::C()->get_attachment($c);} <?php $key++;} } ?>
图集active标签怎么弄?
{if $is_first}show active{/if}
这个无效
class="tab-pane fade {if $is_first}show active{/if}"
以上代码没用。