Ignore:
Timestamp:
Nov 3, 2012, 7:30:12 PM (12 years ago)
Author:
Miklfe
Message:

modification du carousel

Location:
extensions/Slim/template
Files:
2 edited

Legend:

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

    r18811 r18905  
     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
     9
    110<div id="carouselcat">
    211
     
    716
    817
    9                         <li>
     18                        <li class="test">
    1019                                        <div class="illustration">
    1120                                                <a href="{$cat.URL}">
    12                                                         <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}" min-width="{$derivative_params->max_width()}" height="{$derivative_params->max_height()-22}"/>
     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()-22}"/>
    1322                                                </a>
    1423                                        </div>
  • extensions/Slim/template/thumbnails.tpl

    r18811 r18905  
     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="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" 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()}"/>
     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()}"/>
    2122                                                </a>
    2223                                        </div>
     
    3637
    3738        {foreach from=$thumbnails item=thumbnail}
    38         {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
     39        {assign var=derivative value=$pwg->derivative($carousel, $thumbnail.src_image)}
    3940                        <li>
    4041                                <div class="iIllustration">
    4142                                        <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;'}">
    42                                         <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()}"/>
     43                                        <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" height="{$carousel->max_height()}"/>
    4344                                               
    4445                                                {if $SHOW_THUMBNAIL_CAPTION }
Note: See TracChangeset for help on using the changeset viewer.