Changeset 13920


Ignore:
Timestamp:
Apr 5, 2012, 5:13:45 PM (9 years ago)
Author:
flop25
Message:

feature :
-ajax loading : js+loading.gif
bug correction :
-max width for Gmap

Location:
extensions/stripped_black_bloc
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r13892 r13920  
    66        color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal};
    77}
    8 .bloc {
     8.bloc, .gmapsMarkup {
    99        max-width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
    1010}
  • extensions/stripped_black_bloc/template/thumbnails.tpl

    r13894 r13920  
     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'}
    13{define_derivative name='derivative_stripped_black_bloc' width=$stripped_black_bloc.thumbnail_width height=9999 crop=false}
    24{define_derivative name='derivative_stripped_black_bloc_big' width=$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width height=9999 crop=false}
     
    1012    {assign var='size' value=$derivative->get_size()}
    1113 <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 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}
    1416    </a>
    1517    <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
  • extensions/stripped_black_bloc/themeconf.inc.php

    r13894 r13920  
    1616  'theme_dir' => 'stripped_black_bloc',
    1717  'icon_dir' => 'themes/stripped/icon',
     18  'img_dir' => 'themes/stripped_black_bloc/img',
    1819  'admin_icon_dir' => 'themes/default/icon/admin',
    1920  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
Note: See TracChangeset for help on using the changeset viewer.