/** * Perform boilerplate init actions * @return none */ public function init() { // Localize load_plugin_textdomain(csl18n(), false, $this->path() . '/' . self::$domain_path . '/'); // Load Core Components $this->shortcodes = new Cornerstone_Shortcode_Manager(); $this->customizer = new Cornerstone_Customizer_Manager(); // Nothing left to do if we don't have a user if (!is_user_logged_in()) { add_action('template_redirect', array($this->common, 'loginRedirect')); return; } // Load the rest of Cornerstone $this->includes($this->registry['builder']); // Load Components Cornerstone_Shortcode_Generator::init(); Cornerstone_User_Layout_Manager::init(); $this->admin = new Cornerstone_Admin(); $this->elements = new Cornerstone_Element_Manager(); $this->builder = new Cornerstone_Builder(); // Version Migration add_action('admin_init', array($this, 'versionMigration')); }