{if !empty($thumbnails)} {footer_script} var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; {/footer_script} {if $derivative_params->type == "thumb"} {if get_device() == 'mobile'} {assign var=width value=520} {assign var=height value=360} {assign var=rwidth value=260} {assign var=rheight value=180} {else} {assign var=width value=260} {assign var=height value=180} {assign var=rwidth value=260} {assign var=rheight value=180} {/if} {else} {assign var=width value=$derivative_params->sizing->ideal_size[0]} {assign var=height value=$derivative_params->sizing->ideal_size[1]} {assign var=rwidth value=$width} {assign var=rheight value=$height} {/if} {define_derivative name='derivative_params' width=$width height=$height crop=true} {assign var=idx value=0+$START_ID} {foreach from=$thumbnails item=thumbnail} {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} {if !$derivative->is_cached()} {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} {/if} {include file="grid_classes.tpl" width=$width height=$height}
{/foreach} {/if}