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