<div class="row">

    <div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 col-xxl-4 mb-3">
        <img class="img-responsive" src="../../{$news.image}" alt="" style="min-height: 210px;">
    </div>
    <div class="col-12 col-sm-12 col-md-8 col-lg-8 col-xl-8 col-xxl-8 mb-3">
        <h4 class="fs-5">{$news.title}</h4>
        <p class="mb-2"><span class="text-muted">Категории</span>:
            {assign var='categoryAltNames' value=','|explode:$news.category_alt_names}
            {foreach $categories as $index => $category}
                {if $index > 0}, {/if}<a href="/nc/{$categoryAltNames[$index]|default:''|escape:'url'}">{$category}</a>
            {/foreach}
        </p>
        
        {if isset($x_value[0])}<p><span class="text-muted">{$lang.fields.news.0}:</span> {$x_value[0]}</p>{/if}
        {if isset($x_value[1])}<p><span class="text-muted">{$lang.fields.news.1}:</span> {$x_value[1]}</p>{/if}
        {if isset($x_value[2])}<p><span class="text-muted">{$lang.fields.news.2}:</span> {$x_value[2]}</p>{/if}
        {if isset($x_value[3])}<p><span class="text-muted">{$lang.fields.news.3}:</span> {$x_value[3]}</p>{/if}
        
        <p><span class="text-muted">Просмотров:</span> {$news.views} | <span class="text-muted">Рейтинг:</span> {$news.rating} | <span class="text-muted">Теги:</span> {$news.tags}</p>
    </div>
    <div class="widget-selection">
        {include file='system/content/widget-select.tpl' object_name='news' object_id=$news.id}
    </div>
    <div class="col-12 mt-2">
        <pre class="px-2 mb-3">{$news.short_desc}</pre>
        <pre class="px-2 mb-3">{$news.full_desc}</pre>
    </div>
    <div class="col-12 mt-3">
        <h5>Комментарии:</h5>
        {include file='main/comments.tpl' comments=$comments news=$news}
    </div>
</div>