Ignore:
Timestamp:
Apr 15, 2012, 4:40:47 PM (9 years ago)
Author:
flop25
Message:

stuffs_thumbnails.tpl compatible piwigo 2.4
comment_list.tpl picture.tpl picture_content.tpl added from stripped and updated for 2.4 : xlarge used on picture.tpl, comment_list.tpl has been updated to work with pwgstuff too

Location:
extensions/stripped_black_bloc/template
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/template/stuffs_thumbnails.tpl

    r13211 r14166  
    11{assign var='thumbnails' value=$block.thumbnails}
     2{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     3{combine_script id='ajaxloader' path='themes/stripped_black_bloc/js/ajaxloader.js' require='jquery.ajaxmanager' load='footer'}
     4{define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false}
    25{if !empty($thumbnails)}
    36  {foreach from=$thumbnails item=thumbnail}
    4   <div class="{$thumbnail.TN_CLASS}">
    5         <a href="{$thumbnail.URL}" style="background: url({$thumbnail.TN_SRC}) no-repeat scroll center center transparent; height: {$thumbnail.TN_HEIGHT}px; width: {$thumbnail.TN_WIDTH}px; opacity: 0.75;" >
    6           RECENT
    7         </a>
    8         <div class="title">{if isset($block.TITLE)}{$block.TITLE}{elseif isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
    9         </div>
     7    {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)}
     8    {assign var='size' value=$derivative->get_size()}
     9 <div class="{$thumbnail.TN_CLASS}">
     10<a href="{$thumbnail.URL}" style="background: url({if $derivative->is_cached()}{$derivative->get_url()}{else}{$ROOT_URL}{$themeconf.img_dir}/loading.gif{/if}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" {if !$derivative->is_cached()}data-src="{$derivative->get_url()}"{/if}>
     11    {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
     12    </a>
     13    <div class="title">{if isset($block.TITLE)}{$block.TITLE}{elseif isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
     14  </div>
    1015  {/foreach}
    1116{/if}
Note: See TracChangeset for help on using the changeset viewer.