Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $conf; |
---|
6 | |
---|
7 | if (!isset($conf['Slimi'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'lytebox_slimi' => '1', |
---|
11 | 'bg_slimi' => '#FFA800', |
---|
12 | 'bd_slimi' => '#4F4F4F', |
---|
13 | 'title_slimi' => '#4F4F4F', |
---|
14 | 'carousel_speed' => '3' |
---|
15 | ); |
---|
16 | |
---|
17 | $query = " |
---|
18 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
19 | VALUES ('Slimi' , '".pwg_db_real_escape_string(serialize($config))."' , 'Slimi theme parameters');"; |
---|
20 | |
---|
21 | pwg_query($query); |
---|
22 | } |
---|
23 | } |
---|
24 | |
---|
25 | function theme_deactivate() |
---|
26 | { |
---|
27 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='Slimi';"; |
---|
28 | pwg_query($query); |
---|
29 | } |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.