} else {
        if (defined('WP_PLUGIN_URL') && defined('WP_PLUGIN_DIR') && file_exists(WP_PLUGIN_DIR . '/' . basename(__FILE__))) {
            define('WDGPO_PLUGIN_LOCATION', 'plugins', true);
            define('WDGPO_PLUGIN_BASE_DIR', WP_PLUGIN_DIR, true);
            define('WDGPO_PLUGIN_URL', str_replace('http://', @$_SERVER["HTTPS"] == 'on' ? 'https://' : 'http://', 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 Google+ plugin is installed. Please reinstall.'));
        }
    }
}
$textdomain_handler('wdgpo', false, WDGPO_PLUGIN_SELF_DIRNAME . '/languages/');
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_installer.php';
Wdgpo_Installer::check();
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_logger.php';
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_options.php';
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_codec.php';
Wdgpo_Options::populate();
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_google_auth.php';
Wdgpo_GoogleAuth::init();
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_scheduled_importer.php';
// Widgets
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wpgpo_widget.php';
add_action('widgets_init', create_function('', "register_widget('Wdgpo_WidgetPlusone');"));
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wpgpo_gplus_page_widget.php';
add_action('widgets_init', create_function('', "register_widget('Wdgpo_Gplus_WidgetPage');"));
require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wpgpo_gplus_activities_widget.php';
add_action('widgets_init', create_function('', "register_widget('Wdgpo_Gplus_WidgetActivities');"));
if (is_admin()) {
 /**
  * @private
  * @static
  */
 function install()
 {
     $me = new Wdgpo_Installer();
     $me->create_default_options();
 }