Зуля писал(а):
Дело в том, что кроме А6 есть и другие модели. Поэтому в каждом из них повторять название марки не желательно.
http://joxi.ru/J2b5d9Xt0N05jm (так не желательно).
А других способов нет? Спасибо!
Тогда так но у вас будет портянка на всех марках придется добавлять
<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%}
{%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' && in_array('audi', $second_cat.uri) %}Audi {%/if%}
{%if $modtype =='cat' && in_array('bmw', $second_cat.uri) %}BMW {%/if%}
{%if $modtype =='cat' && in_array('chevrolet', $second_cat.uri) %}Chevrolet {%/if%}
{%$title_second.name%}
{%/if%}
{%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>