aboutsummaryrefslogtreecommitdiffstats
path: root/themes/Sylvia/themeconf.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/Sylvia/themeconf.inc.php')
-rw-r--r--themes/Sylvia/themeconf.inc.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/Sylvia/themeconf.inc.php b/themes/Sylvia/themeconf.inc.php
index 78c84e49e..b1523d611 100644
--- a/themes/Sylvia/themeconf.inc.php
+++ b/themes/Sylvia/themeconf.inc.php
@@ -13,4 +13,26 @@ $themeconf = array(
'icon_dir' => 'themes/Sylvia/icon',
'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/',
);
+/************************************ mainpage_categories.tpl ************************************/
+add_event_handler('loc_end_index_category_thumbnails', 'Sylvia_album');
+function Sylvia_album($tpl_thumbnails_var)
+{
+ global $template;
+ $template->set_prefilter('index_category_thumbnails', 'Sylvia_album_prefilter');
+ return $tpl_thumbnails_var;
+}
+function Sylvia_album_prefilter($content, &$smarty)
+{
+ $search = '#\{html_style\}#';
+ $replacement = '{html_style}
+.thumbnailCategory .description .text{ldelim}
+ height: {$derivative_params->max_height()-30}px;
+}';
+ $content = preg_replace($search, $replacement, $content);
+ $search = '#\.thumbnailCategory[\t ]*.description\{ldelim\}[\s]*height:[\t ]*\{\$derivative_params->max_height\(\)\+5#';
+ $replacement = '.thumbnailCategory .description{ldelim}
+ height: {$derivative_params->max_height()+15';
+ $content = preg_replace($search, $replacement, $content);
+ return $content;
+}
?>