Changeset 16030


Ignore:
Timestamp:
06/25/12 12:10:18 (7 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.4

Location:
extensions/simple_themes/simple
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/content.css

    r13559 r16030  
    398398#theCommentsPage #comments li { 
    399399  list-style: none; 
    400   display: table-row; 
     400  border-top: none; 
     401  /* display: table-row; */ 
     402  min-height:150px; 
    401403} 
    402404 
  • extensions/simple_themes/simple/template/mainpage_categories.tpl

    r13551 r16030  
     1{strip}{html_style} 
     2.thumbnailCategory .illustration{ldelim} 
     3        width: {$derivative_params->max_width()+5}px; 
     4} 
     5 
     6.content .thumbnailCategory .description{ldelim} 
     7        height: {$derivative_params->max_height()+5}px; 
     8} 
     9{/html_style}{/strip} 
    110<ul class="thumbnailCategories"> 
    2   {foreach from=$category_thumbnails item=cat} 
    3   <li> 
    4     <div class="illustration"> 
    5       <a href="{$cat.URL}"> 
    6         <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '} - {'display this album'|@translate}"> 
    7       </a> 
    8     </div> 
    9     <div class="description"> 
    10       <h3> 
    11         <a href="{$cat.URL}">{$cat.NAME}</a> 
    12         {if !empty($cat.icon_ts)} 
    13         <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)"> 
    14         {/if} 
    15       </h3> 
    16       {if isset($cat.INFO_DATES) } 
     11{foreach from=$category_thumbnails item=cat name=cat_loop} 
     12        <li> 
     13                <div class="illustration"> 
     14                        <a href="{$cat.URL}"> 
     15                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 
     16                        </a> 
     17                </div> 
     18                <div class="description"> 
     19                                <h3> 
     20                                        <a href="{$cat.URL}">{$cat.NAME}</a> 
     21                                        {if !empty($cat.icon_ts)} 
     22                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)"> 
     23                                        {/if} 
     24                                </h3> 
     25                                {if isset($cat.INFO_DATES) } 
    1726      <p class="thumbCatDescNfoDate">{$cat.INFO_DATES}</p> 
    1827      {/if} 
     
    2130      <p class="thumbCatDesc">{$cat.DESCRIPTION}</p> 
    2231      {/if} 
    23     </div> 
    24   </li> 
    25   {/foreach} 
     32                </div> 
     33        </li> 
     34{/foreach} 
    2635</ul> 
  • extensions/simple_themes/simple/template/thumbnails.tpl

    r13557 r16030  
    1 {if !empty($thumbnails)} 
     1{if !empty($thumbnails)}{strip} 
     2{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
     3{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
     4{*define_derivative name='derivative_params' width=160 height=90 crop=true*} 
     5{html_style} 
     6{*Set some sizes according to maximum thumbnail width and height*} 
     7.thumbnails SPAN, 
     8.thumbnails .wrap2 A, 
     9.thumbnails LABEL{ldelim} 
     10        width: {$derivative_params->max_width()+2}px; 
     11} 
     12 
     13.thumbnails .wrap2{ldelim} 
     14        height: {$derivative_params->max_height()+3}px; 
     15} 
     16{if $derivative_params->max_width() > 600} 
     17.thumbLegend {ldelim}font-size: 130%} 
     18{else} 
     19{if $derivative_params->max_width() > 400} 
     20.thumbLegend {ldelim}font-size: 110%} 
     21{else} 
     22.thumbLegend {ldelim}font-size: 90%} 
     23{/if} 
     24{/if} 
     25{/html_style} 
    226<ul> 
    327  {foreach from=$thumbnails item=thumbnail} 
     28    {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} 
    429  <li> 
    530    <a href="{$thumbnail.URL}"> 
    6       <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" /> 
     31      <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 
    732    </a> 
    833    {if $SHOW_THUMBNAIL_CAPTION } 
     
    1742      </span> 
    1843      {/if} 
    19       {* 
    20       {if isset($thumbnail.NB_HITS)} 
    21       <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 
    22         {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 
    23       </span> 
    24       {/if} 
    25       *} 
    2644    </p> 
    2745    {/if} 
    2846  </li> 
    29   {/foreach} 
     47{/foreach}{/strip} 
    3048</ul> 
    3149{/if} 
  • extensions/simple_themes/simple/theme.css

    r13560 r16030  
    210210  font-weight: bold; 
    211211} 
     212 
     213.commentsList .odd { 
     214  /* 
     215  background-color:#4c4c4c; 
     216  */ 
     217} 
     218 
     219.commentElement { 
     220  padding:5px; 
     221  border-top: 1px dotted #606060; 
     222} 
     223 
     224#comments .description { 
     225  border-top: 1px dotted #606060; 
     226  display: block; 
     227  padding: 10px 0; 
     228} 
     229 
     230#comments .illustration { 
     231  float: left; 
     232  margin: 0 10px 0 0; 
     233} 
     234 
     235/* LanguageSwitch */ 
     236#languageSwitchLink .pwg-button-text {display:none;} 
     237 
     238#languageSwitchLink .pwg-icon { 
     239  display: inline-block; 
     240  height: 26px; 
     241  overflow: hidden; 
     242  text-indent: -9999px; 
     243  vertical-align: bottom; 
     244  width: 26px; 
     245} 
Note: See TracChangeset for help on using the changeset viewer.