source: extensions/stripped/admin/maintain.inc.php @ 12547

Last change on this file since 12547 was 12547, checked in by Zaphod, 13 years ago

version 2.0.0

File size: 1.3 KB
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        'themeStyle'                                    => 'black',
11        'hideMenu'                                              => true,
12        'animatedMenu'                                  => true,
13        'noLowercase'                                   => false,
14        'thumbFrame'                                    => true,
15        'showThumbLegend'                               => false,
16
17        'showTitleOnBrowsePath'                 => false,
18        'imageFrame'                                    => true,
19        'imageCaption'                                  => 'title',
20        'imageArrows'                                   => false,
21        'navArrows'                                             => true,
22        'defaultZoomSize'                               => 'fit',
23        'animatedTabs'                                  => true,
24        'infoTabAdminOnly'                              => false,
25        'defaultTab'                                    => "none",
26
27        'imageAutosize'                                 => true,
28        'imageAutosizeMargin'                   => 60,
29        'imageAutosizeMinHeight'                => 200,
30
31        'imagePreload'                                  => false,
32        'imagePreloadNb'                                => 5,
33        'imagePreloadThumbs'                    => false,
34        'imagePreloadHD'                                => false,
35
36        'marginContainer'                               => 30,
37        'paddingContainer'                              => 10,
38        'highResClickMode'                              => 'zoom',
39        'maxThumb'                                              => 15,
40      );
41     
42    $query = "
43INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
44VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');";
45
46    pwg_query($query);
47  }
48}
49
50function theme_deactivate()
51{
52  global $prefixeTable;
53
54  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped';";
55  pwg_query($query);
56}
57
58?>
Note: See TracBrowser for help on using the repository browser.