source: trunk/themes/Sylvia/themeconf.inc.php @ 16799

Last change on this file since 16799 was 16799, checked in by flop25, 12 years ago

bug:2688
changing the padding
adding a prefilter to a height for .thumbnailCategory .description .text
adding rounded border

  • Property svn:eol-style set to LF
File size: 1.0 KB
Line 
1<?php
2/*
3Theme Name: Sylvia
4Version: 2.3.0
5Description: Dark background, flora and pink decorations.
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=368
7Author: Piwigo team
8Author URI: http://piwigo.org
9*/
10$themeconf = array(
11  'name'         => 'Sylvia',
12  'parent'        => 'default',
13  'icon_dir'      => 'themes/Sylvia/icon',
14  'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/',
15);
16/************************************ mainpage_categories.tpl ************************************/
17add_event_handler('loc_end_index_category_thumbnails', 'Sylvia_album');
18function 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}
24function 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}
33?>
Note: See TracBrowser for help on using the repository browser.