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

Revision 4990, 1.1 KB checked in by Swan, 10 years ago (diff)

Suppression de fichier".db" et modification du "themeconf.inc.php" du KoffeeTux.

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    if (!function_exists('set_koffeetux_prefilter'))
16    {
17      add_event_handler('init', 'set_KoffeeTux_prefilter');
18
19      function set_KoffeeTux_prefilter()
20      {
21        global $template;
22
23        $template->set_prefilter('menubar', 'KoffeeTux_prefilter');
24      }
25
26      function KoffeeTux_prefilter($source, &$smarty)
27      {
28        $pattern = '#<dt>.*?</dt>#s';
29        $replacement = '<dt><img class="title" border="0" src="'.PHPWG_ROOT_PATH.'template/yoga/theme/KoffeeTux/img/{$id}.png" width="52" height="72"></dt>';
30
31        return preg_replace($pattern, $replacement, $source);
32      }
33    }
34        ?>
Note: See TracBrowser for help on using the repository browser.