2022-12-17 18:15:09 +05:00
|
|
|
|
{include file=$header title={$page[0].title}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Page info -->
|
|
|
|
|
<div class="page-info-section set-bg" data-setbg="img/page-bg/3.jpg">
|
|
|
|
|
<div class="container" style="position: absolute; margin-top:215px; margin-left: auto; margin-right: auto; left: 0; right: 0;">
|
|
|
|
|
<div class="row" style="z-index: 400;">
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<div class="site-breadcrumb">
|
|
|
|
|
<a href="/">Старт</a>
|
2023-02-12 15:08:07 +05:00
|
|
|
|
<span>{$page[0].title}</span>
|
2022-12-17 18:15:09 +05:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-12 15:08:07 +05:00
|
|
|
|
<div class="col"><!--h1 style="font-size: 20pt; color: #fff;"class="text-right">{$page[0].title}</h1--></div>
|
2022-12-17 18:15:09 +05:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-13 16:05:33 +05:00
|
|
|
|
{if $smarty.session.user_id}
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="alert alert-dark" role="alert" style="border-radius: 0px 0px 10px 10px;">
|
|
|
|
|
<a href="/blog_edit/"><i class="fa-regular fa-square-plus" title="Создать статью" style="font-size: 22pt;"></i></a>
|
|
|
|
|
{if ($smarty.session.user_id==$page[0].user_id)}
|
|
|
|
|
<a href="/blog_edit/{$page[0].id}"><i class="fa-solid fa-pen-to-square" style="font-size: 22pt; margin-left: 10px;" title="Изменить страницу"></i></a>
|
2023-02-12 15:08:07 +05:00
|
|
|
|
|
2023-02-13 16:05:33 +05:00
|
|
|
|
|
|
|
|
|
<a href="/blog_moder_comments/{$page[0].id}"><i class="fa-sharp fa-solid fa-comment-dots" style="font-size: 22pt; color:red; margin-left: 10px;" title="Модерировать коментарии"></i></a>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
2023-02-12 15:08:07 +05:00
|
|
|
|
<div class="container" style="margin-top: 60px;">
|
|
|
|
|
<h1 class="text-center" style="font-size: 22pt;">{$page[0].title}</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container mt-3" style="border: 1px solid lightgray; border-radius: 5px; padding-top: 10px; padding-bottom: 10px;">
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<img src="/img/{$smarty.server.SERVER_NAME}/ava/{$autor[0].ava}" style="width: 100%" class="mb-3">
|
|
|
|
|
|
|
|
|
|
{if ({$autor[0].soc_vk})}<a href="{$autor[0].soc_vk}" rel="nofollow" target="_blank"><img src="/img/{$smarty.server.SERVER_NAME}/soc/soc_vk_color.png" style="width: 30px;"></a>{/if}
|
|
|
|
|
{if ({$autor[0].soc_ok})}<a href="{$autor[0].soc_ok}" rel="nofollow" target="_blank"><img src="/img/{$smarty.server.SERVER_NAME}/soc/soc_ok_color.png" style="width: 30px;"></a>{/if}
|
|
|
|
|
{if ({$autor[0].soc_ig})}<a href="{$autor[0].soc_ig}" rel="nofollow" target="_blank"><img src="/img/{$smarty.server.SERVER_NAME}/soc/soc_ig.png" style="width: 30px;"></a>{/if}
|
|
|
|
|
{if ({$autor[0].soc_dz})}<a href="{$autor[0].soc_dz}" rel="nofollow" target="_blank"><img src="/img/{$smarty.server.SERVER_NAME}/soc/soc_dz.png" style="width: 30px;"></a>{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<h3 style="font-size: 18pt;" class="mb-3">Информация об авторе</h3>
|
|
|
|
|
<p><b><a href="/user/{$autor[0].id}">{$autor[0].fio}</a></b></p>
|
2023-02-13 16:05:33 +05:00
|
|
|
|
<p>{$autor[0].about|substr:200}</p>
|
2023-02-12 15:08:07 +05:00
|
|
|
|
<p>{$autor[0].dostup}</p>
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<p>Все статьи автора {$pageskolvo}</p>
|
|
|
|
|
<p>Благодарности: <span style="margin-left: 10px;" id="user_spasibo">{$autor[0].spasibo}</span> <i class="fa-regular fa-thumbs-up likeup" style="font-size: 12pt;margin-left: 10px; cursor: pointer;" data-id="{$autor[0].id}" data-elem="#user-spasibo" data-tip="user_spasibo"></i></p>
|
|
|
|
|
<p>Рейтинг: <span style="margin-left: 10px;" id="user-reyt">{$autor[0].reyt}</span> <i class="fa-regular fa-thumbs-up likeup" data-id="{$autor[0].id}" data-elem="#user-reyt" data-tip="user_reyt" style="font-size: 12pt; margin-left: 10px; cursor: pointer;"></i></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
|
<!-- Page info end -->
|
2023-02-13 16:05:33 +05:00
|
|
|
|
<article class="container mt-3">
|
2022-12-17 18:15:09 +05:00
|
|
|
|
{$page[0].txt}
|
2023-02-13 16:05:33 +05:00
|
|
|
|
<hr>
|
|
|
|
|
<p>Рейтинг: <span style="margin-left: 10px;" id="page-reyt">{$page[0].reyt}</span> <i class="fa-regular fa-thumbs-up likeup" data-id="{$page[0].id}" data-elem="#page-reyt" data-tip="page_reyt" style="font-size: 12pt; margin-left: 10px; cursor: pointer;"></i></p>
|
|
|
|
|
<p>Обновлено: {$page[0].t|t}</p>
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container mt-3" style="border: 1px solid lightgray; border-radius: 5px; padding-top: 10px; padding-bottom: 10px;">
|
|
|
|
|
|
|
|
|
|
{if ($smarty.session.user_id)}
|
|
|
|
|
<form id="add_comment" action="/act/page" method="post">
|
|
|
|
|
<input type="hidden" name="page_id" value="{$smarty.get.id}">
|
|
|
|
|
<input type="hidden" name="act" value="add_comment">
|
|
|
|
|
<textarea class="form-control" style="height: 200px;" name="txt"></textarea>
|
|
|
|
|
<input type="submit" name="ok" value="Добавить коментарий" class="btn btn-dark">
|
|
|
|
|
<div class="alert alert-dark hidden" role="alert" style="border-radius: 10px 10px 10px 10px;" id="div-commen-add">
|
|
|
|
|
Мы обязательно опубликуем ваш коментарий после модерации!
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
{/if}
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{section name=customer loop=$comments} {if $comments[customer].id}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-2 comment-{$comments[customer].id}">
|
|
|
|
|
<img src="/img/{$smarty.server.SERVER_NAME}/ava/{$comments[0].ava}" style="width: 100%" class="mb-3">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-10 comment-{$comments[customer].id}">
|
|
|
|
|
<p><b>{$comments[customer].fio} - {$comments[customer].t|t}</b></p>
|
|
|
|
|
<p>{$comments[customer].txt}</p>
|
|
|
|
|
<p>Нравится: <span style="margin-left: 10px;" id="comment-reyt-{$comments[customer].id}">{$page[0].reyt}</span>
|
|
|
|
|
<i class="fa-regular fa-thumbs-up likeup" data-id="{$comments[customer].id}" data-elem="#comment-reyt-{$comments[customer].id}" data-tip="comment_reyt" style="font-size: 12pt; margin-left: 10px; cursor: pointer;"></i></p>
|
|
|
|
|
{if ($smarty.session.dostup=='a')}
|
|
|
|
|
<p><i class="fa-solid fa-trash moder" data-id="{$comments[customer].id}" data-tip="del" style="font-size: 12pt; margin-left:10px; color: red; cursor: pointer;"></i></p>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/if} {/section}
|
|
|
|
|
</div>
|
2022-12-17 18:15:09 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-02-13 16:05:33 +05:00
|
|
|
|
|
2022-12-17 18:15:09 +05:00
|
|
|
|
{include file=$footer}
|