Last change
on this file since 17828 was
17828,
checked in by flop25, 12 years ago
|
adding a new option : restrict heigth by using the 'thumbnail width' parameter
auto managment of pano photos : set pano on three columns
Thx to JJF and his work on White S&C
ToDo : medium pano on 2 columns
|
File size:
869 bytes
|
Rev | Line | |
---|
[11699] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function theme_activate($id, $version, &$errors) |
---|
| 4 | { |
---|
| 5 | global $prefixeTable, $conf; |
---|
| 6 | |
---|
| 7 | if (!isset($conf['stripped_black_bloc'])) |
---|
| 8 | { |
---|
| 9 | $config = array( |
---|
[12048] | 10 | 'color_main' => 'E6554F', |
---|
| 11 | 'column_width' => 170, |
---|
| 12 | 'thumbnail_width' => 150, |
---|
| 13 | 'every_x' => 20, |
---|
| 14 | 'starting_to' => 1, |
---|
[17828] | 15 | 'catthumb' => 'none', //none - same - all |
---|
| 16 | 'portrait_limitation' => 'none' //none - yes |
---|
[11699] | 17 | ); |
---|
| 18 | |
---|
[11923] | 19 | $query = " |
---|
| 20 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
[13895] | 21 | VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');"; |
---|
[11699] | 22 | pwg_query($query); |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function theme_deactivate() |
---|
| 27 | { |
---|
| 28 | global $prefixeTable; |
---|
| 29 | |
---|
| 30 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="stripped_black_bloc" ;'; |
---|
| 31 | pwg_query($query); |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.