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

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

Initial commit

  • Property svn:executable set to *
File size: 1.7 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'                                    => 'black',
13        'hideMenu'                                              => true,
14        'animatedMenu'                                  => true,
15        'noLowercase'                                   => false,
16        'albumType'                                             => 'responsive',
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        'forceLightboxOn'                               => false,
28        'defaultZoomSize'                               => 'fit',
29        'animatedTabs'                                  => true,
30        'infoTabAdminOnly'                              => false,
31        'defaultTab'                                    => "none",
32
33        'albumSize'                                             => "thumb",
34        'thumbSize'                                             => "thumb",
35        'imageSize'                                             => "medium",
36        'hdSize'                                                => "xxlarge",
37       
38        'imageAutosize'                                 => true,
39        'imageAutosizeMargin'                   => 60,
40        'imageAutosizeMinHeight'                => 200,
41
42        'imagePreload'                                  => false,
43        'imagePreloadNb'                                => 5,
44        'imagePreloadThumbs'                    => false,
45        'imagePreloadHD'                                => false,
46
47        'marginContainer'                               => 30,
48        'paddingContainer'                              => 10,
49        'highResClickMode'                              => 'zoom',
50        'maxThumb'                                              => 15,
51      );
52     
53    $query = "
54INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
55VALUES ('stripped_responsive' , '".pwg_db_real_escape_string(serialize($config))."' , 'Responsive stripped theme parameters');";
56
57    pwg_query($query);
58  }
59}
60
61function theme_deactivate()
62{
63  global $prefixeTable;
64
65  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped_responsive';";
66  pwg_query($query);
67}
68
69?>
Note: See TracBrowser for help on using the repository browser.