{$wa->css()} {wa_js file="js/photos-jquery.min.js"} {$wa_url}wa-content/js/jquery-wa/wa.core.js {$wa_url}wa-content/js/jquery-wa/wa.dialog.js {$wa_url}wa-content/js/jquery-plugins/jquery.history.js {$wa_url}wa-content/js/jquery-plugins/jquery.json.js {$wa_url}wa-content/js/jquery-plugins/jquery.store.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.core.min.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.widget.min.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.mouse.min.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.draggable.min.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.droppable.min.js {$wa_url}wa-content/js/jquery-ui/jquery.ui.sortable.min.js {$wa_url}wa-content/js/jquery-plugins/jquery.retina.min.js {$wa_url}wa-content/js/jquery-plugins/jquery-tagsinput/jquery.tagsinput.min.js {$wa_url}wa-content/js/jquery-plugins/jquery-autocomplete/jquery.autocomplete.min.js {$wa_app_static_url}js/sidebar.js {$wa_app_static_url}js/dragndrop.js {$wa_app_static_url}js/tmpl.min.js {$wa_app_static_url}js/inline.editable.widget.js {$wa_app_static_url}js/active.menu.js {$wa_app_static_url}js/rate.widget.js {$wa_app_static_url}js/common.js {$wa_app_static_url}js/photo.stream.slider.js {$wa_app_static_url}js/photos.js {$wa_app_static_url}js/list.menu.js {$wa_app_static_url}js/photo.menu.js {$wa_app_static_url}js/loupe.widget.js {$wa_app_static_url}js/jquery-fieldselection.min.js {/wa_js} {$wa->js(false)} {* @event backend_assets.%plugin_id% *} {foreach $backend_assets as $item} {$item} {/foreach} {capture name="template-photo"}{literal} {% var p = o.photo, stack = o.stack, albums = o.albums, frontend_link_template = o.frontend_link_template, hooks = o.hooks; %}

{%#$_('← Back')%} {%#p.name%} {%#$.photos.getRatingHtml(p.rate, 16, true)%} {% if (hooks.backend_photo) { %} {% for (var plugin in hooks.backend_photo) { %} {%# hooks.backend_photo[plugin].after_rate %} {% } %} {% } %}

{% include('template-photo-albums', { albums: albums }); %}
{% if(p.edit_rights) { %} {literal} {% } %}

{%#p.description%} [`edit`]
{% if (hooks.backend_photo) { %} {% for (var plugin in hooks.backend_photo) { %} {%# hooks.backend_photo[plugin].bottom %} {% } %} {% } %}
{/literal}{/capture} {capture name="template-photo-content-control"}{literal} {% var photo = o.photo, frontend_link_template = o.frontend_link_template; %}
  • {% if (o.frontend_link_template) { %} {% if (photo.status <= 0 && photo.hash) { %} [`Private link`]: {%#frontend_link_template.replace('%url%', photo.private_url)%} {% } else if (photo.status > 0) { %} [`Public link`]: {%#frontend_link_template.replace('%url%/', '%url%').replace('%url%', photo.url+'/')%} edit {% } %} {% } %}
  • {/literal}{/capture} {capture name="template-photo-stack"}{literal} {% for (var i = 0, s = o.stack[0], n = o.stack.length; i < n; s = o.stack[++i]) { %}
  • {% } %} {/literal}{/capture} {capture name="template-photo-albums"}{literal} {% if (o.albums.length) { %} [`Albums`]: {% for (var i = 0, a = o.albums[0], n = o.albums.length; i < n; a = o.albums[++i]) { %}{% if (i > 0) { %}, {% } %}{%=a.name%}{% } %} {% } %} {/literal}{/capture} {capture name="template-p-block"}
    {/capture} {capture name="template-photo-toolbar"} {literal} {% var photo = o.photo, author = o.author, exif = o.exif; %} {/literal}
    {foreach $backend_photo_toolbar as $plugin_id => $item} {if !empty($item.top)}{$item.top}{/if} {/foreach}
    [`Share`]
    [`Edit`]
    [`Organize`]
    {foreach $backend_photo_toolbar as $plugin_id => $item} {if !empty($item.bottom)}{$item.bottom}{/if} {/foreach} {literal}
    [`Tags`]
    [`Separate tags with comma (,)`]
    {% if (author && photo) { %} {% include('template-photo-author', { author: author, photo: photo }); %} {% } %}
    {% if (exif) { %} {% include('template-photo-exif', { exif: exif}); %} {% } %}
    {% if (photo) { %} {% include('template-photo-original', { photo: photo}); %} {% } %}
    {/literal} {/capture} {capture name="template-photo-stream"}{literal} {/literal}{/capture} {capture name="template-photo-stream-list"}{literal} {% var wa_static_url = {/literal}'{$wa_app_static_url}'{literal}, photos = o.photos, current_photo_id = o.current_photo ? o.current_photo.id : null, hash = o.hash; %} {% if (current_photo_id) { %} {% for (var i = 0, n = photos.length, photo = photos[i]; i < n; photo = photos[++i]) { %} {% if (!photo) { photos[i] = photo = { id: null }; } %} {% if (current_photo_id == photo.id) { %} {% if (typeof photos[i-1] == 'object') { if (!photos[i-1]) { photos[i-1] = { id: null }; } photos[i-1].visible = true; } photo.visible = true; if (typeof photos[i+1] == 'object') { if (!photos[i+1]) { photos[i+1] = { id: null }; } photos[i+1].visible = true; } %} {% } %} {% } %} {% } %} {% for (var i = 0, n = photos.length, photo = photos[i]; i < n; photo = photos[++i]) { %} {% if (photo && photo.id) { %}
  • {% } else { %}
  • {% } %} {% } %} {/literal}{/capture} {capture name="template-photo-author"}{literal} {% if (o.author.id) { %}
    {%#o.author.name%}
    [`uploaded on`] {%#o.photo.upload_datetime_formatted %}
    {% } else { %}

    [`uploaded on`] {%#o.photo.upload_datetime_formatted %}

    {% } %} {/literal} {/capture} {capture name="template-photo-original"} {literal} {% var photo = o.photo; %} {% if (photo.edit_rights) { %}[`Full size`]: {%# photo.name + '.' + photo.ext %}
    {% } %} [`Dimensions`]: {%# photo.width %}x{%# photo.height %}
    [`Size`]: {%# $.wa.util.formatFileSize(photo.size) %}
    {% if (photo.original_exists && photo.edit_rights ) { %}
    {% } %} {/literal}{/capture} {capture name="template-photo-exif"}{literal} {% var exif = o.exif; %} {% if (exif.Model) { %} [`Camera`]: {%# exif.Model %}
    {% } %} {% if (exif.ISOSpeedRatings) { %} [`ISO`]: {%# exif.ISOSpeedRatings %}
    {% } %} {% if (exif.ExposureTime) { %} [`Shutter`]: {%# exif.ExposureTime %}
    {% } %} {% if (exif.FNumber) { %} [`Aperture`]: {%# exif.FNumber %}
    {% } %} {% if (exif.FocalLength) { %} [`Focal length`]: {%# exif.FocalLength %}
    {% } %} {% if (exif.DateTimeOriginal) { %} [`Taken`]: {%# exif.DateTimeOriginal %}
    {% } %} {/literal}{/capture} {* js templates block*} {foreach $smarty.capture as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach}
    {$wa->header()}
    {include "templates/layouts/Sidebar.html"}
    {if isset($content)}{$content}{/if}
    {if $rights.upload}{$upload_dialog}{/if}

    [`Assign tags`] (N)

    {if $popular_tags} [`Popular tags`]: {foreach $popular_tags as $tag} {$tag.name|escape} {/foreach} {/if}
    [`or`] [`cancel`]

    [`Private photos selected`]

    [`Image URLs of private photos are temporary. Permanent linking (embedding) is not recommended.`]

    [`or`] [`cancel`]