{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} $template_now['bgcolor'] = ""; $template_now['theme'] = ""; $template_now['introduce'] = ""; $template_now['folder'] = ""; $template_now['preview'] = ""; {/php}
{php} foreach($template_list as $k=>$v){ if($v['folder'] == $use_template){ if($template_now[0]['bgcolor'] != $v['bgcolor']){ $template_now[0]['bgcolor'] = $v['bgcolor']; } if($template_now[0]['theme'] != $v['theme']){ $template_now[0]['theme'] = $v['theme']; } if($template_now[0]['introduce'] != $v['introduce']){ $template_now[0]['introduce'] = $v['introduce']; } if($template_now[0]['folder'] != $v['folder']){ $template_now[0]['folder'] = $v['folder']; } if($template_now[0]['preview'] != $v['preview']){ $template_now[0]['preview'] = $v['preview']; } } } {/php}

{foreach name="$template_list" item="template" key="k"}
- {$template.theme}
  {$template.introduce}
  {if condition="$template['folder']==$use_template"}
  正在使用
  {else /}
  立即使用
  {/if}
{/foreach}

{/block}