Changeset 18917
- Timestamp:
- Nov 3, 2012, 11:44:39 PM (11 years ago)
- 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 1 9 <div id="carouselcat"> 2 10 … … 10 18 <div class="illustration"> 11 19 <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()}"/> 13 21 <div class="CatMPdescription"> 14 22 <h3> -
extensions/Slimi/template/thumbnails.tpl
r18812 r18917 1 {define_derivative name='carousel' width='300' height='300' min_width='300'} 1 2 {php} 2 3 global $page, $template; … … 18 19 <div class="illustration"> 19 20 <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()}"/> 37 22 </a> 38 23 </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> 39 34 </li> 40 35 {/foreach}{/if} … … 42 37 43 38 {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:'\'':'''|replace:'"':'"'}"> 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:'\'':'''|replace:'"':'"'}"> 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> 59 69 {/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> 76 73 {/foreach} 77 74 </ul> -
extensions/Slimi/theme.css
r18812 r18917 49 49 50 50 /*=========================================carousel======================================================*/ 51 .jcarousel-skin-cat .jcarousel-list li{height:300px} 51 52 .jcarousel-skin-cat .jcarousel-container{border:none;border-radius:0;box-shadow:none;} 52 53 .jcarousel-skin-cat {padding:0}
Note: See TracChangeset
for help on using the changeset viewer.