{* * $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. *} {if !empty($theme.imageViews)} {assign var="image" value=$theme.imageViews[$theme.imageViewsIndex]} {/if}
{g->theme include="sidebar.tpl"} | {/if}
{g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true}
{/if}
{if !empty($theme.imageViews)}
{capture name="fallback"}
{g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1}
{/capture}
{if $image.viewInline}
{if count($theme.imageViews) > 1}
{if $theme.imageViewsIndex==1 && count($theme.imageViews)==2}
{else}
{assign var="imageViewsLink" value=$theme.imageViewsIndex+1}
{if $imageViewsLink==count($theme.imageViews)}
{assign var="imageViewsLink" value=$theme.imageViewsIndex-1}
{/if}
text text="width=%d,height=%d" arg1=$theme.sourceImage.width+20 arg2=$theme.sourceImage.height+20}, resizable=yes,scrollbars=yes,menubar=yes,status=yes,location=yes,titlebar=yes,toolbar=yes' );">
{/if}
{/if}
{if isset($theme.photoFrame)}
{g->container type="imageframe.ImageFrame" frame=$theme.photoFrame
width=$image.width height=$image.height}
{g->image id="%ID%" item=$theme.item image=$image
fallback=$smarty.capture.fallback class="%CLASS%"}
{/g->container}
{else}
{g->image item=$theme.item image=$image fallback=$smarty.capture.fallback}
{/if}
{if count($theme.imageViews) > 1}
{/if}
{else}
{$smarty.capture.fallback}
{/if}
{else}
{g->text text="There is nothing to view for this item."}
{/if}
{if $theme.pageUrl.view != 'core.ShowItem' && $theme.params.dynamicLinks == 'jumplink'}
{/if}
{* Download link for item in original format *}
{if !empty($theme.sourceImage) && $theme.sourceImage.mimeType != $theme.item.mimeType}
{/if}
{* Show any other photo blocks (comments, exif etc) *}
{foreach from=$theme.params.photoBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}
{if !empty($theme.navigator)}
{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,photo"}
|