Last change
on this file since 13894 was
13894,
checked in by flop25, 12 years ago
|
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 size:
1.1 KB
|
Rev | Line | |
---|
[13894] | 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} |
---|
[10851] | 3 | {if !empty($thumbnails)} |
---|
| 4 | {foreach from=$thumbnails item=thumbnail} |
---|
[13894] | 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> |
---|
[10851] | 17 | {/foreach} |
---|
| 18 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.