Ignore:
Timestamp:
Jul 8, 2012, 5:45:23 PM (12 years ago)
Author:
flop25
Message:

adding a gif loader (introduced in 2.4.2)
fixing the height of medium_cat.tpl
adding a custom size for spotlight.tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flop_style/mainpage_categories/popout_details.tpl

    r16393 r16501  
    11{combine_css path="template-extension/flop_style/mainpage_categories/popout_details.css"}
     2{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     3{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    24{footer_script require='jquery'}
    35{literal}
     
    57var max_dim_height = 0;
    68jQuery(window).load(function() {
    7   $(".columns a img").each(function () {
     9  jQuery(".columns a img").each(function () {
    810    if (jQuery(this).height() > max_dim_height)
    911      max_dim_height = jQuery(this).height() + 10;
     
    2527<ul class="columns">
    2628{foreach from=$category_thumbnails item=cat}
     29{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)}
    2730  <li>
    2831      <a href="{$cat.URL}">
    29         <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}">
     32        <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-big.gif" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}">
    3033      </a>
    3134      <div class="info">
Note: See TracChangeset for help on using the changeset viewer.