add public design files
This commit is contained in:
40
design/carheart/html/page.tpl
Normal file
40
design/carheart/html/page.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{* Шаблон текстовой страницы *}
|
||||
<!-- Заголовок страницы* -->
|
||||
{*<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}
|
||||
|
||||
Reference in New Issue
Block a user