Changeset 16504


Ignore:
Timestamp:
07/08/12 18:31:28 (7 years ago)
Author:
flop25
Message:

adding the loader ajax-loader-small.gif for thumbnails.tpl & mainpage_categories.tpl
bug:2684

Location:
trunk/themes/default/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/mainpage_categories.tpl

    r14239 r16504  
     1{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
     2{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
    13{strip}{html_style} 
    24.thumbnailCategory .illustration{ldelim} 
     
    1012<ul class="thumbnailCategories"> 
    1113{foreach from=$category_thumbnails item=cat name=cat_loop} 
     14{assign var=derivative value=$pwg->derivative($derivative_params, $cat.representative.src_image)} 
    1215        <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 
    1316                <div class="thumbnailCategory"> 
    1417                        <div class="illustration"> 
    1518                        <a href="{$cat.URL}"> 
    16                                 <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 
     19                                <img  {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 
    1720                        </a> 
    1821                        </div> 
  • trunk/themes/default/template/thumbnails.tpl

    r14239 r16504  
    3030                <span class="wrap2"> 
    3131                <a href="{$thumbnail.URL}"> 
    32                         <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 
     32                        <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 
    3333                </a> 
    3434                </span> 
Note: See TracChangeset for help on using the changeset viewer.