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

updated for 2.4 :
-deleted timthumb
-deleted config for auto-generation

features added :
-representative thumbs can be big : always, as the "Every x thumb" config or never

bug corrected :
-big thumbs didn't have rounded corners

Translations uk_UA needed for new keys

File:
1 edited

Legend:

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

    r12048 r13894  
     1{define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false}
     2{define_derivative name='derivative_stripped_black_bloc_big' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=9999 crop=false}
    13{if !empty($thumbnails)}
    24  {foreach from=$thumbnails item=thumbnail}
    3   <div class="{$thumbnail.TN_CLASS}">
    4         <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;" >
    5           {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
    6         </a>
    7         <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
    8         </div>
     5    {if $thumbnail.TN_CLASS=="bloc"}
     6      {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)}
     7    {else}
     8      {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)}
     9    {/if}
     10    {assign var='size' value=$derivative->get_size()}
     11 <div class="{$thumbnail.TN_CLASS}">
     12    <a href="{$thumbnail.URL}" style="background: url({$derivative->get_url()}) no-repeat scroll center center transparent; height: {$size[1]}px; width: {$size[0]}px; opacity: 0.75;" >
     13      {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
     14    </a>
     15    <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
     16  </div>
    917  {/foreach}
    1018{/if}
Note: See TracChangeset for help on using the changeset viewer.