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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.