root/extensions/stripped/admin/maintain.inc.php @ 12153

Revision 12153, 1.3 KB (checked in by Zaphod, 20 months ago)

version 1.5.0

Line 
1<?php
2
3function 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        'defaultTab'                                    => "none",
21        'imageAutosize'                                 => true,
22        'imageAutosizeTitle'                    => true,
23        'imageAutosizeMargin'                   => 60,
24        'imageAutosizeMinHeight'                => 200,
25        'imagePreload'                                  => false,
26        'imagePreloadNb'                                => 5,
27        'imagePreloadThumbs'                    => false,
28        'imagePreloadHD'                                => false,
29        'navThumbsFade'                                 => 150,
30        'marginContainer'                               => 30,
31        'paddingContainer'                              => 10,
32        'defaultZoomSize'                               => 'fit',
33        'highResClickMode'                              => 'zoom',
34      );
35     
36    $query = "
37INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
38VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');";
39
40    pwg_query($query);
41  }
42}
43
44function theme_deactivate()
45{
46  global $prefixeTable;
47
48  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped';";
49  pwg_query($query);
50}
51
52?>
Note: See TracBrowser for help on using the browser.