<div class="pure-g items-list">

    {foreach from=$nodelist item=node }
        {if $node->depth == 1}
            {assign var="data" value=$node->id|get_data}
            <div class="pure-u-1-1 pure-u-md-1-{if $vidinis == "projektu_sarasas"}3{else}4{/if}">
                <div class="items-list-item">

                    <a href="{$node->url}" class="photo"{if $node->target} target="{$node->target}"{/if}>
                        {assign var="image" value=$data.pictures_test|unserialize}
                        {assign var="image" value=$image.0}
                        {if !$image}{assign var="image" value="/images/no-image.png"}{/if}
                        {CGSmartImage src=$image filter_croptofit="737,492,tc,1" upscale=1 noautoscale='false' quality=100}

                        <span class="title">
                            {$node->pagetitle}
                        </span>
                    </a>
                    <div class="cont">
                        <div>
                            {$data.short|strip_tags|truncate:150}
                        </div>
                        <div>
                            <a href="{$node->url}" class="ext_button f_14 red-style uppercase">
                                <span>{#placiau#}</span>
                                <i class="fa fa-caret-right" aria-hidden="true"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        {/if}
    {/foreach}

</div>
