{define_derivative name='derivative_params' type='xsmall'} {if !empty($thumbnails)}{strip} {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'} {*define_derivative name='derivative_params' width=160 height=90 crop=true*} {html_style} {*Set some sizes according to maximum thumbnail width and height*} {if $derivative_params->max_width() >= 1008} .col{ldelim}width:95%} {elseif $derivative_params->max_width() >= 792} .col{ldelim}width:49%} {elseif $derivative_params->max_width() >= 576} .col{ldelim}width:40%} {elseif $derivative_params->max_width() >= 500} .col{ldelim}width:32%} {elseif $derivative_params->max_width() >= 480} .col{ldelim}width:24%} {elseif $derivative_params->max_width() >= 380} .col{ldelim}width:19%} {else} .col{ldelim}width:15%} {/if} .thumbnails .wrap2{ldelim} height: {$derivative_params->max_height()+3}px; } {if $derivative_params->max_width() > 600} .thumbLegend {ldelim}font-size: 130%} {else} {if $derivative_params->max_width() > 400} .thumbLegend {ldelim}font-size: 110%} {else} .thumbLegend {ldelim}font-size: 90%} {/if} {/if} {/html_style}