<div data-role="page">
<div data-role="header">
	<h1 style="margin-left: 70px; margin-right: 15px;"><?=lang('gal_users2')?></h1>
    <a class="ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-left ui-btn-up-a" data-theme="a" data-wrapperels="span" data-iconshadow="true" data-shadow="true" data-corners="true" href="/mobile#galleries" data-role="button" data-icon="arrow-l" data-ajax="false">
		<span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text"><?=lang('forum_vissza')?></span>
		<span class="ui-icon ui-icon-arrow-l ui-icon-shadow">&nbsp;</span></span>
    </a>
</div>





<div data-role="content">
<ul data-role="listview" data-inset="true">
<?foreach($galeriak as $galeria):?>
    <li class="ui-btn ui-btn-icon-right ui-li-has-arrow ui-li-has-thumb" data-iconpos="right" data-icon="arrow-r" data-iconshadow="true" data-shadow="false" data-corners="false" style="padding: 2px;">
		<div class="ui-btn-inner"><div class="ui-btn-text">
            <?if(substr($galeria->link,0,4)=='http'):?>
           <a style="min-height: 15px" class="ui-link-inherit" href="<?=$galeria->link?>" target="_blank">
			 <?else:?>
			<a style="min-height: 15px" class="ui-link-inherit" href="/mobile/gallerydetail/<?=str_replace("gallery/","",$galeria->mappa)?>" data-ajax="false">
			<?endif;?>
            <img class="ui-li-thumb" src="/public/<?=$galeria->mappa?>/thumbs/<?=$galeria->kezdo?>" alt="">
			<h3 style="margin-top: 0px;"><?=$galeria->cim?></h3>
			<p class="ui-li-desc"><?=strip_tags(preg_replace('/<a[^<>]*?>(.*?)<\/a>/', ' ', $galeria->leiras))?></p>
			</a></div>
			<span class="ui-icon ui-icon-arrow-r ui-icon-shadow">&nbsp;</span>
		</div>
		</li>
<?endforeach;?>
</ul>
<?if(count($galeriak) >3):?>
<a onclick="javascript:$.mobile.silentScroll(0)"><?=lang('m_totop')?></a>
<?endif;?>
</div>

<div data-role="footer">
	<p style="text-align: center">&copy; <?=lang('m_cegnev')?>
	<?if($fullpage):?>
	| <a href="<?=$fullpage?>" data-ajax="false"><?=lang('m_teljesv')?></a>
	<?endif;?>
	</p>
</div>

</div>