{* * $Revision: 1.8 $ * 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->text text="This album is empty."}
{if isset($theme.permissions.core_addDataItem)} {/if}{$child.description}
{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"} {* !!!! Change Starts Here *} {* -if isset($theme.guestPreviewMode) && $user.isAdmin- *} {if isset($child.linkId) && $theme.guestPreviewMode == 0} {capture assign=linkId} {g->url params=$theme.pageUrl arg1="itemId=`$child.linkId`"} {/capture} {capture assign=linkUrl} {$linkId|replace:"`$child.pathComponent`.html":""} {/capture} {else} {/if} {*/if*} {/if} {if ($user.isRegisteredUser)} {/if} {if isset($child.thumbnail)} {g->image item=$child image=$child.thumbnail class='gallery-photo'} {else} {g->text text="no thumbnail"} {/if} {if ($user.isRegisteredUser)} {/if}{$theme.item.description|markup}
{/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} {/if} {* 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"}