Сергей писал(а):
Подскажите пожалуста , как сделать что б h1 и желательно h2 менялся в зависимости от региона, рубрики и категории.
viewtopic.php?f=3&t=4119<h1>{%if $smarty.get.cat.0 == 'users'%}
{%assign var='c' value=$smarty.get.cat.1%}
{%if $c == "" %}
{%$locale.61%}
{%elseif $c == 'moderated'%}{%$locale.979%}
{%elseif $c == 'deleted'%}{%$locale.980%}
{%elseif $c == 'update'%}{%$locale.1094%}
{%elseif $c == 'info'%}{%$locale.126%}
{%elseif $c == 'subscribe'%}{%$locale.62%}
{%elseif $c == 'orders'%}{%$locale.209%}
{%elseif $c == 'state'%}{%$locale.63%}
{%elseif $c == 'pay'%}{%$locale.64%}
{%elseif $c == 'order'%}{%$locale.65%}
{%elseif $c == 'shop'%}{%$locale.1104%}
{%if $settings.user.shop.name != ""%} «{%$settings.user.shop.name%}»{%/if%}
{%elseif $c == 'pm'%}{%$locale.1345%}
{%/if%}
{%else%}
{%if $modtype == 'cat'%}
{%assign var=second_region_name value=""%}
{%if $second_region%}
{%assign var=second_region_name value=$second_region.name|@count%}
{%assign var=second_region_name value=$second_region_name-1%}
в
{%assign var=second_region_name value=$second_region.name[$second_region_name]%}
{%/if%}
{%$second_region_name|morphy:'ПР'%}
{%/if%}
{%assign var='page' value=$smarty.get.page%}
{%$allregions.name%}
{%if $page > 1%}
(страница {%$page%})
{%/if%}
</h1>
{%/if%}