39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
|
{*
|
||
|
22.04.2018 - реализован вывод ссылок на страницы по алиасу
|
||
|
*}
|
||
|
{include file=$header h1=$title title=$title keywords="{$keywords}" description="{$description}"}
|
||
|
<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}
|