{* шаблон вывода блоков *} {section name=b loop=$binfo} {* формирование заголовка блока *} {assign var="preheader" value="+"} {if $isadmin eq "yes" && $binfo[b].title ne ""}{assign var="postheader" value=`$preheader``$binfo[b].title`}{else}{assign var="postheader" value=$binfo[b].title}{/if} {* вывод заголовка блока *} {include file="header.tpl.html" header=$postheader nopad=$nopad} {* вывод содержания блока *}
{if $binfo[b].html eq 1}{include file="blocks/`$binfo[b].url`" blocknum=$smarty.section.b.index}{else}{$binfo[b].content}{/if}
{if $binfo[b].title ne "" && $nopad ne 1}
 
{/if} {/section}