[12579] | 1 | {combine_css path="template-extension/flop_style/mainpage_categories/popout_details.css"} |
---|
| 2 | {footer_script require='jquery'} |
---|
| 3 | {literal} |
---|
| 4 | var max_dim_width = 0; |
---|
| 5 | var max_dim_height = 0; |
---|
| 6 | jQuery(window).load(function() { |
---|
[12673] | 7 | $(".columns a img").each(function () { |
---|
[12579] | 8 | if (jQuery(this).height() > max_dim_height) |
---|
| 9 | max_dim_height = jQuery(this).height() + 10; |
---|
| 10 | if (jQuery(this).width() > max_dim_width) |
---|
| 11 | max_dim_width = jQuery(this).width() + 10; |
---|
| 12 | |
---|
[12673] | 13 | jQuery(".columns a img") |
---|
[12579] | 14 | .css('width', max_dim_width+'px') |
---|
| 15 | .css('height', max_dim_height+'px'); |
---|
| 16 | jQuery(".columns li, .columns .info") |
---|
| 17 | .css('width', max_dim_width+'px'); |
---|
| 18 | jQuery(".columns .info") |
---|
| 19 | .css('padding-top', max_dim_height+'px') |
---|
| 20 | .css('max-height', max_dim_height+'px'); |
---|
| 21 | }); |
---|
| 22 | }); |
---|
| 23 | {/literal} |
---|
| 24 | {/footer_script} |
---|
| 25 | <ul class="columns"> |
---|
| 26 | {foreach from=$category_thumbnails item=cat} |
---|
| 27 | <li> |
---|
| 28 | <a href="{$cat.URL}"> |
---|
[16393] | 29 | <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> |
---|
[12579] | 30 | </a> |
---|
| 31 | <div class="info"> |
---|
| 32 | <h6> |
---|
| 33 | <a href="{$cat.URL}">{$cat.NAME}</a> |
---|
| 34 | {if !empty($cat.icon_ts)} |
---|
| 35 | <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)"> |
---|
| 36 | {/if} |
---|
| 37 | </h6> |
---|
| 38 | <div class="text"> |
---|
| 39 | {if isset($cat.INFO_DATES) } |
---|
| 40 | <p class="dates">{$cat.INFO_DATES}</p> |
---|
| 41 | {/if} |
---|
| 42 | <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p> |
---|
| 43 | {if not empty($cat.DESCRIPTION)} |
---|
| 44 | <p>{$cat.DESCRIPTION}</p> |
---|
| 45 | {/if} |
---|
| 46 | </div> |
---|
| 47 | </div> |
---|
| 48 | </li> |
---|
| 49 | {/foreach} |
---|
| 50 | </ul> |
---|
| 51 | <div style="clear:left" > </div> |
---|