themes
[ class tree: themes ] [ index: themes ] [ all elements ]

Source for file mod_switch_theme.php

Documentation is available at mod_switch_theme.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package themes
  5.  * @subpackage modules
  6.  */
  7.  
  8. /**
  9.  * Setup
  10.  */
  11. global $gBitThemes;
  12. $change_theme $gBitSystem->getConfig('users_themes');
  13. $_template->tpl_vars['change_theme'new Smarty_variable$change_theme);
  14. $style $gBitThemes->getStyle();
  15.  
  16. if$change_theme == 'y' {
  17.     if ($gBitUser->isValid(&& $gBitSystem->getConfig('users_preferences'== 'y'{
  18.         $userStyle $gBitUser->getPreference('theme');
  19.         $style empty($userStyle$style $userStyle;
  20.     }
  21.     if (isset($_COOKIE['bit-theme'])) {
  22.         $style $_COOKIE['bit-theme'];
  23.     }
  24.  
  25.     $styles $gBitThemes->getStylesNULLTRUE );
  26.     $stylesList $gBitThemes->getStyles();
  27.  
  28.     $_template->tpl_vars['styleslist'new Smarty_variable($stylesList);
  29.     if(isset($style)){
  30.         $_template->tpl_vars['style'new Smarty_variable$style);
  31.     }
  32. }
  33. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:12 +0000 by phpDocumentor 1.5.0-lsces