{* Example of resizeable *} {* {include file='include/autosize.inc.tpl'} *} {combine_script id='tinyscrollbar' load='header' require='jquery' path='themes/PwgCarbon_dft/js/tinyscrollbar.js'} {if isset($MENUBAR)}{$MENUBAR}{/if} {if isset($errors)}
{/if} {if isset($infos)}
{/if} {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
{$SECTION_TITLE} {$LEVEL_SEPARATOR}{$current.TITLE}
{$PHOTO}
{$ELEMENT_CONTENT} {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
{if isset($COMMENT_COUNT)}
{if $COMMENT_COUNT > 0}

{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}

{else}

{'There are no comments'|@translate}

{/if} {if isset($comment_add)}

{'Add a comment'|@translate}

{if $comment_add.SHOW_AUTHOR} {/if}
{/if} {if isset($comments)}
{include file='comment_list.tpl'}
{/if}
{/if}{*comments*} {footer_script}{literal} $(document).ready(function(){ $('#scrollbar1').tinyscrollbar( {sizethumb: 10 , size:100 }); }); {/literal}{/footer_script} {if isset($U_SLIDESHOW_STOP) }

[ {'stop the slideshow'|@translate} ]

{/if}
{if count($current.unique_derivatives)>1} {footer_script require='jquery'}{literal} function changeImgSrc(url,typeSave,typeMap) { var theImg = document.getElementById("theMainImage"); if (theImg) { theImg.removeAttribute("width");theImg.removeAttribute("height"); theImg.src = url; theImg.useMap = "#map"+typeMap; } jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } jQuery("#derivativeSwitchLink").click(function() { var elt = jQuery("#derivativeSwitchBox"); elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) .toggle(); }); jQuery("#derivativeSwitchBox").on("mouseleave click", function() { jQuery(this).hide(); }); {/literal}{/footer_script} {strip}  {'Photo sizes'|@translate}
{'Photo sizes'|@translate}
{foreach from=$current.unique_derivatives item=derivative key=derivative_type} get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ {$derivative->get_type()|@translate} ({$derivative->get_size_hr()})
{/foreach} {if isset($U_ORIGINAL)} {'Original'|@translate} {/if}
{/strip} {/if} {strip}{if isset($U_SLIDESHOW_START)} {'slideshow'|@translate} {/if}{/strip} {strip}{if isset($U_METADATA)} {'Show file metadata'|@translate} {/if}{/strip} {strip}{if isset($current.U_DOWNLOAD)} {'Download'|@translate} {/if}{/strip} {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} {strip}{if isset($favorite)} {'Favorites'|@translate} {/if}{/strip} {strip}{if isset($U_SET_AS_REPRESENTATIVE)} {'representative'|@translate} {/if}{/strip} {strip}{if isset($U_ADMIN)} {'Edit'|@translate} {/if}{/strip} {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} {footer_script} {literal}function addToCadie(aElement, rootUrl, id) { if (aElement.disabled) return; aElement.disabled=true; var y = new PwgWS(rootUrl); y.callService( "pwg.caddie.add", {image_id: id} , { onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, onSuccess: function(result) { aElement.disabled = false; } } ); }{/literal} {/footer_script} {'Caddie'|@translate} {/if}{/strip}{*caddie management END*}
{**} {if $display_info.author} {/if} {if $display_info.created_on} {/if} {if $display_info.posted_on} {/if} {if $display_info.dimensions} {/if} {if $display_info.file} {/if} {if $display_info.filesize} {/if} {if $display_info.tags} {/if} {if $display_info.categories} {/if} {if $display_info.visits} {/if} {if $display_info.rating_score and isset($rate_summary)} {/if} {if isset($rating)} {/if} {if $display_info.privacy_level and isset($available_permission_levels) } {/if}
{'Author'|@translate} {if isset($INFO_AUTHOR)}{$INFO_AUTHOR}{else}{'N/A'|@translate}{/if}{'Created on'|@translate} {if isset($INFO_CREATION_DATE)}{$INFO_CREATION_DATE}{else}{'N/A'|@translate}{/if}
{'Posted on'|@translate} {$INFO_POSTED_DATE}{'Dimensions'|@translate} {if isset($INFO_DIMENSIONS)}{$INFO_DIMENSIONS}{else}{'N/A'|@translate}{/if}
{'File'|@translate} {$INFO_FILE}{'Filesize'|@translate} {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}
{'Tags'|@translate} {if isset($related_tags)} {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if} {$tag.name}{/foreach} {/if} {'Categories'|@translate} {if isset($related_categories)}
    {foreach from=$related_categories item=cat}
  • {$cat}
  • {/foreach}
{/if}
{'Visits'|@translate} {$INFO_VISITS}{'Rating score'|@translate} {if $rate_summary.count} {$rate_summary.score}({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)}) {else} {'no rate'|@translate} {/if}
{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}
  {foreach from=$rating.marks item=mark name=rate_loop} {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} {else} {/if} {/foreach} {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} {footer_script} var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, onSuccess : function(rating) {ldelim} var e = document.getElementById("updateRate"); if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}"; e = document.getElementById("ratingScore"); if (e) e.innerHTML = rating.score; e = document.getElementById("ratingCount"); if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); {rdelim}{rdelim} ); {/footer_script} {/strip}
{'Who can see this photo?'|@translate}
{if isset($metadata)} {foreach from=$metadata item=meta} {foreach from=$meta.lines item=value key=label} {/foreach} {/foreach}
{$meta.TITLE}
{$label} {$value}
{/if}
infos {footer_script}{literal} $(document).ready(function(){ $(".trigger").click(function(){ $(".panel").toggle("fast"); $(this).toggleClass("active"); return false; }); }); {/literal}{/footer_script}
{*image*} {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}