Last change
on this file since 17077 was
13895,
checked in by flop25, 13 years ago
|
features added :
-display a message if Stripped is disabled
|
File size:
813 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['stripped_black_bloc'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'color_main' => 'E6554F', |
---|
11 | 'column_width' => 170, |
---|
12 | 'thumbnail_width' => 150, |
---|
13 | 'every_x' => 20, |
---|
14 | 'starting_to' => 1, |
---|
15 | 'catthumb' => 'none' //none - same - all |
---|
16 | ); |
---|
17 | |
---|
18 | $query = " |
---|
19 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
20 | VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');"; |
---|
21 | pwg_query($query); |
---|
22 | } |
---|
23 | } |
---|
24 | |
---|
25 | function theme_deactivate() |
---|
26 | { |
---|
27 | global $prefixeTable; |
---|
28 | |
---|
29 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="stripped_black_bloc" ;'; |
---|
30 | pwg_query($query); |
---|
31 | } |
---|
32 | |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.