File size: 1.87Kb
<div class="head"><a href="{$home}/blogs">Блоги</a> / <a href="{$home}/blogs/{$row.refid}">{$row.namecat|esc|escape}</a> / {$title}
{if $user.id}
<span class="pull-right">
<a href="{$home}/profile/blog/add">Добавить пост</a>
</span>
{/if}
</div>
<div class="fon">
{if $user.id}
{if isset($error)}<div class="alert alert-danger">{$error}</div>{/if}
<form action="{$url}" method="post" class="fon">
<p>Текст сообщения: <br/>
{include file='system/panel.tpl'}
{$smarty.capture.add_comments}
</p>
{if $setup.captcha_comments_blog == 1}
{include file='system/captcha.tpl'}
{/if}
<p><input type="submit" name="ok" value="Отправить" class="btn btn-primary"></p>
</form>
{else}
{include file='system/error.tpl'}
{$smarty.capture.comments}
{/if}
{if $count > 0}
{foreach from=$arrayrow item=rows key=k}
<div class="list text">
{include file='system/user.tpl'}
{$smarty.capture.comments}
{$smarty.capture.text}
{if $user.level > 9}
<span class="breadcrumb">
<a href="{$home}/blogs/edit/comments/{$rows.id}" title="Редактировать"><i class="fa fa-pencil"></i></a>
{if $user.level > 10}
<a href="{$home}/blogs/del/comments/{$rows.id}" title="Удалить"><i class="fa fa-trash-o"></i></a>
{/if}
</span>
{/if}
</div>
{/foreach}
{else}
<div class="alert alert-danger">Комментариев к посту ещё нет...</div>
{/if}
</div>