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()) {
    require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_admin_form_renderer.php';
    require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_admin_pages.php';
    require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_contextual_help.php';
    Wdgpo_AdminPages::serve();
    Wdgpo_ContextualHelp::serve();
} else {
    require_once WDGPO_PLUGIN_BASE_DIR . '/lib/class_wdgpo_public_pages.php';
    Wdgpo_PublicPages::serve();
}
 /**
  * Main entry point.
  *
  * @static
  */
 function serve()
 {
     $me = new Wdgpo_PublicPages();
     $me->add_hooks();
 }