prokat/api/modules/content/tovar_list.html
2025-06-16 18:28:08 +05:00

58 lines
2.5 KiB
HTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="row" id="showmore-list" style="width: 100%;">
{section name=customer loop=$list}
<div class="card col-md-4 col-xxl-3" style="margin-bottom: 20px; padding: 3px;">
<div style="height: 260px;">
<a href="/content/{$list[customer].id}">
{if ($smarty.post.mod=='mini')}
{if ($list[customer].img)}
<img src="/{$list[customer].img}"
class="card-img-top lazy" alt='{$list[customer].title}' title='{$list[customer].title}'
style="width: 90%;">
{else}
<img src="https://static.yurecnt.ru/img/nofoto/no_foto.webp"
class="card-img-top lazy" alt='{$list[customer].title}' title='{$list[customer].title}'
style="width: 90%;">
{/if}
{else}
<img src="https://static.yurecnt.ru/img/nofoto/no_foto.webp" data-original="/{$list[customer].img}"
class="card-img-top lazy" alt='{$list[customer].title}' title='{$list[customer].title}'
style="width: 90%;">
{/if}
</a>
</div>
<div class="card-body" style="text-align: center;">
<div style="height: 100px; margin-bottom: 10px;">
<h5 class="card-title" style="font-size: 12pt; font-weight: 100;"><a
href="/content/{$list[customer].id}"
title='{$list[customer].title}'>{$list[customer].title|substr:50}</a></h5>
</div>
<small
style="background-color: lightblue; padding: 5px; width: 100%; margin-bottom: 10px; margin-top: 10px;">Актикул:
{$list[customer].artikul}</small>
{if ($list[customer].cena)}
<a href="/content/{$list[customer].id}" class="btn btn-primary" style="width: 100%;"><i
class="fa-solid fa-cart-shopping"></i> {$list[customer].cena} р.
{if $list[customer].old_cena>$list[customer].cena}
<span style="text-decoration:line-through; font-size: 10pt;">{$list[customer].array.old_cena} р.</span>
{/if}
</a>
{/if}
</div>
</div>
{/section}
</div>
{if ($smarty.get.mod=='ctovar')}
<div id="showmore-triger" data-max="{$amt}" data-content="{$smarty.get.id}" style="text-align: center;" class="lenta">
<img src="/api/modules/content/img/loading.gif" alt="">
</div>
{/if}