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