{* * $Revision: 1.14 $ * 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. *} {if !empty($theme.params.sidebarBlocks)} {/if}
{g->theme include="sidebar.tpl"}
{if !empty($theme.item.title)}

{$theme.item.title|markup}

{/if} {if !empty($theme.item.description)}

{$theme.item.description|markup}

{/if}
{g->block type="core.ItemInfo" item=$theme.item showDate=true showSize=true showOwner=true class="giInfo"}
{if !empty($theme.navigator)}
{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)}
{g->text text="Add a photo!"} {/if}

{else} {assign var="childrenInColumnCount" value=0}
{foreach from=$theme.children item=child} {* Move to a new row *} {if ($childrenInColumnCount == $theme.params.columns)} {assign var="childrenInColumnCount" value=0} {/if} {assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"} {/foreach} {* flush the rest of the row with empty cells *} {section name="flush" start=$childrenInColumnCount loop=$theme.params.columns} {/section}
{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}
{g->block type="core.ItemLinks" item=$child links=$child.itemLinks} {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|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"}
 
{/if} {if !empty($theme.navigator)}
{g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true}
{/if} {if !empty($theme.jumpRange)}
{g->block type="core.Pager"}
{/if} {g->block type="core.GuestPreview" class="gbBlock"} {* Our emergency edit link, if the user all blocks containing edit links *} {g->block type="core.EmergencyEditItemLink" class="gbBlock" checkSidebarBlocks=true checkAlbumBlocks=true} {* Show any other album blocks (comments, etc) *} {foreach from=$theme.params.albumBlocks item=block} {g->block type=$block.0 params=$block.1} {/foreach}