41 lines
1.6 KiB
Smarty
41 lines
1.6 KiB
Smarty
{* Шаблон текстовой страницы *}
|
|
<!-- Заголовок страницы* -->
|
|
{*<div class="title" data-page="{$page->id}">{$page->header|escape}</div>*}
|
|
<h1>{$page->header|escape}</h1>
|
|
|
|
{* Костыль для раздела - товары по маркам, выводить все бренды *}
|
|
{if in_array($page->id, array(12))}
|
|
{include file='brands_all.tpl'}
|
|
{/if}
|
|
|
|
<!-- Тело страницы -->
|
|
{$page->body}
|
|
|
|
{if $catalog_categories}
|
|
<div class="categories row">
|
|
{foreach from=$catalog_categories item=c}
|
|
{* Показываем только видимые категории *}
|
|
{if $c->visible && $c->menu}
|
|
<div class="category col-sm-4 col-xs-6">
|
|
<div class="category-image">{if $c->image}<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">
|
|
<img class="img-thumbnail" src="/{$config->categories_images_dir}{$c->image}" alt="{$c->name}">
|
|
</a>{/if}</div>
|
|
<div class="category-name">
|
|
<a class="w" href="/catalog/{$c->url}/" data-category="{$c->id}">{$c->name}</a>
|
|
<div class="category_anons">{$c->anons}</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
{if $page->id == 35}
|
|
{if $smarty.get.edit && $smarty.session.admin == 'admin'}{include file='feedback/edit.tpl'}{/if}
|
|
{if $smarty.get.reply && $smarty.session.admin == 'admin'}{include file='feedback/reply.tpl'}{/if}
|
|
{if !$smarty.get.edit && !$smarty.get.reply}{include file='feedback/main.tpl'}{/if}
|
|
|
|
{/if}
|
|
|