aboutsummaryrefslogtreecommitdiffstats
path: root/themes/Sylvia/themeconf.inc.php
blob: e06d2b46587dd07acd7c9ace431054084891edfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*
Theme Name: Sylvia
Version: 2.3.0
Description: Dark background, flora and pink decorations.
Theme URI: http://piwigo.org/ext/extension_view.php?eid=368
Author: Piwigo team
Author URI: http://piwigo.org
*/
$themeconf = array(
  'name'         => 'Sylvia',
  'parent'        => 'default',
  '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);
}
?>