<section id="slider" class="slider">
	<div class="flexslider">
		<ul class="slides">
			{foreach from=$arrayToEditBaner item=objHomeElementBaner key=keyHome}
				{if $objHomeElementBaner->GetPhotoUrl()}
					<li>
						<div class="clearfix">
							{if isset($indexSG)}
								<img src="{$objHomeElementBaner->GetPhotoUrl()}" alt="" />
							{else}
								{assign var=imageSlider value=$objHomeElementBaner->GetPhotoPath()}
								{thumb file=$imageSlider longside=false shortside=false width="1200" height="290" link='false' crop=true }
							{/if}
							<div class="wrap">
								<div class="desc-wrap">											
									<div class="desc"><p style="opacity: 0; visibility: visible;">{$objHomeElementBaner->GetDescription()}</p>

									</div>
									<h3 style="opacity: 0; visibility: visible;">{$objHomeElementBaner->GetName()}</h3>
									<a class="more" href="{$objHomeElementBaner->GetSourceUrl()|default:'#'}" style="opacity: 0; visibility: visible;">{'read_more_slider'|translate}</a>
								</div>
							</div>
						</div>
					</li>
				{/if}  
			{/foreach}

		</ul>	
	</div>
</section>



{*
<ul class="slides">
<li>
<div class="clearfix">
<img src="{$urlStatic}/image/tmp/slider1.jpg" />
<div class="wrap">
<div class="desc-wrap">											
<div class="desc"><p style="opacity: 0; visibility: visible;">Sed porttitor lectus nibh. Donec rutrum congue leo eget malesuada.</p>
<a class="more" href="#" style="opacity: 0; visibility: visible;">czytaj więcej</a>
</div>
<h3 style="opacity: 0; visibility: visible;">Sed porttitor lectus nibha</h3>

</div>
</div>
</div>
</li>
<li>
<div class="clearfix">
<img src="{$urlStatic}/image/tmp/slider2.jpg" />
<div class="wrap">
<div class="desc-wrap">
<div class="desc"><p style="opacity: 0; visibility: visible;">Donec rutrum congue leo eget malesuada. </p>
<a class="more" href="#" style="opacity: 0; visibility: visible;">czytaj więcej</a>
</div>
<h3 style="opacity: 0; visibility: visible;">Pellentesque in ipsum id</h3>

</div>
</div>
</div>
</li>
<li>
<div class="clearfix">
<img src="{$urlStatic}/image/tmp/slider3.jpg" />
<div class="wrap">
<div class="desc-wrap">
<div class="desc"><p style="opacity: 0; visibility: visible;">Quisque velit nisi, pretium ut lacinia in, elementum id enim. </p>
<a class="more" href="#" style="opacity: 0; visibility: visible;">czytaj więcej</a>
</div>
<h3 style="opacity: 0; visibility: visible;">Orci porta dapibus.</h3>

</div>
</div>
</div>
</li>
<li>
<div class="clearfix">
<img src="{$urlStatic}/image/tmp/slider4.jpg" />
<div class="wrap">
<div class="desc-wrap">
<div class="desc"><p style="opacity: 0; visibility: visible;">Donec rutrum congue leo eget malesuada.  </p>
<a class="more" href="#" style="opacity: 0; visibility: visible;">czytaj więcej</a>
</div>
<h3 style="opacity: 0; visibility: visible;">Curabitur aliquet quam</h3>

</div>
</div>
</div>
</li>
</ul>
</div>
</section>*}