Viewing file: d8b43f4df3f7772984b202d801807f6e50f6c2ed.file.album.tpl.php (7.06 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-04-12 16:39:12 compiled from "user/templates/photochapter/album.tpl" */ ?> <?php /*%%SmartyHeaderCode:19858618854f86db00bd98e3-44498658%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'd8b43f4df3f7772984b202d801807f6e50f6c2ed' => array ( 0 => 'user/templates/photochapter/album.tpl', 1 => 1334237952, ), ), 'nocache_hash' => '19858618854f86db00bd98e3-44498658', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <div class="template-page photos-list">
<table class="header">
<tr>
<td class="left" nowrap="nowrap" style="width:auto;">
<div class="counter">
<?php if (strlen($_GET['text'])>0){?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Found'];?>
<?php }else{ ?>
<?php if ($_GET['album_id']==0){?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['InSite'];?>
<?php }else{ ?>
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['InAlbum'];?>
<?php }?>
<?php }?>
<?php echo $_smarty_tpl->getVariable('countRows')->value;?>
<?php echo AssumeNumber($_smarty_tpl->getVariable('countRows')->value,$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['photos']);?> .
</div>
</td>
<td class="center" style="width:auto;">
<div class="search-panel">
<form method="get">
<input name="text" type="text" class="search" val="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SearchPhotoDefaultText'];?> " value="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SearchPhotoDefaultText'];?> " style="color:gray;" size="16" /> <input type="image" src="/user/icons/search-icon.gif" align="absmiddle" />
</form>
</div>
</td>
<td class="right" style="width:auto;">
<?php if ($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y'){?>
<div class="manage-panel">
<ul>
<li><a href="/photochapter/<?php echo $_GET['album_id'];?> /edit"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['EditAlbum'];?> </a></li>
</ul>
<?php }?>
</div>
<div class="manage-panel">
<ul>
<li style="position: relative;"><a href="javascript: return false;" class="submenu"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Sort'];?> </a>
<ul class="submenu">
<li><a href="?order=default"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotoSortOrderDefault'];?> </a></li>
<li><a href="?order=desc"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotoSortOrderDesc'];?> </a></li>
<li><a href="?order=asc"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotoSortOrderAsc'];?> </a></li>
<li><a href="?order=comments"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotoSortOrderComments'];?> </a></li>
</ul>
</li>
<?php if (($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y')){?><li class="delimiter">|</li>
<li><a href="/photochapter/<?php echo $_GET['album_id'];?> /upload" class="<?php if (!isset($_SESSION['user'])){?>photo-login<?php }?> <?php if ($_smarty_tpl->getVariable('album')->value['album_closed']=='Y'&&$_SESSION['user']['user_access']['admin']!='Y'){?>album-closed<?php }?>"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotosAdd'];?> </a></li>
<?php }?>
<?php if (isset($_SESSION['user'])&&$_SESSION['user']['user_blacklisted']!=1&&$_SESSION['user']['user_ban']!=1){?>
<?php }?>
</ul>
</div>
</td>
</tr>
</table>
<hr class="dashed" />
<div class="description">
<?php echo nl2br($_smarty_tpl->getVariable('album')->value["album_description_".($_smarty_tpl->getVariable('ulang')->value)]);?>
<?php echo $_smarty_tpl->getVariable('navigator')->value;?>
</div>
<div class="photos-list-block">
<div class="photos <?php if ($_SESSION['user']['user_access']['photochapter']=='Y'||$_SESSION['user']['user_access']['admin']=='Y'){?><?php if ($_GET['album_id']>0){?> sortable<?php }?><?php }?>" val="<?php echo $_GET['album_id'];?> " order="<?php echo $_GET['order'];?> ">
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?>
<span class="photo" id="photo_<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_id'];?> "><a class="fancybox" rel="group" href="/data/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_big'];?> "><img src="/data/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_small'];?> " /></a></span>
<?php }} ?>
</div>
<?php if ($_GET['album_id']==17){?>
<div class="overflow">
<div class="photos">
<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['CurrentResults'];?> : <?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Leader'];?> -
<a href="/id<?php echo $_smarty_tpl->getVariable('leader')->value['user_id'];?> "><?php echo $_smarty_tpl->getVariable('leader')->value['user_name'];?> <?php echo $_smarty_tpl->getVariable('leader')->value['user_surname'];?> </a> (<?php echo $_smarty_tpl->getVariable('leader')->value['count'];?>
<?php echo AssumeNumber($_smarty_tpl->getVariable('leader')->value['count'],$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['votes']);?> )
<div><a href="/photochapter/17/results" class=""><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['ShowCurrentResults'];?> </a></div></div>
</div>
<?php }?>
</div>
</div>
<div><?php echo $_smarty_tpl->getVariable('navigator')->value;?> </div>
<?php $_template = new Smarty_Internal_Template('amviewer.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<input type="hidden" id="photos-sort-order" value="<?php echo $_smarty_tpl->getVariable('order')->value;?> "/>
|