core/api/modules/tovar_cat/index.html

50 lines
2.0 KiB
HTML
Executable File

{include file=$header h1=$page_info[0].title title=$page_info[0].title keywords=$page_info[0].$keywords description=$page_info[0].$description}
<h1>{$page_info[0].title}</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
<table class="table table_cat">
{section name=customer loop=$list}{if $list[customer].id}
<tr>
<td style="width: 150px;">
{if ($list[customer].alias)}{* если есть чпу *}
<a href="/{$list[customer].alias}.html">
{else}
<a href="/page/{$list[customer].id}">
{/if}
{if $list[customer].oblozhka}
{* смотрим, нужна ли ленивая загрузка *}
{if $global_settings.lazyload==1}
<img src="/api/img/gray/gif/gray.gif" class="thumbnail lazy" alt="{$list[customer].title}" data-original="/img/pages/{$list[customer].oblozhka}.jpg" title="{$list[customer].title}" style="width: 150px;">
{else}
<img src="/img/pages/{$list[customer].oblozhka}.jpg" class="thumbnail" alt="{$list[customer].title}" title="{$list[customer].title}" style="width: 150px;">
{/if}
{else}
<img src="/api/img/gray/png/no_image.png" class="thumbnail" alt="{$list[customer].title}" title="{$list[customer].title}" style="width: 150px;">
{/if}
</a>
</td>
<td>
{if ($list[customer].alias)}
<a href="/{$list[customer].alias}.html">
<h2>{$list[customer].title}</h2>
</a>
{else}
<a href="/page/{$list[customer].id}">
<h2>{$list[customer].title}</h2>
</a>
{/if} {if ($global_settings.show_description_in_cat==1)}
<p>{$list[customer].description}</p>
{/if}
</td>
</tr>
{/if}{/section}
</table>
{include file=$footer}