Ignore:
Timestamp:
May 26, 2010, 4:14:57 AM (14 years ago)
Author:
repie38
Message:

nicer code for icon dir option, and add of montblancxl icon set

File:
1 edited

Legend:

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

    r6286 r6366  
    99*/
    1010
     11global $config;
     12$config = unserialize($conf['BlancmontXL']);//echo '<pre>'; print_r($config); echo '</pre>';
     13
    1114$themeconf = array(
    1215  'parent'      => 'default',
    1316  'local_head'  => 'local_head.tpl',
     17  'icon_dir'    => 'themes/blancmontxl/icon/'. $config['icon_dir']
    1418);
    15 
    16 global $conf;
    17 $config = unserialize($conf['BlancmontXL']);
    18 $themeconf['icon_dir']=$config['ico'] ? 'themes/montblancxl/icon' : 'themes/blancmontxl/icon' ;
    1919
    2020add_event_handler('loc_begin_page_header', 'set_bmxl_header');
     
    2222function set_bmxl_header()
    2323{
    24   global $page, $conf, $template;
    25 
    26   $config = unserialize($conf['BlancmontXL']);
     24  global $page, $config, $template;
    2725
    2826  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
Note: See TracChangeset for help on using the changeset viewer.