Changeset 16799 for trunk/themes/Sylvia/themeconf.inc.php
- Timestamp:
- Jul 17, 2012, 11:42:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/Sylvia/themeconf.inc.php
r10351 r16799 14 14 'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/', 15 15 ); 16 /************************************ mainpage_categories.tpl ************************************/ 17 add_event_handler('loc_end_index_category_thumbnails', 'Sylvia_album'); 18 function Sylvia_album($tpl_thumbnails_var) 19 { 20 global $template; 21 $template->set_prefilter('index_category_thumbnails', 'Sylvia_album_prefilter'); 22 return $tpl_thumbnails_var; 23 } 24 function Sylvia_album_prefilter($content, &$smarty) 25 { 26 $search = '#\{html_style\}#'; 27 $replacement = '{html_style} 28 .thumbnailCategory .description .text{ldelim} 29 height: {$derivative_params->max_height()-30}px; 30 }'; 31 return preg_replace($search, $replacement, $content); 32 } 16 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.