{if get_device() != 'desktop'} {combine_script id='jquery.mobile-events' path='themes/bootstrap_darkroom/components/jquery-touch-events/src/jquery.mobile-events.min.js' require='jquery' load='footer'} {/if} {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} {include file='picture_nav.tpl'}
{include file='infos_errors.tpl'} {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} {if get_device() != 'desktop' } {footer_script require="jquery"}{strip} $('#theImage img').bind('swipeleft swiperight', function (event) { if (event.type == 'swipeleft') { $('#navigationButtons a#navNextPicture span').click(); } else if (event.type == 'swiperight') { $('#navigationButtons a#navPrevPicture span').click(); } else { return; } }); {/strip}{/footer_script} {/if} {if $theme_config_extra->bootstrap_theme == 'material'} {footer_script require='jquery'} $('#content-spacer').removeClass('container').wrap('
'); $('div[id^="theImage"]').removeClass('container').insertAfter('#content-spacer'); {/footer_script} {/if}
{$ELEMENT_CONTENT}
{if $theme_config_extra->picture_info == 'sidebar' && get_device() == 'desktop'} {include file='picture_info_sidebar.tpl'} {/if}
{if isset($COMMENT_IMG)}

{$COMMENT_IMG}

{/if}
{include file="http_scheme.tpl"} {if $theme_config->social_enabled}
{if $theme_config->social_twitter} {/if} {if $theme_config->social_facebook} {/if} {if $theme_config->social_google_plus} {/if}
{/if} {if !empty($thumbnails) && ($theme_config_extra->slick_enabled || $theme_config_extra->photoswipe)} {if $theme_config_extra->slick_enabled && sizeOf($thumbnails) > 1} {include file="_slick_js.tpl"} {/if} {if $theme_config_extra->photoswipe && !$theme_config_extra->slick_infinite} {include file="_photoswipe_js.tpl" selector="#thumbnailCarousel"} {/if} {if $theme_config_extra->photoswipe && $theme_config_extra->slick_infinite} {include file="_photoswipe_js.tpl" selector="#photoSwipeData"} {/if}
{if $theme_config_extra->slick_infinite}
{assign var=idx value=0} {foreach from=$thumbnails item=thumbnail} {assign var=derivative_medium value=$pwg->derivative($derivative_params_medium, $thumbnail.src_image)} {assign var=derivative_large value=$pwg->derivative($derivative_params_large, $thumbnail.src_image)} {assign var=derivative_xxlarge value=$pwg->derivative($derivative_params_xxlarge, $thumbnail.src_image)} photoswipe_metadata} data-exif-make="{$thumbnail.EXIF.make}" data-exif-model="{$thumbnail.EXIF.model}" data-exif-lens="{$thumbnail.EXIF.lens}" data-exif-iso="{$thumbnail.EXIF.iso}" data-exif-apperture="{$thumbnail.EXIF.apperture}" data-exif-shutter-speed="{$thumbnail.EXIF.shutter_speed}" data-exif-focal-length="{$thumbnail.EXIF.focal_length}" data-date-created="{$thumbnail.DATE_CREATED}"{/if}{/if}> {assign var=idx value=$idx+1} {/foreach}
{/if} {/if}
{if $theme_config_extra->picture_info === 'tabs' || (get_device() != 'desktop' && $theme_config_extra->picture_info != 'disabled')}
{if $display_info.author and isset($INFO_AUTHOR)} {/if} {if isset($CR_INFO_NAME) && !empty($CR_INFO_NAME)} {/if} {if $display_info.rating_score and isset($rate_summary)} {/if} {if isset($rating)} {/if} {if $display_info.created_on and isset($INFO_CREATION_DATE)} {/if} {if $display_info.posted_on} {/if} {if $display_info.visits} {/if} {if $display_info.dimensions and isset($INFO_DIMENSIONS)} {/if} {if $display_info.file} {/if} {if $display_info.filesize and isset($INFO_FILESIZE)} {/if} {if $display_info.tags and isset($related_tags)} {/if} {if $display_info.categories and isset($related_categories)} {/if} {if $display_info.privacy_level and isset($available_permission_levels)} {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {footer_script require='jquery'}{strip} function setPrivacyLevel(id, level, label) { (new PwgWS('{$ROOT_URL}')).callService( "pwg.images.setPrivacyLevel", { image_id:id, level:level}, { method: "POST", onFailure: function(num, text) { alert(num + " " + text); }, onSuccess: function(result) { jQuery('#dropdownPermissions').html(label + ' '); jQuery('.permission-li').removeClass('active'); jQuery('#permission-' + level).addClass('active'); } } ); } (SwitchBox=window.SwitchBox||[]).push("#privacyLevelLink", "#privacyLevelBox"); {/strip}{/footer_script} {/if}
{'Author'|@translate}
{$INFO_AUTHOR}
{'Copyright'|@translate}
{'Rating score'|@translate}
{if $rate_summary.count} {$rate_summary.score} ({$rate_summary.count|@translate_dec:'%d rate':'%d rates'}) {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' path='themes/default/js/scripts.js' load='async'} {combine_script id='rating' require='core.scripts' path='themes/bootstrapdefault/js/rating.js' load='async'} {footer_script require='jquery'} 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) {ldelim} if (rating.count == 1) {ldelim} e.innerHTML = "({'%d rate'|@translate|@escape:'javascript'})".replace( "%d", rating.count); {rdelim} else {ldelim} e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); {rdelim} {rdelim} $('#averageRate').find('span').each(function() {ldelim} $(this).addClass(rating.average > $(this).data('value') - 0.5 ? 'rateButtonStarFull' : 'rateButtonStarEmpty'); $(this).removeClass(rating.average > $(this).data('value') - 0.5 ? 'rateButtonStarEmpty' : 'rateButtonStarFull'); {rdelim}); {rdelim} {rdelim}); {/footer_script} {/strip}
{'Created on'|@translate}
{$INFO_CREATION_DATE}
{'Posted on'|@translate}
{$INFO_POSTED_DATE}
{'Visits'|@translate}
{$INFO_VISITS}
{'Dimensions'|@translate}
{$INFO_DIMENSIONS}
{'File'|@translate}
{$INFO_FILE}
{'Filesize'|@translate}
{$INFO_FILESIZE}
{'Tags'|@translate}
{foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}{$tag.name}{/foreach}
{'Albums'|@translate}
{foreach from=$related_categories item=cat name=cat_loop} {if !$smarty.foreach.cat_loop.first}
{/if}{$cat} {/foreach}
{'Who can see this photo?'|@translate}
{if isset($metadata)}
{foreach from=$metadata item=meta} {foreach from=$meta.lines item=value key=label} {/foreach} {/foreach}
{$label} {$value}
{/if} {/if} {if isset($comment_add) || $COMMENT_COUNT > 0}
{$shortname = $theme_config->comments_disqus_shortname} {if $theme_config->comments_type == 'disqus' and !empty($shortname)}
{footer_script}{strip} var disqus_shortname = '{/strip}{$shortname}{strip}'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); {/strip} {/footer_script} {else}
{if $COMMENT_COUNT > 0}
{include file='comment_list.tpl'}
{/if} {if isset($comment_add)}
{if $comment_add.SHOW_AUTHOR}
{/if} {if $comment_add.SHOW_EMAIL}
{/if} {if $comment_add.SHOW_WEBSITE}
{/if}
{/if}
{/if}
{/if}
{if !empty($navbar) }
{include file='navigation_bar.tpl' fragment='comments'|@get_extent:'navbar'}
{/if} {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if}