source: extensions/stripped_black_bloc/admin/maintain.inc.php @ 30691

Last change on this file since 30691 was 23569, checked in by flop25, 11 years ago

adding a new option for the mouseover effect

File size: 965 bytes
Line 
1<?php
2
3function theme_activate($id, $version, &$errors)
4{
5  global $prefixeTable, $conf;
6
7  if (!isset($conf['stripped_black_bloc']))
8  {
9    $config = array(
10  'color_main'            => 'E6554F',
11  'column_width'            => 170,
12  'thumbnail_width'           => 150,
13        'every_x'                                               => 20,
14        'starting_to'                                           => 1,
15  'catthumb'         => 'none', //none - same - all
16  'orientation_option'         => 'none', //none - max_heigth - big_landscape
17  'hover_action'         => 'fadein', //fadein - fadeout - border - none
18      );
19     
20    $query = "
21INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
22VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');";
23    pwg_query($query);
24  }
25}
26
27function 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.