source: extensions/flop_style/mainpage_categories/popout_details.tpl @ 12673

Last change on this file since 12673 was 12673, checked in by flop25, 12 years ago

jPolaroid : js issue corrected
medium_cat.css : minor css change about the size

File size: 1.7 KB
Line 
1{combine_css path="template-extension/flop_style/mainpage_categories/popout_details.css"}
2{footer_script require='jquery'}
3{literal}
4var max_dim_width = 0;
5var max_dim_height = 0;
6jQuery(window).load(function() {
7  $(".columns a img").each(function () {
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
13    jQuery(".columns a img")
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}">
29        <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}">
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>
Note: See TracBrowser for help on using the repository browser.