Ignore:
Timestamp:
Apr 4, 2012, 6:16:35 PM (13 years ago)
Author:
flop25
Message:

features added :
-display a message if Stripped is disabled

Location:
extensions/stripped_black_bloc/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/admin/admin.inc.php

    r13894 r13895  
    3939  load_conf_from_db();
    4040}
     41if(!isset($conf['stripped']))
     42{
     43  array_push($page['errors'], l10n('The parent-theme Stripped need to be enabled in order to use its parameters'));
     44}
    4145
    4246$template->set_filenames(array(
  • extensions/stripped_black_bloc/admin/maintain.inc.php

    r12048 r13895  
    1313        'every_x'                                               => 20,
    1414        'starting_to'                                           => 1,
    15  'thumbnail'         => 'piwigo' //generated - auto - piwigo
     15  'catthumb'         => 'none' //none - same - all
    1616      );
    1717     
    1818    $query = "
    1919INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
    20 VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)');";
     20VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');";
    2121    pwg_query($query);
    2222  }
  • extensions/stripped_black_bloc/admin/upgrade.inc.php

    r13894 r13895  
    1717  $query = "
    1818INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
    19 VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)');";
     19VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#catthumb(none - same - all)');";
    2020  pwg_query($query);
    2121  load_conf_from_db();
Note: See TracChangeset for help on using the changeset viewer.