<div class="entry-header entry-header-2 mb-50 mt-50 text-center">
<div class="entry-meta meta-0 font-small mb-30">
<a href="{category-url}"><span class="post-cat bg-success color-white">{category}</span></a></div>
<div class="entry-meta meta-1 font-small font-weight-normal color-grey text-uppercase">
<span class="hit-count">[profile]<i class="ti-user"></i>[fullname] {fullname} ({login})[/fullname] [not-fullname]{login}[/not-fullname] [/profile]</span>
<span class="hit-count"><i class="ti-time"></i> {date=d.m.Y H:i}</span>
[edit-date] <span class="update-on"><i class="ti ti-alarm-clock"></i> Пост обновлен {edit-date=d.m.Y} в {edit-date=H:i} </span>[/edit-date]
<span class="hit-count"><i class="ti-comment"></i> {comments-num} [declination={comments-num}]комментари|й|я|ев[/declination]</span>
<span class="hit-count"><i class="ti-eye"></i> {views} [declination={views}]просмот|р|ра|ров[/declination]</span>
[edit]<span class="hit-count"><i class="ti-pencil"></i>Редактировать</span>[/edit]
[add-favorites]<span class="hit-count"><i class="ti-heart"></i>В закладки</span>[/add-favorites]
[del-favorites]<span class="hit-count"><i class="ti-agenda"></i>Удалить</span>[/del-favorites]
</div>
</div>
<div class="row mb-50" style="transform: none;">
<div class="col-lg-8 col-md-12">
<div><figure class="single-thumnail mb-30">
<img src="[xfvalue_image_url_poster]"alt="{title}">
</figure></div>
<div>[xfvalue_gallery]</div>
<div class="single-excerpt">
<div class="font-large">{short-story}</div>
</div>
<div class="entry-main-content">
{full-story}
</div>
<hr class="wp-block-separator is-style-wide">
<div class="entry-bottom mt-30 mb-10 d-flex justify-content-between align-items-center">
<div class="font-weight-500 entry-meta meta-1 font-md color-grey"></div>
<div class="single-social-share float-right">
<div class="d-inline-block list-inline d-flex justify-content-end align-items-center">
<span class="font-small text-muted pr-15"><i class="ti-sharethis mr-15"></i></span>
<script src="https://yastatic.net/share2/share.js"> </script>
<div class="ya-share2" data-curtain data-shape="round" data-services="moimir,vkontakte,odnoklassniki,telegram,whatsapp,max"></div>
</div>
</div>
<span class="hit-count"> [rating-type-3]
<div class="mwrating" style="margin: 10px 0px 0px 0px;">
<div class="wmminus">[rating-minus]-[/rating-minus]</div>
<div class="mwrat">{rating}</div>
<div class="wmplus">[rating-plus]+[/rating-plus]</div>
</div>
[/rating-type-3] </span>
</div>
[tags]
<div class="entry-bottom mb-0 w-100 pb-0 overflow-hidden">
<hr class="wp-block-separator is-style-wide">
<div class="tags float-left pt-10 text-muted mb-md-30">
<span class="font-small mr-10"><i class="fa fa-tag mr-5"></i>Теги: </span>
{tags}
</div>
</div>
[/tags]
<div class="author-bio border-radius-10 bg-white p-30 mt-50 mb-40">
<div class="author-image mb-30">
<a href="{profile-link}" class="[online]online[/online]"><img src="{foto}" alt="" class="avatar"></a></div>
<div class="author-info">
<h3><span class="vcard author"><span class="fn"><a href="{profile-link}" title="Профиль автора" rel="author">
[fullname]{fullname} ({login})[/fullname][not-fullname]{login}[/not-fullname]
</a></span></span></h3>
<div class="author-description">[user-info]{user-info}[/user-info][not-user-info]Автор пока не написал ничего о себе.[/not-user-info]</div>
<a href="{news}" class="author-bio-link text-muted">Смотреть все посты автора</a>
</div>
</div>
[related-news]
<div class="related-posts">
<h3 class="mb-30">Похожие</h3>
<div class="row">
{related-news}
</div>
</div>
[/related-news]
[comments]
<div class="comments-area">
<h3 class="mb-30">{comments-num} [declination={comments-num}]комментари|й|я|ев[/declination]</h3>
{comments}
</div>
[/comments]
<div class="comment-form">
<h3 class="mb-30">Обсудить</h3>
{addcomments}
</div>
</div>
<div class="col-lg-4 col-md-12 sidebar-right sticky-sidebar">
{include file="modules/right-sidebar.tpl"}
</div>
</div>
if(document.addnews.short_story.value == ''){if(document.addnews.category.value == ''){
Growl.error({
title: '{$lang[p_info]}',
text: 'Не выбрана категория для этой публикации'
});
status = 'fail';
}if(document.addnews.short_story.value == ''){if(document.addnews.category.value == '0'){
Growl.error({
title: '{$lang[p_info]}',
text: 'Не выбрана категория для этой публикации'
});
status = 'fail';
}if( $row['allow_comm'] ) {
$tpl->set( '[com-link]', "<a id=\"dle-comm-link\" href=\"" . $full_link . "#comment\">" );
$tpl->set( '[/com-link]', "</a>" );
// Разрешаем вывод тега [allow-com]
$tpl->set( '[allow-com]', "" );
$tpl->set( '[/allow-com]', "" );
// Убираем блок с сообщением о запрете комментирования
$tpl->set_block( "'\\[not-allow-comm\\](.*?)\\[/not-allow-comm\\]'si", "" );
} else {
// Убираем ссылки на комментарии и тег "разрешено"
$tpl->set_block( "'\\[com-link\\](.*?)\\[/com-link\\]'si", "" );
$tpl->set_block( "'\\[allow-com\\](.*?)\\[/allow-com\\]'si", "" );
$tpl->set( '[not-allow-comm]', "" );
$tpl->set( '[/not-allow-comm]', "" );
}
