{* * $Revision: 15690 $ * 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. *}
| {g->theme include="sidebar.tpl"} | {/if}
{g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true}
{/if}
{if !count($theme.children)}
{g->text text="This album is empty."}
{if isset($theme.permissions.core_addDataItem)}
|
|
{if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem')}
{assign var=frameType value="albumFrame"}
{capture assign=linkUrl}{g->url arg1="view=core.ShowItem"
arg2="itemId=`$child.id`"}{/capture}
{else}
{assign var=frameType value="itemFrame"}
{capture assign=linkUrl}{strip}
{if $theme.params.dynamicLinks == 'jump'}
{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}
{else}
{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}
{/if}
{/strip}{/capture}
{/if}
{if isset($theme.params.$frameType) && isset($child.thumbnail)}
{g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
width=$child.thumbnail.width height=$child.thumbnail.height}
{g->image id="%ID%" item=$child image=$child.thumbnail
class="%CLASS% giThumbnail"}
{/g->container}
{elseif isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail class="giThumbnail"}
{else}
{g->text text="no thumbnail"}
{/if}
{g->block type="core.ItemLinks" item=$child links=$child.itemLinks}
{if !empty($child.title)}
{if $child.canContainChildren && (!isset($theme.params.albumFrame) || $theme.params.albumFrame == $theme.params.itemFrame)} {* Add prefix for albums unless imageframe will differentiate *} {g->text text="Album: %s" arg1=$child.title|markup} {else} {$child.title|markup} {/if} {/if} {if !empty($child.summary)}{$child.summary|markup|entitytruncate:256} {/if} {if ($child.canContainChildren && $theme.params.showAlbumOwner) || (!$child.canContainChildren && $theme.params.showImageOwner)} {assign var="showOwner" value=true} {else} {assign var="showOwner" value=false} {/if} {g->block type="core.ItemInfo" item=$child showDate=true showOwner=$showOwner showSize=true showViewCount=true showSummaries=true class="giInfo"} |
{/foreach}
{* flush the rest of the row with empty cells *}
{section name="flush" start=$childrenInColumnCount loop=$theme.params.columns}
{/section} |