{{if count($aFiles) > 0}}
	<div class="images-gallery">
		{{foreach from=$aFiles item=aFile}}
			{{if is_array($aFile)}}
				<figure class="photo" style="width: {{$aFile.iSize}}px">
					<a href="{{$config.dir_files}}{{$config.max_image_size_full}}/{{$aFile.sFileName}}" rel="gallery" title="{{if !empty( $aFile.sDescription )}}{{$aFile.sDescription}} - {{/if}}{{$aFile.sFileName}}">
						<img src="{{$config.dir_files}}{{$aFile.iSize}}/{{$aFile.sFileName}}" alt="{{if !empty( $aFile.sDescription )}}{{$aFile.sDescription}} - {{/if}}{{$aFile.sFileName}}" width="{{$aFile.iSize}}" height="{{$aFile.iSize}}" />
					</a>
					{{if isset($aFile.sDescription)}}
						<figcaption>{{$aFile.sDescription}}</figcaption>
					{{/if}}
				</figure>
			{{/if}}
		{{/foreach}}
	</div>
{{/if}}