Changeset 29389 for trunk/include


Ignore:
Timestamp:
Sep 3, 2014, 11:02:07 AM (10 years ago)
Author:
plg
Message:

feature 3133: add colorscheme parameter for themes. This way we can use the
appropriate CSS for selectize (and other things)

File:
1 edited

Legend:

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

    r28917 r29389  
    178178   * @param bool $load_local_head
    179179   */
    180   function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true)
     180  function set_theme($root, $theme, $path, $load_css=true, $load_local_head=true, $colorscheme='dark')
    181181  {
    182182    $this->set_template_dir($root.'/'.$theme.'/'.$path);
     
    204204    }
    205205    $themeconf['id'] = $theme;
     206
     207    if (!isset($themeconf['colorscheme']))
     208    {
     209      $themeconf['colorscheme'] = $colorscheme;
     210    }
     211   
    206212    $this->smarty->append('themes', $tpl_var);
    207213    $this->smarty->append('themeconf', $themeconf, true);
Note: See TracChangeset for help on using the changeset viewer.