fields; } /** * Shortcut method to get the configuration of the single instance. */ public static function config() { return self::get_instance()->config; } /** * Shortcut method to get the translation strings */ public static function i18n() { $config = self::config(); $options = $config->get_all(); return $options['i18n']; } /** * Shortcut method to get the font registry. */ public static function fonts() { return self::get_instance()->font_registry; } /** * Constructor is private, should only be called by get_instance() */ private function __construct() { // Create our main objects //$this->font_registry = new FontRegistry(); $this->config = new Config(); $this->fields = new Fields(); $this->scripts = new ScriptRegistry(); $this->styles = new Styles(); // Hook into WP $init = new Builder(); } }