<?@header("Content-Type: text/html; charset=UTF-8");?><!DOCTYPE html>
<html>
<head>
	<title>ARCHLine.XP MyDesign</title>
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes;" name="viewport" />
	
	<link href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" rel="stylesheet" />
	<link href="/public/js/photoswipe/examples/jquery-mobile.css" type="text/css" rel="stylesheet" />
	<link href="/public/js/photoswipe/photoswipe.css" type="text/css" rel="stylesheet" />
	
	<script type="text/javascript" src="/public/js/photoswipe/3.0.5/lib/klass.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.1.0/jquery.mobile-1.1.0.min.js"></script>
	<script type="text/javascript" src="/public/js/photoswipe/3.0.5/code.photoswipe.jquery-3.0.5.min.js"></script>
	
	
	<script type="text/javascript">

		(function(window, PhotoSwipe){
		
			document.addEventListener('DOMContentLoaded', function(){
			
				var
					options = {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" data-add-back-btn="true" id="Gallery" class="gallery-page">

	<div data-role="header">
		<h1><?=$projekt->project?></h1>
		<?if(isset($uid) && is_numeric($uid)):?>
		<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/usergallery/<?=$uid?>" data-role="button" data-icon="arrow-l" data-ajax="false">
		<?else:?>
		<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/guests/<?=$this->uri->segment(4)?>" data-role="button" data-icon="arrow-l" data-ajax="false">
		<?endif;?>
		<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" style="padding: 20px;">	
		
		<?if($projekt->kepek):?>
		<ul class="gallery">
		
			<?foreach($projekt->kepek as $kep):?>
			<?if( !is_dir($utvonal.$kep) ):?>
			<li><a href="/<?=$projekt->utvonal?><?=$kep->cu_id?>/1__1024.jpg" rel="external"><img src="/<?=$projekt->utvonal?><?=$kep->cu_id?>/1__300.jpg" alt="<?=$kep->title?>" /></a></li>
			<?endif;?>
			<?endforeach;?>
			
		</ul>
		<?else:?>
		<?=lang('collec2_nincspubit')?>
		<?endif;?>
		
	</div>
	
	<div data-role="footer">
		<h4><?=lang('m_cegnev')?></h4>
	</div>
	
</div>

</body>
</html>
