Last change
on this file since 23251 was
23251,
checked in by flop25, 11 years ago
|
feature:2924
adding 3 options for the default behaviour of the panels
ToDo lang files
|
File size:
717 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['elegant'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'p_main_menu' => 'on',//on - off - disabled |
---|
11 | 'p_pict_descr' => 'on',//on - off - disabled |
---|
12 | 'p_pict_comment' => 'off',//on - off - disabled |
---|
13 | ); |
---|
14 | |
---|
15 | $query = " |
---|
16 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
17 | VALUES ('elegant' , '".pwg_db_real_escape_string(serialize($config))."' , 'p_main_menu#p_pict_descr#p_pict_comment');"; |
---|
18 | pwg_query($query); |
---|
19 | } |
---|
20 | } |
---|
21 | |
---|
22 | function theme_delete() |
---|
23 | { |
---|
24 | global $prefixeTable; |
---|
25 | |
---|
26 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="elegant" ;'; |
---|
27 | pwg_query($query); |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.