{* * $Revision: 1.12 $ * 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"}
{else}
{assign var=frameType value="itemFrame"}
{/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}
|
{if !empty($child.title)}
{if $child.canContainChildren} {g->text text="Album: %s" arg1=$child.title|markup} {else} {$child.title|markup} {/if} {/if} {if !empty($child.summary)}{$child.summary|entitytruncate:256|markup} {/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"} {g->block type="core.ItemLinks" item=$child links=$child.itemLinks} |
{if $theme.params.showSubalbums}
{if !empty($theme.tree[$child.id])}
{g->text text="Subalbums:"}
|
{/if}
{/foreach}
{* flush the rest of the row with empty cells *}
{section name="flush" start=$childrenInColumnCount loop=$theme.params.columns}
{/section} |