Gdn::themeManager PHP Method

themeManager() public static method

Get the plugin manager for the application.
public static themeManager ( ) : Gdn_ThemeManager
return Gdn_ThemeManager
    public static function themeManager()
    {
        return self::factory(self::AliasThemeManager);
    }

Usage Example

Example #1
0
 /**
  * Constructor
  *
  * @param string $TableName
  * @param string $style The style key to use.
  */
 public function __construct($TableName = '', $style = '')
 {
     if ($TableName != '') {
         $TableModel = new Gdn_Model($TableName);
         $this->setModel($TableModel);
     }
     if ($style === '') {
         $themeInfo = Gdn::themeManager()->getThemeInfo(Gdn::themeManager()->currentTheme());
         $style = val('ControlStyle', $themeInfo);
     }
     $this->setStyles($style);
     // Get custom error class
     $this->ErrorClass = c('Garden.Forms.InlineErrorClass', 'Error');
     parent::__construct();
 }
All Usage Examples Of Gdn::themeManager