Last change
on this file since 28081 was
23569,
checked in by flop25, 11 years ago
|
adding a new option for the mouseover effect
|
File size:
965 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 |
---|
[23569] | 16 | 'orientation_option' => 'none', //none - max_heigth - big_landscape |
---|
| 17 | 'hover_action' => 'fadein', //fadein - fadeout - border - none |
---|
[11699] | 18 | ); |
---|
| 19 | |
---|
[11923] | 20 | $query = " |
---|
| 21 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
[13895] | 22 | VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');"; |
---|
[11699] | 23 | pwg_query($query); |
---|
| 24 | } |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | function theme_deactivate() |
---|
| 28 | { |
---|
| 29 | global $prefixeTable; |
---|
| 30 | |
---|
| 31 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="stripped_black_bloc" ;'; |
---|
| 32 | pwg_query($query); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.