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/thumbnails/fancy_hover.tpl

    r16393 r16501  
    11{combine_css path="template-extension/flop_style/thumbnails/fancy_hover.css"}
    22{combine_script id='jquery' path='themes/default/js/jquery.min.js'}
     3{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     4{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    35{define_derivative name='derivative_fh' width=$derivative_params->max_width() height=$derivative_params->max_height() crop=true}
    46{html_head}
    57  {literal}
    68<script type="text/javascript">
    7 $(document).ready(function(){
     9jQuery(document).ready(function(){
    810$("ul.thumbnails li").hover(function() {
    911        $(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/
     
    5052{if !empty($thumbnails)}
    5153{strip}{foreach from=$thumbnails item=thumbnail}
     54{assign var=derivative value=$pwg->derivative($derivative_fh, $thumbnail.src_image)}
    5255        <li>
    5356    <a href="{$thumbnail.URL}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|truncate:11:" [...]"|@replace:'"':' '}{/if}">
    54       <img src="{$pwg->derivative_url($derivative_fh, $thumbnail.src_image)}" class="thumb_jpolaroid" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" >
     57      <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} class="thumb_jpolaroid" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" >
    5558    </a>
    5659        </li>
Note: See TracChangeset for help on using the changeset viewer.