<?@header("Content-Type: text/html; charset=UTF-8");?><!DOCTYPE html>
<html>
<head>
	<title><?if(isset($title) && $title):?><?=$title?><?else:?>ARCHLine.XP Gallery<?endif;?></title>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<?//<meta name="description" content="Interior design gallery, ARCHLine.XP CAD sofware" />?>
	<?if(isset($meta['desc'])):?><meta name="description" content="<?=$meta['desc']?>" /><?endif;?>
	
	<?if(isset($canonical) && $canonical):?><link rel="canonical" href="<?=$canonical?>" /><?endif;?>
	
	<link type="text/css" rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css" media="handheld, screen" />
	<link type="text/css" rel="stylesheet" href="/public/js/photoswipe/examples/jquery-mobile.css" media="handheld, screen" />
	<link type="text/css" rel="stylesheet" href="/public/js/photoswipe/photoswipe.css" media="handheld, screen" />
	
	<script type="text/javascript" src="/public/js/photoswipe/lib/klass.min.js"></script>
	<script type="text/javascript" src="/public/js/photoswipe/code.photoswipe-3.0.4.min.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
	
	
	<script type="text/javascript">
		(function(window, PhotoSwipe){
		
			document.addEventListener('DOMContentLoaded', function(){
			
				var
					options = {margin: 150, captionAndToolbarAutoHideDelay: 0},
					instance = PhotoSwipe.attach( window.document.querySelectorAll('#Gallery a'), options );
			
			}, false);
			
			
		}(window, window.Code.PhotoSwipe));
	</script>

<?if(!hun()):?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7485741-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?else:?>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5480261-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?endif;?>

</head>
<body>
<?=$this->load->view('mobile/noscript')?>

<div data-role="page" id="Gallerypage" class="gallery-page">

<div data-role="header">
	<h1 class="ui-title"><?if(isset($mgtitle) && $mgtitle):?><?=$mgtitle?><?else:?>ARCHLine.XP Gallery<?endif;?></h1>
		<?if(isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']!=""):?>
		<a data-theme="a" data-wrapperels="span" data-iconshadow="true" data-shadow="true" data-corners="true" class="ui-btn-left ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-left ui-focus ui-btn-up-a" data-rel="back" href="<?=$_SERVER['HTTP_REFERER']?>" data-icon="arrow-l">
		<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>
		<?endif;?>
</div>
	
<div id="MainContent">	
	
	<ul id="Gallery" class="gallery">
	<?foreach($kepek as $kep):?>
	<?if( !is_dir($kep->kep) ):?>
		<li><a href="/<?=$kep->kep?>" rel="external"><img src="/<?=$kep->kiskep?>" alt="<?=$kep->kepalt?>" /></a></li>
	<?endif;?>
	<?endforeach;?>
	</ul>
	
</div>	

	
<div data-role="footer">
	<h4>&copy; <?=lang('m_cegnev')?></h4>
</div>

</div>
</body>
</html>
