additional_plugins/serendipity_event_usergallery/plugin_usergallery_imagedisplay.tpl

92 lines
4.9 KiB
Smarty

<script type="text/javascript">
<!--
function popImage(file_name,file_title,file_width,file_height) {ldelim}
if (parseInt(navigator.appVersion.charAt(0))>=4){ldelim}
var optBrowser='scrollbars=yes,width='+file_width+',height='+file_height+',toolbar=no,menubar=no,location=no,resize=1,resizable=0';
var imgWin=window.open('about:blank','',optBrowser);
with (imgWin.document){ldelim}
writeln('<html><head><title>Loading...</title>');
writeln('<style>body{ldelim}margin:0;padding:0;text-align:center;{rdelim} img{ldelim}border:0px;{rdelim}</style>');
writeln('</head>');
writeln('<sc'+'ript>');
writeln('function doTitle(){ldelim}document.title="'+file_title+'";{rdelim}');
writeln('</sc'+'ript>');
writeln('<body onload="self.focus();doTitle()">');
writeln('<a href="javascript:window.close()"><img src="'+file_name+'" width="'+file_width+'" height="'+file_height+'" alt=""/></a>');
writeln('</body></html>');
close();
{rdelim}
{rdelim}
{rdelim}
//-->
</script>
<div class="serendipity_Entry_Date serendipity_event_usergallery_image_display">
<div class="serendipity_entry">
<h3 class="serendipity_date">{$plugin_usergallery_title}</h3>
<h4 class="serendipity_title">{$plugin_usergallery_limit_directory}</h4>
<div class="serendipity_gallery_navigation">
<!-- navigation -->
<a href="{$plugin_usergallery_httppath}">{$plugin_usergallery_title}</a>{foreach name="gallery" from=$plugin_usergallery_gallery_breadcrumb item="gallery"} &raquo; <a href="{$plugin_usergallery_httppath_extend}gallery={$gallery.path}">{$gallery.name}</a>{/foreach}
<div style="float: left;">
{if $plugin_usergallery_previousid != -1}
<a href="{$plugin_usergallery_httppath_extend}serendipity[image]={$plugin_usergallery_previousid}">&laquo; {$CONST.PREVIOUS}</a>
{/if}
</div>
<div style="float: right;">
{if $plugin_usergallery_nextid != -1}
<a href="{$plugin_usergallery_httppath_extend}serendipity[image]={$plugin_usergallery_nextid}">{$CONST.NEXT} &raquo;</a>
{/if}
</div>
<!-- end navigation -->
</div>
<div class="serendipity_gallery_entry">
<h4 class="serendipity_gallery_title">{$plugin_usergallery_file.title}</h4>
{if $plugin_usergallery_file.is_image}
<!-- Popup -->
<a href="javascript:popImage('{$plugin_usergallery_file.link}','{$plugin_usergallery_file.name}','{$plugin_usergallery_file.dimensions_width}','{$plugin_usergallery_file.dimensions_height}')"><img class="gallery_thumb" width="{$plugin_usergallery_file.alt_width}px" height="{$plugin_usergallery_file.alt_height}px" src="{$plugin_usergallery_file.link}" alt="" /></a>
{else}
<!-- download link -->
<a href="{$plugin_usergallery_file.link}" alt="{$plugin_usergallery_file.name}" />{$CONST.USERGALLERY_DOWNLOAD_HERE}</a>
{/if}
<!-- file information -->
<div class="serendipity_gallery_info">
<div>{$CONST.USERGALLERY_SEE_FULLSIZED}.</div>
{if isset($plugin_usergallery_file.entries) AND is_array($plugin_usergallery_file.entries) AND count($plugin_usergallery_file.entries) > 0}
<h5>{$CONST.USERGALLERY_LINKED_ENTRIES}</h5>
<ol>
{foreach from=$plugin_usergallery_file.entries item="link"}
<li><a href="{$link.href}">{$link.title}</a></li>
{/foreach}
</ol>
{/if}
{if isset($plugin_usergallery_file.staticpage_results) AND is_array($plugin_usergallery_file.staticpage_results) AND count($plugin_usergallery_file.staticpage_results) > 0}
<h5>{$CONST.USERGALLERY_LINKED_STATICPAGES}</h5>
<ol>
{foreach from=$plugin_usergallery_file.staticpage_results item="result"}
<li><a href="{$result.href}">{$result.title}</a></li>
{/foreach}
</ol>
{/if}
<dl>
<dt>{$plugin_usergallery_file.name}.{$plugin_usergallery_file.extension}</dt>
<dd>{$const.filesize}: {$plugin_usergallery_file.size_txt} kb</dd>
{if is_array($plugin_usergallery_extended_info)}
{foreach name="info" from=$plugin_usergallery_extended_info item="entry"}
<dd>{$entry.name}: {$entry.value}</dd>
{/foreach}
{/if}
{if $plugin_usergallery_file.is_image}
{if $plugin_usergallery_xtra_info}
<dd>{$plugin_usergallery_xtra_info}</dd>
{/if}
{/if}
</dl>
</div>
</div>
</div>
</div>