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

Last change on this file since 17961 was 17961, checked in by Zaphod, 12 years ago

version 2.3.0

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