{combine_script id='photo.autosize' path="themes/`$themeconf.id`/js/photo.autosize.min.js" load='footer' require='jquery'} {footer_script}RVAS = { derivatives: [ {foreach from=$current.unique_derivatives item=derivative name=derivative_loop}{assign var='size' value=$derivative->get_size()} {ldelim}w:{$size[0]},h:{$size[1]},url:'{$derivative->get_url()|@escape:'javascript'}',type:'{$derivative->get_type()}'}{if !$smarty.foreach.derivative_loop.last},{/if} {/foreach}], cp: '{$COOKIE_PATH|@escape:'javascript'}' }{/footer_script} {if $RVAS_PENDING} {footer_script}rvas_choose();{/footer_script} {else} {footer_script}rvas_choose(1);{/footer_script} {/if} get_size_htm()}{/if}{/if} alt="{$ALT_IMG}" id="theMainImage"{if !isset($rvas_display_size)} usemap="#map{$current.selected_derivative->get_type()}"{/if} title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE_ESC} - {$ALT_IMG}{/if}" itemprop=contentURL> {foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip} {assign var='size' value=$derivative->get_size()} {if isset($previous)} {$previous.TITLE_ESC} {/if} {'Thumbnails'|@translate} {if isset($next)} {$next.TITLE_ESC} {/if} {/strip}{/foreach}