/** * load_textdomain function * * Loads plugin text domain * * @return void **/ function load_textdomain() { if (self::$_load_domain === FALSE) { load_plugin_textdomain(AI1EC_PLUGIN_NAME, false, AI1EC_LANGUAGE_PATH); self::$_load_domain = TRUE; } }
$ai1ec_requirejs_controller->set_settings($ai1ec_settings); // Inject calendar controller $ai1ec_requirejs_controller->set_events_helper($ai1ec_events_helper); // Se the themes controller $ai1ec_requirejs_controller->set_ai1ec_themes_controller($ai1ec_themes_controller); // ================================== // = Add the hook to render the js = // ================================== if (isset($_GET[Ai1ec_Requirejs_Controller::WEB_WIDGET_GET_PARAMETER])) { add_action('template_redirect', array($ai1ec_requirejs_controller, 'render_web_widget'), 20); } if (isset($_GET[Ai1ec_Requirejs_Controller::LOAD_JS_PARAMETER])) { add_action('wp_loaded', array($ai1ec_requirejs_controller, 'render_js'), 20); } /** * Configure your meta box */ $config = array('id' => 'demo_meta_box', 'title' => 'Demo Meta Box', 'pages' => array('events_categories'), 'context' => 'normal', 'fields' => array(), 'use_with_theme' => false); /* * Initiate your meta box */ $ai1ec_tax_meta_class = new Ai1ec_Tax_Meta_Class($config); $ai1ec_rss_feed = new Ai1ec_Rss_Feed_Controller(); // ========================================================================== // = All app initialization is done in Ai1ec_App_Controller::__construct(). = // ========================================================================== $ai1ec_app_controller = Ai1ec_App_Controller::get_instance($preview_mode); // ============================================================================= // = Delay router initialization until permalinks are set | see App_Controller = // ============================================================================= global $ai1ec_router;