{assign var="modified_date2" value=$entry->modified_date|date_format:'%Y-%m-%d'}

{assign var="naujiena" value=$entry->title|cms_escape:htmlall}
<h2>{$entry->title}</h2>

{$entry->postdate|date_format:'%Y-%m-%d'|tomonth:$kalba}
<br/>
<br/>

{eval var=$entry->content assign="content"}

{*assign var="image_url" value=""}
{if is_array($n_pictures) && count($n_pictures) > 0}
	{assign var="image_url" value=array_shift($n_pictures)}
{/if}

{if $image_url|@count > 0}
	<div class="pure-g">
		<div class="pure-u-1-1 pure-u-md-1-2 cont">
			{$content}
		</div>
		<div class="pure-u-1-1 pure-u-md-1-2 photo">
			<a href="{$image_url.full}" class="fancy" data-fancybox="ph"><img src="{CGSmartImage src=$image_url.full filter_croptofit='572,407,c,1' quality=100 notag=1}" alt=""></a>
		</div>

	</div>
{else}
	<div>
		{$content}
	</div>
{/if*}

{assign var="path" value="uploads/news/id{$entry->id}/"}
{assign var="side_photo" value=$entry->fieldsbyname['Nuotrauka teksto dešinėje']->_data.value}

<div>
    {if $side_photo}
        {$side_photo = $path|cat:$side_photo}
        <img class="news_right"
             src="{CGSmartImage src=$side_photo filter_croptofit='470,340,c,1' noautoscale='false' quality=100 notag=1}"
             alt="">
    {/if}
    {$content}
</div>

{if is_array($n_pictures) && count($n_pictures) > 0}
    <br/>
    {if count($n_pictures) > 1}
        <div class="mojo-carusel-container">
        <div class="swiper-container mojo-carusel">
        <div class="swiper-wrapper">
    {/if}
    {foreach from=$n_pictures item="entry" name="pavs"}
        <div class="swiper-slide">
            <a href="{$entry.full}" class="fancy" data-fancybox="ph"><img class="photo"
                                                                          src="{CGSmartImage src=$entry.full filter_croptofit='370,247,c,1' noautoscale='false' quality=100 notag=1}"
                                                                          alt=""></a>
        </div>
    {/foreach}
    {if count($n_pictures) > 1}
        </div>
        </div>
        {if count($n_pictures) > 3}
            <div class="swiper-button-prev"><i class="fa fa-angle-left"></i></div>
            <div class="swiper-button-next"><i class="fa fa-angle-right"></i></div>
        {/if}
        </div>
    {/if}
{/if}

<div class="up-date">
    {#paskutini_karta_redaguota#}:&nbsp;{$modified_date2}
</div>

{assign var="active_news" value=$entry->id}
