[13894] | 1 | {define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false} |
---|
| 2 | {define_derivative name='derivative_stripped_black_bloc_big' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=9999 crop=false} |
---|
[17828] | 3 | {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} |
---|
| 4 | {define_derivative name='derivative_stripped_black_bloc_vert' width=$stripped_black_bloc.thumbnail_width height=$stripped_black_bloc.thumbnail_width crop=false} |
---|
| 5 | {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} |
---|
| 6 | |
---|
[13894] | 7 | {foreach from=$category_thumbnails item=cat} |
---|
[17828] | 8 | {assign var=triplehigh value= $cat.representative.height+$cat.representative.height+$cat.representative.height} |
---|
| 9 | {if $cat.representative.width gt $triplehigh} |
---|
| 10 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_wide, $cat.representative.src_image)} |
---|
| 11 | {assign var='size' value=$derivative->get_size()} |
---|
[17843] | 12 | <div class="bloc twocol album"> |
---|
[17828] | 13 | <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" > |
---|
| 14 | {$cat.NAME} |
---|
| 15 | </a> |
---|
| 16 | <div class="title">{$cat.NAME}</div> |
---|
| 17 | </div> |
---|
[13894] | 18 | {else} |
---|
[17828] | 19 | {if $cat.representative.width < $cat.representative.height and $stripped_black_bloc.catthumb=="yes"} |
---|
[17843] | 20 | {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"} |
---|
[17828] | 21 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)} |
---|
| 22 | {elseif $stripped_black_bloc.catthumb=="all"} |
---|
| 23 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big_vert, $cat.representative.src_image)} |
---|
| 24 | {else} |
---|
| 25 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_vert, $cat.representative.src_image)} |
---|
| 26 | {/if} |
---|
| 27 | {else} |
---|
[17843] | 28 | {if $cat.TN_CLASS=="twocol" and $stripped_black_bloc.catthumb=="same"} |
---|
[17828] | 29 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)} |
---|
| 30 | {elseif $stripped_black_bloc.catthumb=="all"} |
---|
| 31 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $cat.representative.src_image)} |
---|
| 32 | {else} |
---|
| 33 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $cat.representative.src_image)} |
---|
| 34 | {/if} |
---|
| 35 | {/if} |
---|
| 36 | {assign var='size' value=$derivative->get_size()} |
---|
[17843] | 37 | <div class="bloc {if $stripped_black_bloc.catthumb=="all"}twocol{else}{$cat.TN_CLASS}{/if} album"> |
---|
[13894] | 38 | <a href="{$cat.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" > |
---|
[11677] | 39 | {$cat.NAME} |
---|
| 40 | </a> |
---|
| 41 | <div class="title">{$cat.NAME}</div> |
---|
| 42 | </div> |
---|
[17828] | 43 | {/if} |
---|
[11677] | 44 | {/foreach} |
---|