ConstruccionesCNJ_Web/Source/gallery2/themes/CNJ/templates/album_armarios.tpl
2007-10-31 12:30:19 +00:00

137 lines
4.0 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>
{*<h2>{$theme.item.title|markup}</h2>*}
{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 gallery-album-armarios">
<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">
<a href="{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}">
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{g->image item=$child image=$image class="gallery-photo"
fallback=$smarty.capture.fallback}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>
<div class="clear"></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}
{* Description *}
{if !empty($theme.item.description)}
<hr />
<p>{$theme.item.description|markup}</p>
{/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 *}
<div class="gbSystemLinks">
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
</div>
{* 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}