Ignore:
Timestamp:
Sep 10, 2012, 4:58:25 PM (12 years ago)
Author:
flop25
Message:

code simplification
margin and width adjusted for stuff blocs and descriptions
shadow added for stuffs_thumbnails.tpl
managment of pictures which have a smaller width than the wanted block
no more grey border for album thumbnails : colored border
etc

File:
1 edited

Legend:

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

    r17740 r17843  
    77    {assign var=derivative value=$pwg->derivative($derivative_stripped_black_bloc, $thumbnail.src_image)}
    88    {assign var='size' value=$derivative->get_size()}
    9 <div class="{$thumbnail.TN_CLASS}">
     9<div class="bloc {$thumbnail.TN_CLASS}">
    1010  <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}>
    1111    {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
    1212  </a>
    13   {if $SHOW_THUMBNAIL_CAPTION }
    1413  <div class="title">{if isset($block.TITLE)}{$block.TITLE}{elseif isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
    15   {/if}
    1614</div>
    1715  {/foreach}
Note: See TracChangeset for help on using the changeset viewer.