diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-02-08 16:24:35 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-02-08 16:24:35 +0000 |
| commit | 897b4a94d118a2aaf388f59eb77dac36298ca873 (patch) | |
| tree | 93fae53b8d938f1877cd6087c73318a3cb68cc07 /templates | |
| parent | b5c28c6814b0d6ffb5cf225e9bd47891e06cfe1b (diff) | |
| download | fisheye-897b4a94d118a2aaf388f59eb77dac36298ca873.tar.gz fisheye-897b4a94d118a2aaf388f59eb77dac36298ca873.tar.bz2 fisheye-897b4a94d118a2aaf388f59eb77dac36298ca873.zip | |
add fancy zoom js for viewing images. if this turns out to be a bad choice of js we can easily remove it again. insanely easy to implement.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/view_image.tpl | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/templates/view_image.tpl b/templates/view_image.tpl index b22fae2..b786e91 100644 --- a/templates/view_image.tpl +++ b/templates/view_image.tpl @@ -22,21 +22,36 @@ <div class="body"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$gContent->mInfo} {box class="box image"} - <img src="{$gContent->getThumbnailUri()}{$refresh}" alt="{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}" title="{$gContent->mInfo.data|default:$gContent->mInfo.filename|escape}" /> + {if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )} + {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )} + <a href="{$gContent->mInfo.image_file.source_url|escape}"> + {else} + <a href="{$gContent->mInfo.image_file.thumbnail_url.large}"> + {/if} + {/if} - {if $gBitSystem->isFeatureActive('fisheye_image_list_description') and $gContent->mInfo.data ne ''} - <p class="description">{$gContent->mInfo.data|escape}</p> + <img src="{$gContent->getThumbnailUri()}{$refresh}" alt="{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}" title="{$gContent->mInfo.data|default:$gContent->mInfo.filename|escape}" /> + + {if $gBitSystem->isFeatureActive('fisheye_image_list_description') and $gContent->mInfo.data ne ''} + <p class="description">{$gContent->mInfo.data|escape}</p> + {/if} + + {if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )} + </a> {/if} {/box} {if !$liberty_preview} <div class="pagination"> - {tr}View other sizes{/tr}<br /> - {foreach name=size key=size from=$gContent->mInfo.image_file.thumbnail_url item=url} - {if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{tr}{$size}{/tr}{if $url != $gContent->mInfo.display_url}</a>{/if} - {if !$smarty.foreach.size.last} • {/if} - {/foreach} - {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference('link_original_images')} + {if !$gBitSystem->isFeatureActive( 'site_fancy_zoom' )} + {tr}View other sizes{/tr}<br /> + {foreach name=size key=size from=$gContent->mInfo.image_file.thumbnail_url item=url} + {if $url != $gContent->mInfo.display_url}<a href="{$gContent->getDisplayUrl(0,$size)|escape}">{/if}{tr}{$size}{/tr}{if $url != $gContent->mInfo.display_url}</a>{/if} + {if !$smarty.foreach.size.last} • {/if} + {/foreach} + {/if} + + {if ( $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )) && !$gBitSystem->isFeatureActive( 'site_fancy_zoom' )} • <a href="{$gContent->mInfo.image_file.source_url|escape}">{tr}Original{/tr}</a> {if $gContent->mInfo.width && $gContent->mInfo.height} |
