Ignore:
Timestamp:
Jan 14, 2013, 8:07:25 PM (11 years ago)
Author:
flop25
Message:

optimal size
switchlanguage style

todo lang file to spread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/hr_os_xl/themeconf.inc.php

    r16380 r20153  
    1616  'activable'     => true,
    1717);
    18   if (!isset($conf['hr_os_xl']))
    19   {
    20     $config = array(
    21       'home'       => true,
    22       'categories' => true,
    23       'picture'    => false,
    24       'other'      => true,
    25       );
    26      
    27     $query = '
     18//// [update check]
     19if (!isset($conf['hr_os_xl']))
     20{
     21  $config = array(
     22    'home'       => true,
     23    'categories' => true,
     24    'picture'    => false,
     25    'other'      => true,
     26    );
     27   
     28  $query = '
    2829INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    2930VALUES ("hr_os_xl" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_os_xl parameters");';
    3031
     32  pwg_query($query);
     33  load_conf_from_db();
     34}
     35if (isset($conf['derivatives']))  {   
     36  $new = @unserialize($conf['derivatives']);
     37  if(!isset($new['d']['Optimal']))
     38  {
     39    $new['d']['Optimal']=ImageStdParams::get_custom(900,9999);
     40    $query = '
     41        UPDATE '.CONFIG_TABLE.'
     42        SET value="'.addslashes(serialize($new)).'"
     43        WHERE param = "derivatives"
     44        LIMIT 1';
    3145    pwg_query($query);
    3246    load_conf_from_db();
    3347  }
     48}
     49//// [/update check]
    3450
    3551// thx to P@t
     
    117133
    118134/************************************ picture.tpl ************************************/
    119 add_event_handler('render_element_content', 'hr_os_xl_picture',  EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );
     135//add_event_handler('render_element_content', 'hr_os_xl_picture',  EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );
    120136function hr_os_xl_picture($content, $element_info)
    121137{
Note: See TracChangeset for help on using the changeset viewer.