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

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

version 2.2.1 update

File size: 1.6 KB
RevLine 
[9964]1<?php
2
3function theme_activate($id, $version, &$errors)
4{
5  global $prefixeTable, $conf;
6
7  if (!isset($conf['stripped']))
8  {
9    $config = array(
[14687]10        'paramVersion'                                  => '2.2',
[12960]11       
[12547]12        'themeStyle'                                    => 'black',
[9964]13        'hideMenu'                                              => true,
14        'animatedMenu'                                  => true,
[10688]15        'noLowercase'                                   => false,
[12960]16        'albumType'                                             => 'small',
17        'albumFrame'                                    => true,
[12547]18        'thumbFrame'                                    => true,
[11059]19        'showThumbLegend'                               => false,
[12547]20
[9964]21        'showTitleOnBrowsePath'                 => false,
[12547]22        'imageFrame'                                    => true,
23        'imageCaption'                                  => 'title',
24        'imageArrows'                                   => false,
25        'navArrows'                                             => true,
26        'defaultZoomSize'                               => 'fit',
27        'animatedTabs'                                  => true,
[9964]28        'infoTabAdminOnly'                              => false,
[11982]29        'defaultTab'                                    => "none",
[12547]30
[14687]31        'albumSize'                                             => "thumb",
32        'thumbSize'                                             => "thumb",
[16148]33        'imageSize'                                             => "medium",
34        'hdSize'                                                => "xxlarge",
[14687]35       
[9964]36        'imageAutosize'                                 => true,
37        'imageAutosizeMargin'                   => 60,
38        'imageAutosizeMinHeight'                => 200,
[12547]39
[12153]40        'imagePreload'                                  => false,
41        'imagePreloadNb'                                => 5,
42        'imagePreloadThumbs'                    => false,
43        'imagePreloadHD'                                => false,
[12547]44
[9964]45        'marginContainer'                               => 30,
46        'paddingContainer'                              => 10,
47        'highResClickMode'                              => 'zoom',
[12547]48        'maxThumb'                                              => 15,
[9964]49      );
50     
[11833]51    $query = "
52INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
53VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');";
[9964]54
55    pwg_query($query);
56  }
57}
58
59function theme_deactivate()
60{
61  global $prefixeTable;
62
[11840]63  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped';";
[9964]64  pwg_query($query);
65}
66
67?>
Note: See TracBrowser for help on using the repository browser.