Ignore:
Timestamp:
Apr 29, 2010, 2:45:27 PM (14 years ago)
Author:
patdenice
Message:

feature 1502: Add $themeconfload_parent_css parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r5985 r5991  
    103103   * Load theme's parameters.
    104104   */
    105   function set_theme($root, $theme, $path)
     105  function set_theme($root, $theme, $path, $load_css=true)
    106106  {
    107107    $this->set_template_dir($root.'/'.$theme.'/'.$path);
     
    111111    if (isset($themeconf['parent']) and $themeconf['parent'] != $theme)
    112112    {
    113       $this->set_theme($root, $themeconf['parent'], $path);
    114     }
    115 
    116     $tpl_var = array('id' => $theme);
     113      if (!isset($themeconf['load_parent_css']))
     114      {
     115        $themeconf['load_parent_css'] = true;
     116      }
     117      $this->set_theme($root, $themeconf['parent'], $path, $themeconf['load_parent_css']);
     118    }
     119
     120    $tpl_var = array(
     121      'id' => $theme,
     122      'load_css' => $load_css,
     123    );
    117124    if (!empty($themeconf['local_head']) )
    118125    {
Note: See TracChangeset for help on using the changeset viewer.