core/api/modules/tovar_show/page_info.html

36 lines
2.2 KiB
HTML
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.

{* Рейтинг страниц *} {if ($global_settings.like_page==1)}
<div class="container page-rank border-lightgray">
<div class="row">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 col-xl-1 pt-3">
<a href="#" data-id="{$page[0].id}" class="like-btn"><i class="far fa-thumbs-up" style="font-size: 40pt;"></i></a>
</div>
<div class="col-xs-1 col-sm col-md col-lg col-xl col-xxl">
<p>Просмотры: {$page[0].reyt}</p>
<p>Лайки: <span id="likes">{$page[0].likes}</span></p>
</div>
<div class="col-xs-1 col-sm-3 col-md-3 col-lg-3 col-xl-3">
<p>Дата публикации: {$page[0].t|t}</p>
<p>Автор: <a href="/user/{$user_info[0].id}">{$user_info[0].fio}</a></p>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
{if ($smarty.session.dostup=='a' || $smarty.session.dostup=='m' || $smarty.session.user_id==$user_info[0].id)}
<button type="button" data-link="/page_edit/{$page[0].id}" class="btn btn-primary" title="Изменить"><i class="fas fa-edit"></i></button> {/if} {if ($smarty.session.dostup=='a' || $smarty.session.dostup=='m')}
<button type="button" class="btn btn-primary" title="Настроить эту страницу"><i class="fas fa-cog"></i> </button>
<button type="button" class="btn btn-primary" title="Удалить"><i class="fas fa-trash-alt"></i> </button>
<button type="button" class="btn btn-primary" title="Снять с публикации"><i class="fas fa-lock"></i> </button>
<button type="button" class="btn btn-primary" title="Вернуть публикацию"><i class="fas fa-lock-open"></i> </button> {/if}
</div>
</div>
{if ($user_info[0].ava)}
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 col-xl-1 p-0">
<a href="/user/{$user_info[0].id}"><img src="/api/modules/page/img/anonim_200.jpg" data-original="/img/avatars/{$user_info[0].ava}.jpg" class="lazy" style="width: 100%;"></a>
</div>
{/if}
</div>
</div>
{/if}