[2506] | 1 | <?php |
---|
[5442] | 2 | /* |
---|
| 3 | Theme Name: Sylvia |
---|
[21098] | 4 | Version: 2.5.0 |
---|
[5442] | 5 | Description: Dark background, flora and pink decorations. |
---|
| 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=368 |
---|
| 7 | Author: Piwigo team |
---|
| 8 | Author URI: http://piwigo.org |
---|
| 9 | */ |
---|
[2506] | 10 | $themeconf = array( |
---|
[5177] | 11 | 'name' => 'Sylvia', |
---|
[5123] | 12 | 'parent' => 'default', |
---|
| 13 | 'icon_dir' => 'themes/Sylvia/icon', |
---|
| 14 | 'mime_icon_dir' => 'themes/Sylvia/icon/mimetypes/', |
---|
[2506] | 15 | ); |
---|
[16799] | 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 | { |
---|
[16800] | 26 | $search = '#\{html_style\}#'; |
---|
| 27 | $replacement = '{html_style} |
---|
[16799] | 28 | .thumbnailCategory .description .text{ldelim} |
---|
| 29 | height: {$derivative_params->max_height()-30}px; |
---|
| 30 | }'; |
---|
[16800] | 31 | $content = preg_replace($search, $replacement, $content); |
---|
| 32 | $search = '#\.thumbnailCategory[\t ]*.description\{ldelim\}[\s]*height:[\t ]*\{\$derivative_params->max_height\(\)\+5#'; |
---|
| 33 | $replacement = '.thumbnailCategory .description{ldelim} |
---|
| 34 | height: {$derivative_params->max_height()+15'; |
---|
| 35 | $content = preg_replace($search, $replacement, $content); |
---|
| 36 | return $content; |
---|
[16799] | 37 | } |
---|
[2506] | 38 | ?> |
---|