} $textdomain_handler('wdeb', false, WDEB_PLUGIN_SELF_DIRNAME . '/languages/'); define('WDEB_LOGO_URL', WDEB_PLUGIN_URL . '/img/logo.png', true); define('WDEB_LANDING_PAGE', 'index.php', true); require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_installer.php'; Wdeb_Installer::check(); require_once WDEB_PLUGIN_BASE_DIR . '/lib/wdeb_callbacks.php'; require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_options.php'; //Wdeb_Options::populate(); // Deprecated require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_plugins_handler.php'; Wdeb_PluginsHandler::init(); add_action('wp_logout', 'wdeb_reset_autostart'); if (is_admin()) { require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_admin_form_renderer.php'; require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_admin_pages.php'; require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_tooltips.php'; require_once WDEB_PLUGIN_BASE_DIR . '/lib/class_wdeb_wizard.php'; Wdeb_AdminPages::serve(); Wdeb_Tooltips::serve(); Wdeb_Wizard::serve(); // Setup dashboard notices if (file_exists(WDEB_PLUGIN_BASE_DIR . '/lib/wpmudev-dash-notification.php')) { global $wpmudev_notices; if (!is_array($wpmudev_notices)) { $wpmudev_notices = array(); } $wpmudev_notices[] = array('id' => 133, 'name' => 'Easy Blogging', 'screens' => array('toplevel_page_wdeb-network', 'toplevel_page_wdeb', 'easy-blogging_page_wdeb_wizard-network', 'easy-blogging_page_wdeb_wizard', 'easy-blogging_page_wdeb_help-network', 'easy-blogging_page_wdeb_help', 'easy-blogging_page_wdeb_plugins-network', 'easy-blogging_page_wdeb_plugins')); require_once WDEB_PLUGIN_BASE_DIR . '/lib/wpmudev-dash-notification.php'; } // End dash bootstrap }
/** * Main entry point. * * @static */ function serve() { $me = new Wdeb_Tooltips(); $me->add_hooks(); }