Last change
on this file since 13920 was
13920,
checked in by flop25, 12 years ago
|
feature :
-ajax loading : js+loading.gif
bug correction :
-max width for Gmap
|
File size:
1.5 KB
|
Rev | Line | |
---|
[13920] | 1 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
| 2 | {combine_script id='ajaxloader' path='themes/stripped_black_bloc/js/ajaxloader.js' require='jquery.ajaxmanager' load='footer'} |
---|
[13894] | 3 | {define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false} |
---|
| 4 | {define_derivative name='derivative_stripped_black_bloc_big' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=9999 crop=false} |
---|
[10851] | 5 | {if !empty($thumbnails)} |
---|
| 6 | {foreach from=$thumbnails item=thumbnail} |
---|
[13894] | 7 | {if $thumbnail.TN_CLASS=="bloc"} |
---|
| 8 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)} |
---|
| 9 | {else} |
---|
| 10 | {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc_big, $thumbnail.src_image)} |
---|
| 11 | {/if} |
---|
| 12 | {assign var='size' value=$derivative->get_size()} |
---|
| 13 | <div class="{$thumbnail.TN_CLASS}"> |
---|
[13920] | 14 | <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}> |
---|
| 15 | {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if} |
---|
[13894] | 16 | </a> |
---|
| 17 | <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div> |
---|
| 18 | </div> |
---|
[10851] | 19 | {/foreach} |
---|
| 20 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.