Changeset 18917


Ignore:
Timestamp:
Nov 3, 2012, 11:44:39 PM (11 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/Slimi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slimi/template/mainpage_categories.tpl

    r18812 r18917  
     1{define_derivative name='carousel' width='300' height='300' min_width='300'}
     2
     3
     4{html_style}
     5.jcarousel-skin-cat .jcarousel-list li{ldelim}
     6        min-width:{$carousel->max_width()}px;
     7{/html_style}
     8
    19<div id="carouselcat">
    210
     
    1018                                        <div class="illustration">
    1119                                                <a href="{$cat.URL}">
    12                                                         <img src="{$ROOT_URL}{$cat.representative.path}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$derivative_params->max_width()}" height="{$derivative_params->max_height()}"/>
     20                                                        <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height()}"/>
    1321                                                        <div class="CatMPdescription">
    1422                                                                <h3>
  • extensions/Slimi/template/thumbnails.tpl

    r18812 r18917  
     1{define_derivative name='carousel' width='300' height='300' min_width='300'}
    12{php}
    23    global $page, $template;
     
    1819                                        <div class="illustration">
    1920                                                <a href="{$cat.URL}">
    20                                                         <img src="{$ROOT_URL}{$cat.representative.path}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$derivative_params->max_width()}" height="{$derivative_params->max_height()-2}"/>
    21                                                         <div class="CatMPdescription">
    22                                                                 <h3>
    23                                                                         {$cat.NAME}
    24                                                                         {if !empty($cat.icon_ts)}
    25                                                                         <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="(!)">
    26                                                                         {/if}
    27                                                                 </h3>
    28                                                                
    29                                                                 {if isset($cat.INFO_DATES) }
    30                                                                 <p class="dates">{$cat.INFO_DATES}</p>
    31                                                                 {/if}
    32                                                                 <p class="Nb_images">{$cat.CAPTION_NB_IMAGES}</p>
    33                                                                 {if not empty($cat.DESCRIPTION)}
    34                                                                 <p>{$cat.DESCRIPTION}</p>
    35                                                                 {/if}
    36                                                         </div>
     21                                                        <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height()}"/>
    3722                                                </a>
    3823                                        </div>
     24                                       
     25                                               
     26                                                <div class="CatMPdescription">
     27                                                        <h3>
     28                                                                <a href="{$cat.URL}">{$cat.NAME}</a>
     29                                                        </h3>
     30                                                        <div>
     31                                                        {$cat.CAPTION_NB_IMAGES}
     32                                                        </div> 
     33                                                </div>
    3934                        </li>
    4035                {/foreach}{/if}
     
    4237
    4338        {foreach from=$thumbnails item=thumbnail}
    44         {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
    45                 <li>
    46                         <div class="iIllustration">
    47 
    48                                 <a href="{if ($Slimi.lytebox_slimi)==1}{$thumbnail.path}" class="lytebox" rev="slide:true group:name showNavigation:true navType:1 slideInterval:6000"{else}{$thumbnail.URL}"{/if} title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'&#39;'|replace:'"':'&quot;'}">
    49                                 <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" min-width="{$derivative_params->max_width()}" height="{$derivative_params->max_height()}"/>
    50                        
    51                                
    52                                
    53                 {if $SHOW_THUMBNAIL_CAPTION }
    54                         <div class="CatMPdescription">
    55                                                 <H3>
    56                                                 {$thumbnail.NAME}
    57                                                 {if !empty($thumbnail.icon_ts)}
    58                                                         <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
     39        {assign var=derivative value=$pwg->derivative($carousel, $thumbnail.src_image)}
     40                        <li>
     41                                <div class="iIllustration">
     42                                        <a href="{if ($Slim.style_slim)!=3}{$thumbnail.path}" class="lytebox" rev="slide:true group:name showNavigation:true navType:1 slideInterval:6000"{else}{$thumbnail.URL}"{/if} title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'&#39;'|replace:'"':'&quot;'}">
     43                                        <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" height="{$carousel->max_height()}"/>
     44                                               
     45                                                {if $SHOW_THUMBNAIL_CAPTION }
     46                                                        <div class="CatMPdescription">
     47                                                                <H3>
     48                                                                        {$thumbnail.NAME}
     49                                                                       
     50                                                                        {if !empty($thumbnail.icon_ts)}
     51                                                                                <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
     52                                                                        {/if}
     53                                                                </h3>
     54                                                                {if isset($thumbnail.NB_COMMENTS) or isset($thumbnail.NB_HITS)}
     55                                                                <div>
     56                                                                        {if isset($thumbnail.NB_COMMENTS)}
     57                                                                                <p class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
     58                                                                                {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
     59                                                                                </p>
     60                                                                        {/if}
     61                                                                        {if isset($thumbnail.NB_HITS)}
     62                                                                                <p class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
     63                                                                                {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
     64                                                                                </p>
     65                                                                        {/if}
     66                                                                </div>
     67                                                                {/if}
     68                                                        </div>
    5969                                                {/if}
    60                                                 </h3>
    61                                         {if isset($thumbnail.NB_COMMENTS)}
    62                                                 <p class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
    63                                                         {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
    64                                                 </p>
    65                                         {/if}
    66                                         {if isset($thumbnail.NB_HITS)}
    67                                                 <p class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
    68                                                         {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
    69                                                 </p>
    70                                         {/if}
    71                         </div>
    72                 {/if}
    73                                 </a>   
    74                         </div> 
    75                 </li>
     70                                        </a>   
     71                                </div> 
     72                        </li>
    7673        {/foreach}
    7774</ul>
  • extensions/Slimi/theme.css

    r18812 r18917  
    4949
    5050/*=========================================carousel======================================================*/
     51.jcarousel-skin-cat .jcarousel-list li{height:300px}
    5152.jcarousel-skin-cat .jcarousel-container{border:none;border-radius:0;box-shadow:none;}
    5253.jcarousel-skin-cat {padding:0}
Note: See TracChangeset for help on using the changeset viewer.