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/mosaic.tpl

    r16393 r16501  
    22{combine_css path="template-extension/flop_style/mainpage_categories/mosaic.css"}
    33{combine_script id="jquery.mosaic" load="header" path="template-extension/flop_style/mainpage_categories/mosaic/mosaic.1.0.1.min.js"}
     4{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     5{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    46{html_head}
    57  {literal}
     
    2224{define_derivative name='derivative_mosaic' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true}
    2325<div id="mosaic-content"> {foreach from=$category_thumbnails item=cat}
     26{assign var=derivative value=$pwg->derivative($derivative_mosaic, $cat.representative.src_image)}
    2427  <div class="mosaic-block bar"> <a href="{$cat.URL}" class="mosaic-overlay">
    2528    <div class="details">
     
    3538    </div>
    3639    </a>
    37     <div class="mosaic-backdrop"> <img src="{$pwg->derivative_url($derivative_mosaic, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> </div>
     40    <div class="mosaic-backdrop"> <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}"> </div>
    3841  </div>
    3942  {/foreach}
Note: See TracChangeset for help on using the changeset viewer.