aboutsummaryrefslogtreecommitdiffstats
path: root/themes/Sylvia/themeconf.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2012-07-17 09:42:12 +0000
committerflop25 <flop25@piwigo.org>2012-07-17 09:42:12 +0000
commit6518f7b5ac1c57f24026dad24aeaf78125ad0663 (patch)
tree812861653c79c13c41cc0870fdaeec5957c7083f /themes/Sylvia/themeconf.inc.php
parent1efd5a0733643b4a4e9edf7eb0d21f8cc38ddb35 (diff)
bug:2688
changing the padding adding a prefilter to a height for .thumbnailCategory .description .text adding rounded border git-svn-id: http://piwigo.org/svn/trunk@16799 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/Sylvia/themeconf.inc.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/Sylvia/themeconf.inc.php b/themes/Sylvia/themeconf.inc.php
index 78c84e49e..e06d2b465 100644
--- a/themes/Sylvia/themeconf.inc.php
+++ b/themes/Sylvia/themeconf.inc.php
@@ -13,4 +13,21 @@ $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;
+}';
+ return preg_replace($search, $replacement, $content);
+}
?>