1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['stripped'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'hideMenu' => true, |
---|
11 | 'animatedMenu' => true, |
---|
12 | 'animatedTabs' => true, |
---|
13 | 'replaceActionIcons' => true, |
---|
14 | 'noLowercase' => false, |
---|
15 | 'showThumbLegend' => false, |
---|
16 | 'showTitleOnBrowsePath' => false, |
---|
17 | 'showDescriptionInsteadOfTitle' => false, |
---|
18 | 'useNavigationArrows' => true, |
---|
19 | 'infoTabAdminOnly' => false, |
---|
20 | 'imageAutosize' => true, |
---|
21 | 'imageAutosizeTitle' => true, |
---|
22 | 'imageAutosizeMargin' => 60, |
---|
23 | 'imageAutosizeMinHeight' => 200, |
---|
24 | 'navThumbsFade' => 150, |
---|
25 | 'marginContainer' => 30, |
---|
26 | 'paddingContainer' => 10, |
---|
27 | 'defaultZoomSize' => 'full', |
---|
28 | 'highResClickMode' => 'zoom', |
---|
29 | ); |
---|
30 | |
---|
31 | $query = " |
---|
32 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
33 | VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');"; |
---|
34 | |
---|
35 | pwg_query($query); |
---|
36 | } |
---|
37 | } |
---|
38 | |
---|
39 | function theme_deactivate() |
---|
40 | { |
---|
41 | global $prefixeTable; |
---|
42 | |
---|
43 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped' LIMIT 1;"; |
---|
44 | pwg_query($query); |
---|
45 | } |
---|
46 | |
---|
47 | ?> |
---|