{assign var="galery_path" value=$gallerydir}
<div class="pure-g events-blocks">
  {foreach from=$images item=image2 name="inner_pictures"}
  {assign var="path" value="`$galery_path`/`$image2->filename`"}
  {Gallery dir=$path template="sistemine" assign="oth"}
		<div class="pure-u-1-1 pure-u-md-1-{if $menu}2{else}3{/if}">
				<div class="events-blocks-item">
						<a href="{$first_image_original}" class="fancy" rel="gal_{$image->galleryid}" title="{$first_title}">
								<img src="{CGSmartImage src=$first_image_original filter_croptofit='382,197,1,c' noautoscale='false' notag=1}" alt="" class="photo">
						</a>
            {$oth}
				</div>
		</div>
		{/foreach}
</div>
