This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
AbetoArmarios_Web/Source/www/gallery2/themes/abeto/templates/album.tpl

154 lines
4.7 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='/gallery2/themes/abeto/scripts/prototype.js' type="text/javascript"></script>
<script src='/gallery2/themes/abeto/scripts/scriptaculous.js?load=effects' type="text/javascript"></script>
<script src='/gallery2/themes/abeto/scripts/lightbox.js' type="text/javascript"></script>
{/literal}
{*<h2>{$theme.item.title|markup}</h2>*}
{* Description *}
{if !empty($theme.item.description)}
<p>{$theme.item.description|markup}</p>
{/if}
{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}
{assign var="firstAlbum" value=true}
{assign var="currentYear" value=""}
{foreach from=$theme.children item=child}
{if $child.canContainChildren}
{if $firstAlbum}
<div class="gallery-albums">
{assign var="firstAlbum" value=false}
{/if}
{* Year separator *}
{if $theme.params.groupByYear}
{capture name=year}{g->date format="%Y" timestamp=$child.originationTimestamp}{/capture}
{if $smarty.capture.year != $currentYear}
<h3 style="clear: both;">{$smarty.capture.year}</h3>
{assign var="currentYear" value=$smarty.capture.year}
{/if}
{/if}
<div class="gallery-album">
<div class="gallery-thumb">
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>
<h4><a href="{g->url arg1="view=core.ShowItem"
arg2="itemId=`$child.id`"}">{$child.title|default:$child.pathComponent|markup}</a></h4>
<div class="meta">
{*if ($child.descendentCount > 0)*}
{*g->text text="%d Images" arg1=$child.descendentCount*}
{*/if*}
{if isset($child.itemSummaries.newitems)}
<span class="summary-newitems summary">{$child.itemSummaries.newitems}</span>
{/if}
</div>
<p>{if isset($child.summary)}{$child.summary|entitytruncate:256|markup}{/if}</p>
</div>
{/if}
{/foreach}
{if !$firstAlbum}
<div class="clear"></div>
</div>
{/if}
{assign var="firstItem" value=true}
{foreach from=$theme.children item=child}
{if !$child.canContainChildren}
{if $firstItem}
<div class="gallery-items">
{assign var="firstItem" value=false}
{/if}
<div class="gallery-thumb">
{* alternate link code for Lightbox JS *}
{if $child.canContainChildren}
<a title="{$child.summary}" href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" >
{else}
<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]" >
{/if}
{*end alternate link code for Lightbox JS *}
{*<a href="{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}">*}
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>
{/if}
{/foreach}
{if !$firstItem}
<div class="clear"></div>
</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}