Ignore:
Timestamp:
Sep 9, 2012, 4:36:02 PM (12 years ago)
Author:
flop25
Message:

adding a new option : restrict heigth by using the 'thumbnail width' parameter
auto managment of pano photos : set pano on three columns
Thx to JJF and his work on White S&C
ToDo : medium pano on 2 columns

File:
1 edited

Legend:

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

    r13895 r17828  
    1313  'every_x'           => 20,
    1414  'starting_to'           => 1,
    15   'catthumb'         => 'none' //none - same - all
     15  'catthumb'         => 'none', //none - same - all
     16  'portrait_limitation'         => 'none' //none - yes
    1617  );
    1718  $query = "
     
    2122  load_conf_from_db();
    2223}
    23 elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=6)
     24elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=7)
    2425{
     26  $conff=unserialize($conf['stripped_black_bloc']);
    2527  $config = array(
    26   'color_main'            => 'E6554F',
    27   'column_width'            => 170,
    28   'thumbnail_width'           => 150,
    29   'every_x'           => 20,
    30   'starting_to'           => 1,
    31   'catthumb'         => 'none' //none - same - all
    32   );
    33   conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
    34   load_conf_from_db();
    35 }
    36 elseif ($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
     28  'color_main'            => (isset($conff['color_main'])) ? $conff['color_main'] :'E6554F',
     29  'column_width'            => (isset($conff['column_width'])) ? $conff['column_width'] :170,
     30  'thumbnail_width'           => (isset($conff['thumbnail_width'])) ? $conff['thumbnail_width'] :150,
     31  'every_x'           => (isset($conff['every_x'])) ? $conff['every_x'] : 20,
     32  'starting_to'           => (isset($conff['starting_to'])) ? $conff['starting_to'] :1,
     33  'catthumb'         => (isset($conff['catthumb'])) ? $conff['catthumb'] :'none', //none - same - all
     34  'portrait_limitation'         => (isset($conff['portrait_limitation'])) ? $conff['portrait_limitation'] :'none' //none - yes
    4535  );
    4636  conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config)));
Note: See TracChangeset for help on using the changeset viewer.