/** * @access private * @static */ function install() { $me = new Embi_Installer(); $me->create_default_options(); }
} else { if (defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/' . basename(__FILE__))) { define('EMBI_PLUGIN_LOCATION', 'plugins', true); define('EMBI_PLUGIN_BASE_DIR', WP_PLUGIN_DIR, true); define('EMBI_PLUGIN_URL', WP_PLUGIN_URL, true); $textdomain_handler = 'load_plugin_textdomain'; } else { // No textdomain is loaded because we can't determine the plugin location. // No point in trying to add textdomain to string and/or localizing it. wp_die(__('There was an issue determining where Post Voting plugin is installed. Please reinstall.')); } } } $textdomain_handler('embi', false, EMBI_PLUGIN_SELF_DIRNAME . '/languages/'); require_once EMBI_PLUGIN_BASE_DIR . '/lib/class_embi_installer.php'; Embi_Installer::check(); require_once EMBI_PLUGIN_BASE_DIR . '/lib/template_tags.php'; // Widgets //require_once EMBI_PLUGIN_BASE_DIR . '/lib/class_embi_widget_name.php'; //add_action('widgets_init', create_function('', "register_widget('Embi_WidgetName');")); // ... if (is_admin()) { require_once EMBI_PLUGIN_BASE_DIR . '/lib/class_embi_admin_pages.php'; Embi_AdminPages::serve(); } /* if (!function_exists('is_supporter')) { function is_supporter () { return true; } }