ConstruccionesCNJ_Web/Source/gallery2/themes/CNJ/templates/album.tpl

150 lines
4.4 KiB
Smarty

{*
* $Revision: 15342 $
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
* version. Gallery will look for that file first and use it if it exists.
*}
{*<div class="breadcrumb">*}
{*{g->block type="core.BreadCrumb" skipRoot=true separator="/"}*}
{*</div>*}
{literal}
<script src='/themes/CNJ/scripts/prototype.js' type="text/javascript"></script>
<script src='/themes/CNJ/scripts/scriptaculous.js?load=effects' type="text/javascript"></script>
<script src='/themes/CNJ/scripts/lightbox.js' type="text/javascript"></script>
{/literal}
{assign var="firstItem" value=true}
{if !count($theme.children)}
<div class="gallery-empty">
<p><strong>{g->text text="This album is empty."}</strong></p>
{if isset($theme.permissions.core_addDataItem)}
<p><a href="{g->url arg1="view=core.ItemAdmin" arg2="subView=core.ItemAdd"
arg3="itemId=`$theme.item.id`"}">{g->text text="Add a photo!"}</a></p>
{/if}
</div>
{else} {* !count($theme.children) *}
{foreach from=$theme.children item=child}
{if !$child.canContainChildren}
{if $firstItem}
{assign var="firstItem" value=false}
<div class="cabecera-album">
<div class="foto">
{if !($user.isRegisteredUser)}
{* alternate link code for Lightbox JS *}
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`" forceSessionId=true}"
title="{$child.summary|markup}<br/>{$child.description|markup}"
pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
rel="lightbox[photos]" >
{*end alternate link code for Lightbox JS *}
{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{/if}
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>
<div class="texto">
<h3>{$child.keywords|markup}</h3>
<h2>{$theme.item.title|markup}</h2>
{* Description *}
{if !empty($theme.item.description)}
<p>{$theme.item.description|markup}</p>
{/if}
</div>
<div class="clear"></div>
</div>
<div class="gallery-albums">
<div class="gallery-album">
{else} {* firstItem *}
<div class="gallery-thumb">
{if !($user.isRegisteredUser)}
{* alternate link code for Lightbox JS *}
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`" forceSessionId=true}"
title="{$child.summary|markup}<br/>{$child.description|markup}"
pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
rel="lightbox[photos]" >
{* end alternate link code for Lightbox JS *}
{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{/if}
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
<!--<p>{$child.keywords}</p>-->
<!--<p>{if isset($child.summary)}{$child.summary|entitytruncate:256|markup}{/if}</p>-->
</div>
{/if} {* firstItem *}
{/if} {* $child.canContainChildren *}
{/foreach}
{if !$firstItem}
</div> {* class="gallery-album" *}
</div> {* class="gallery-albums" *}
<div class="clear"></div>
{/if}
{/if}
{* Navigator *}
{if $theme.totalPages > 1}
{g->block type="core.Navigator" navigator=$theme.navigator prefix="&laquo; " suffix=" &raquo;"
currentPage=$theme.currentPage totalPages=$theme.totalPages}
{/if}
{if $user.isRegisteredUser}
{* Show any other album blocks (comments, etc) *}
{foreach from=$theme.params.albumBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}
{* System Links only on the root page *}
{*if empty($theme.parents)*}
<div class="gbSystemLinks">
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
</div>
{*/if*}
{* Guest preview mode *}
{g->block type="core.GuestPreview" class="gbBlock"}
{* Our emergency edit link, if the user removes all blocks containing edit links *}
{g->block type="core.EmergencyEditItemLink" class="gbBlock" checkBlocks="album"}
{/if}