Changeset 17795


Ignore:
Timestamp:
Sep 7, 2012, 7:51:23 PM (12 years ago)
Author:
flop25
Message:

correction for pwg 2.4 :
truncate name and description
no background image for H3

Location:
extensions/flop_mauve/current
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/flop_mauve/current/theme.css

    r10033 r17795  
    9292        background-image: url(images/bk_ground.gif);
    9393}
    94 H3, #the_page, #imageHeaderBar, #imageToolBar A:hover, .row1 {
     94#the_page, #imageHeaderBar, #imageToolBar A:hover, .row1 {
    9595        background-image: url(images/bk_ground.gif);
    9696}
  • extensions/flop_mauve/current/themeconf.inc.php

    r10447 r17795  
    2020$conf['show_picture_name_on_title'] = false;
    2121$conf['show_thumbnail_caption'] = false;
     22/** mainpage_categories.tpl **/
     23add_event_handler('loc_end_index_category_thumbnails', 'flopmauve_cat');
     24function flopmauve_cat($tpl_thumbnails_var)
     25{
     26    global $template;
     27    $template->set_prefilter('index_category_thumbnails', 'flopmauve_cat_pre');
     28                return $tpl_thumbnails_var;
     29}
     30function flopmauve_cat_pre($content, &$smarty)
     31{
     32  $search = 'NAME}</a>';
     33  $replacement = 'NAME|truncate:38:" [...]"}</a>';
     34  $content=str_replace($search, $replacement, $content);
     35  $search = 'DESCRIPTION}</p>';
     36  $replacement = 'DESCRIPTION|truncate:130:" [...]"}</p>';
     37  return str_replace($search, $replacement, $content);
     38}
    2239
    2340?>
Note: See TracChangeset for help on using the changeset viewer.