[29449] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function 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 | |
---|
[29453] | 12 | 'themeStyle' => 'original', |
---|
[29449] | 13 | 'noLowercase' => false, |
---|
[29453] | 14 | 'albumFrame' => false, |
---|
| 15 | 'thumbFrame' => false, |
---|
[29449] | 16 | 'showThumbLegend' => false, |
---|
[29453] | 17 | 'menuOnRight' => true, |
---|
[29449] | 18 | |
---|
| 19 | 'showTitleOnBrowsePath' => false, |
---|
| 20 | 'imageFrame' => true, |
---|
| 21 | 'imageCaption' => 'title', |
---|
[29476] | 22 | 'imageArrows' => true, |
---|
[29449] | 23 | 'HDlightbox' => true, |
---|
| 24 | 'forceLightboxOn' => false, |
---|
| 25 | 'defaultZoomSize' => 'fit', |
---|
| 26 | 'animatedTabs' => true, |
---|
| 27 | 'infoTabAdminOnly' => false, |
---|
| 28 | 'defaultTab' => "none", |
---|
| 29 | |
---|
| 30 | 'thumbSize' => "thumb", |
---|
[29476] | 31 | 'imageSize' => "large", |
---|
[29449] | 32 | 'hdSize' => "xxlarge", |
---|
| 33 | |
---|
| 34 | 'imageAutosize' => true, |
---|
[29476] | 35 | 'imageAutosizeMargin' => 40, |
---|
[29449] | 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 = " |
---|
| 50 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
| 51 | VALUES ('stripped_responsive' , '".pwg_db_real_escape_string(serialize($config))."' , 'Responsive stripped theme parameters');"; |
---|
| 52 | |
---|
| 53 | pwg_query($query); |
---|
| 54 | } |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | function theme_deactivate() |
---|
| 58 | { |
---|
| 59 | global $prefixeTable; |
---|
| 60 | |
---|
| 61 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='stripped_responsive';"; |
---|
| 62 | pwg_query($query); |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | ?> |
---|