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

Last change on this file since 11823 was 11823, checked in by flop25, 13 years ago

main color (not grey) in config
header, elements of footer, elements of tittlebar and the menubar in "bubbles"
created 2 new classes : two_columns, one_column
width corrected

File size: 759 bytes
RevLine 
[11699]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(
[11823]10        'color_main'                                            => 'E6554F',
[11699]11        'column_width'                                          => 170,
12        'thumbnail_width'                                               => 150,
13        'thumbnail'                                     => 'piwigo' //generated - auto - piwigo
14      );
15     
16    $query = '
17INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
[11823]18VALUES ("stripped_black_bloc" , "'.pwg_db_real_escape_string(serialize($config)).'" , "color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)");';
[11699]19
20    pwg_query($query);
21  }
22}
23
24function theme_deactivate()
25{
26  global $prefixeTable;
27
28  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="stripped_black_bloc" ;';
29  pwg_query($query);
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.