Ignore:
Timestamp:
Apr 4, 2012, 5:47:23 PM (9 years ago)
Author:
flop25
Message:

updated for 2.4 :
-deleted timthumb
-deleted config for auto-generation

features added :
-representative thumbs can be big : always, as the "Every x thumb" config or never

bug corrected :
-big thumbs didn't have rounded corners

Translations uk_UA needed for new keys

File:
1 edited

Legend:

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

    r12048 r13894  
    1313  'every_x'           => 20,
    1414  'starting_to'           => 1,
    15   'thumbnail'         => 'piwigo' //generated - auto - piwigo
    16       );
    17      $query = "
     15  'catthumb'         => 'none' //none - same - all
     16  );
     17  $query = "
    1818INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
    1919VALUES ('stripped_black_bloc' , '".pwg_db_real_escape_string(serialize($config))."' , 'color_main#column_width#thumbnail_width#thumbnail(generated - auto - piwigo)');";
    20      
    21 
    22     pwg_query($query);
    23     load_conf_from_db();
     20  pwg_query($query);
     21  load_conf_from_db();
    2422}
    2523elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=6)
     
    3129  'every_x'           => 20,
    3230  'starting_to'           => 1,
    33   'thumbnail'         => 'piwigo' //generated - auto - piwigo
    34       );
    35      
    36 
     31  'catthumb'         => 'none' //none - same - all
     32  );
    3733  conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
    38     load_conf_from_db();
     34  load_conf_from_db();
     35}
     36elseif ($conff=unserialize($conf['stripped_black_bloc']) and ( !isset($conff['catthumb']) or empty($conff['catthumb'])) )
     37{
     38  $config = array(
     39  'color_main'            => $conff['color_main'],
     40  'column_width'            => $conff['column_width'],
     41  'thumbnail_width'           => $conff['thumbnail_width'],
     42  'every_x'           => $conff['every_x'],
     43  'starting_to'           => $conff['starting_to'],
     44  'catthumb'         => 'none' //none - same - all
     45  );
     46  conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
     47  load_conf_from_db();
    3948}
    4049?>
Note: See TracChangeset for help on using the changeset viewer.