source: extensions/stripped_responsive/admin/maintain.inc.php @ 31946

Last change on this file since 31946 was 30103, checked in by JanisV, 10 years ago

Remove unused option

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