{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} {combine_script id='ajaxloader' path='themes/stripped_black_bloc/js/ajaxloader.js' require='jquery.ajaxmanager' load='footer'} {define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false} {define_derivative name='derivative_stripped_black_bloc_big' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=9999 crop=false} {define_derivative name='derivative_stripped_black_bloc_wide' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width+$stripped_black_bloc.column_width height=9999 crop=false} {define_derivative name='derivative_stripped_black_bloc_vert' width=$stripped_black_bloc.thumbnail_width height=$stripped_black_bloc.thumbnail_width crop=false} {define_derivative name='derivative_stripped_black_bloc_big_vert' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width crop=false} {if !empty($thumbnails)} {foreach from=$thumbnails item=thumbnail} {assign var=triplehigh value=$thumbnail.height+$thumbnail.height+$thumbnail.height} {if ($thumbnail.width > $triplehigh) } {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $thumbnail.src_image)} {assign var='size' value=$derivative->get_size()}
is_cached()}data-src="{$derivative->get_url()}"{/if}> {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if} {if $SHOW_THUMBNAIL_CAPTION }
{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
{/if}
{else} {if (($thumbnail.width < $thumbnail.height) and $stripped_black_bloc.portrait_limitation=="yes")} {if $thumbnail.TN_CLASS=="bloc"} {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $thumbnail.src_image)} {else} {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $thumbnail.src_image)} {/if} {else} {if $thumbnail.TN_CLASS=="bloc"} {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)} {else} {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} {/if} {/if} {assign var='size' value=$derivative->get_size()}
is_cached()}data-src="{$derivative->get_url()}"{/if}> {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if} {if $SHOW_THUMBNAIL_CAPTION }
{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
{/if}
{/if} {/foreach} {/if}