source: extensions/yoga/KoffeeTux/themeconf.inc.php @ 10800

Last change on this file since 10800 was 7591, checked in by plg, 14 years ago

update theme KoffeeTux for Piwigo 2.1 compatibility

File size: 995 bytes
Line 
1<?php
2$themeconf = array(
3  'name'  => 'KoffeeTux',
4  'parent' => 'default',
5  'template_dir' => 'themes',
6  'icon_dir'      => 'themes/KoffeeTux/icon',
7  'local_head' => '<!--[if lt IE 7]>
8  <link rel="stylesheet" type="text/css" href="'.PHPWG_ROOT_PATH.'themes/KoffeeTux/fix-ie5-ie6.css">
9<![endif]-->'
10);
11$lang['Theme: KoffeeTux'] = 'Thème KoffeeTux By Swan.';
12    if (!function_exists('set_koffeetux_prefilter'))
13    {
14      add_event_handler('init', 'set_KoffeeTux_prefilter');
15
16      function set_KoffeeTux_prefilter()
17      {
18        global $template;
19
20        $template->set_prefilter('menubar', 'KoffeeTux_prefilter');
21      }
22
23      function KoffeeTux_prefilter($source, &$smarty)
24      {
25        $pattern = '#<dt>.*?</dt>#s';
26        $replacement = '<dt><img class="title" border="0" src="'.PHPWG_ROOT_PATH.'themes/KoffeeTux/images/{$id}.png" width="52" height="72"></dt>';
27
28        return preg_replace($pattern, $replacement, $source);
29      }
30    }
31?>
Note: See TracBrowser for help on using the repository browser.