{** * Базовый шаблон топика * * @styles assets/css/topic.css * @scripts /js/livestreet/topic.js *} {* Название компонента *} {$component = 'article'} {block 'article_options'} {$isPreview = $smarty.local.isPreview} {$user = $article->getUser()} {$type = ($article->getType()) ? $article->getType() : $smarty.local.type} {$isList = $smarty.local.isList} {$mods = $smarty.local.mods} {$classes = $smarty.local.classes} {if ! $isList} {$mods = "{$mods} single"} {/if} {/block} {block 'article'}
{** * Хидер *} {block 'article_header'}
{* Заголовок *}

{block 'article_title'} {if $isList} {$article->getTitle()|escape} {else} {$article->getTitle()|escape} {/if} {/block}

{* Информация *}
    {block 'article_header_info'}
  • {/block}
{* Управление *} {if $article->getIsAllowAction() && ! $isPreview} {block 'article_header_actions'} {$items = [ [ 'icon' => 'icon-edit', 'url' => $article->getUrlEdit(), 'text' => $aLang.common.edit, 'show' => $article->getIsAllowEdit() ], [ 'icon' => 'icon-trash', 'url' => "{$article->getUrlDelete()}?security_ls_key={$LIVESTREET_SECURITY_KEY}", 'text' => $aLang.common.remove, 'show' => $article->getIsAllowDelete() ] ]} {/block} {include 'components/actionbar/actionbar.tpl' items=$items} {/if}
{/block} {** * Текст *} {block 'article_body'}
{block 'article_content_text'} {if $isList} {$article->getTextShort()} {* Кат *} {if $article->getTextShort() != $article->getText()}
{$article->getCutText()|default:$aLang.topic.read_more} {/if} {else} {$article->getText()} {/if} {/block}
{/block} {** * Футер *} {block 'article_footer'} {/block} {* /article_footer *}
{/block}