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

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

Improve nav arrows

  • 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        'albumSize'                                             => "thumb",
31        'thumbSize'                                             => "thumb",
32        'imageSize'                                             => "large",
33        'hdSize'                                                => "xxlarge",
34       
35        'imageAutosize'                                 => true,
36        'imageAutosizeMargin'                   => 40,
37        'imageAutosizeMinHeight'                => 200,
38
39        'imagePreload'                                  => false,
40        'imagePreloadNb'                                => 5,
41        'imagePreloadThumbs'                    => false,
42        'imagePreloadHD'                                => false,
43
44        'marginContainer'                               => 30,
45        'paddingContainer'                              => 10,
46        'highResClickMode'                              => 'zoom',
47        'maxThumb'                                              => 15,
48      );
49     
50    $query = "
51INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
52VALUES ('stripped_responsive' , '".pwg_db_real_escape_string(serialize($config))."' , 'Responsive stripped theme parameters');";
53
54    pwg_query($query);
55  }
56}
57
58function theme_deactivate()
59{
60  global $prefixeTable;
61
62  $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped_responsive';";
63  pwg_query($query);
64}
65
66?>
Note: See TracBrowser for help on using the repository browser.