Changeset 17795 for extensions/flop_mauve/current/themeconf.inc.php
- Timestamp:
- Sep 7, 2012, 7:51:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/flop_mauve/current/themeconf.inc.php
r10447 r17795 20 20 $conf['show_picture_name_on_title'] = false; 21 21 $conf['show_thumbnail_caption'] = false; 22 /** mainpage_categories.tpl **/ 23 add_event_handler('loc_end_index_category_thumbnails', 'flopmauve_cat'); 24 function 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 } 30 function 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 } 22 39 23 40 ?>
Note: See TracChangeset
for help on using the changeset viewer.