Line | |
---|
1 | {assign var='thumbnails' value=$block.thumbnails} |
---|
2 | {assign var='derivative_params' value=$block.derivative_params} |
---|
3 | |
---|
4 | {html_style} |
---|
5 | {*Set some sizes according to maximum thumbnail width and height*} |
---|
6 | .stuffs_block_{$block.ID} SPAN, |
---|
7 | .stuffs_block_{$block.ID} .wrap2 A, |
---|
8 | .stuffs_block_{$block.ID} LABEL{ldelim} |
---|
9 | width: {$derivative_params->max_width()+2}px !important; |
---|
10 | } |
---|
11 | |
---|
12 | .stuffs_block_{$block.ID} .wrap2{ldelim} |
---|
13 | height: {$derivative_params->max_height()+3}px !important; |
---|
14 | } |
---|
15 | {if $derivative_params->max_width() > 600} |
---|
16 | .stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 130% !important} |
---|
17 | {else} |
---|
18 | {if $derivative_params->max_width() > 400} |
---|
19 | .stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 110% !important} |
---|
20 | {else} |
---|
21 | .stuffs_block_{$block.ID} .thumbLegend {ldelim}font-size: 90% !important} |
---|
22 | {/if} |
---|
23 | {/if} |
---|
24 | {/html_style} |
---|
25 | |
---|
26 | <ul class="thumbnails stuffs_block_{$block.ID}" id="thumbnails"> |
---|
27 | {include file='thumbnails.tpl'|@get_extent:'index_thumbnails'} |
---|
28 | </ul> |
---|
Note: See
TracBrowser
for help on using the repository browser.