diff options
Diffstat (limited to 'templates/view_image.tpl')
| -rw-r--r-- | templates/view_image.tpl | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/templates/view_image.tpl b/templates/view_image.tpl index b786e91..bba064f 100644 --- a/templates/view_image.tpl +++ b/templates/view_image.tpl @@ -16,7 +16,7 @@ {formfeedback hash=$feedback} <div class="header"> - <h1>{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}</h1> + <h1>{$gContent->getTitle()|default:$gContent->mInfo.filename|escape}</h1> </div> <div class="body"> @@ -24,44 +24,25 @@ {box class="box image"} {if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )} {if $gContent->hasEditPermission() || $gGallery && $gGallery->getPreference( 'link_original_images' )} - <a href="{$gContent->mInfo.image_file.source_url|escape}"> + <a href="{$gContent->mInfo.source_url|escape}"> {else} - <a href="{$gContent->mInfo.image_file.thumbnail_url.large}"> + <a href="{$gContent->mInfo.thumbnail_url.large}"> {/if} {/if} - <img src="{$gContent->getThumbnailUri()}{$refresh}" alt="{$gContent->getTitle()|default:$gContent->mInfo.image_file.filename|escape}" title="{$gContent->mInfo.data|default:$gContent->mInfo.filename|escape}" /> + {include file=$gLibertySystem->getMimeTemplate('view',$gContent->mInfo.attachment_plugin_guid) attachment=$gContent->mInfo} {if $gBitSystem->isFeatureActive('fisheye_image_list_description') and $gContent->mInfo.data ne ''} - <p class="description">{$gContent->mInfo.data|escape}</p> + <p class="description">{$gContent->mInfo.parsed_data}</p> {/if} {if $gBitSystem->isFeatureActive( 'site_fancy_zoom' )} </a> {/if} - {/box} - - {if !$liberty_preview} - <div class="pagination"> - {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} + </div><!-- end .body --> - {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} - {$gContent->mInfo.width}x{$gContent->mInfo.height} - {/if} - {/if} - </div> + {/box} - {attachhelp hash=$gContent->mInfo.image_file} - {/if} </div> <!-- end .body --> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='view' serviceHash=$gContent->mInfo} |
