{* * $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->block type="search.SearchBlock"}
{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=$theme.params.showAlbumOwner class="giInfo"} {if !empty($theme.userLinks)} {g->block type="core.ItemLinks" useDropdown=false links=$theme.userLinks class="floatrix-userLinks"} {/if}
{if !empty($theme.navigator)}
{if !empty($theme.jumpRange)}
{g->block type="core.Pager"}
{/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)}
{g->text text="Add a photo!"} {/if}

{else}
{foreach from=$theme.children item=child}
{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}{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}{/capture} {/if} {strip} {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} {/strip} {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}
{/if} {* Show any other album blocks (comments, etc) *}
{foreach from=$theme.params.albumBlocks item=block} {g->block type=$block.0 params=$block.1} {/foreach}
{if !empty($theme.navigator)}
{if !empty($theme.jumpRange)}
{g->block type="core.Pager"}
{/if} {g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true}
{/if} {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="sidebar,album"}