Ignore:
Timestamp:
Jul 8, 2012, 6:58:29 PM (12 years ago)
Author:
flop25
Message:

adding the loader ajax-loader-small.gif for comment_list.tpl, and ajax-loader-big.gif for picture_content.tpl
bug:2684

File:
1 edited

Legend:

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

    r15924 r16505  
     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{if isset($comment_derivative_params)}
    24{strip}{html_style}
     
    1416<li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
    1517        {if isset($comment.src_image)}
     18    {if isset($comment_derivative_params)}
     19    {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)}
     20    {else}
     21    {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)}
     22    {/if}
    1623        <div class="illustration">
    1724                <a href="{$comment.U_PICTURE}">
    18                 <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}">
     25                <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="{$comment.ALT}">
    1926                </a>
    2027        </div>
Note: See TracChangeset for help on using the changeset viewer.