get_option( 'geoip' ) ) {
$nag_html .= '
' . sprintf( __( 'GeoIP collection is not enabled. Please go to setting page to enable GeoIP for getting more information and location (country) from the visitor.', 'wp-statistics' ), WP_Statistics_Admin_Pages::admin_url( 'settings', array( 'tab' => 'externals-settings' ) ) ) . '
';
}
if ( ! $WP_Statistics->get_option( 'disable_donation_nag', false ) ) {
$nag_html .= '';
}
// WP Statistics 10.0 had a bug which could corrupt the metabox display if the user re-ordered the widgets. Check to see if the meta data is corrupt and if so delete it.
$widget_order = get_user_meta( $WP_Statistics->user_id, 'meta-box-order_toplevel_page_wps_overview_page', true );
if ( is_array( $widget_order ) && count( $widget_order ) > 2 ) {
delete_user_meta( $WP_Statistics->user_id, 'meta-box-order_toplevel_page_wps_overview_page' );
}
// Add the about box here as metaboxes added on the actual page load cannot be closed.
add_meta_box( 'wps_about_postbox', sprintf( __( 'WP Statistics - Version %s', 'wp-statistics' ), WP_Statistics::$reg['version'] ), 'wp_statistics_generate_overview_postbox_contents', $WP_Statistics->menu_slugs['overview'], 'side', null, array( 'widget' => 'about' ) );
function wp_statistics_generate_overview_postbox_contents( $post, $args ) {
$widget = $args['args']['widget'];
$container_id = str_replace( '.', '_', $widget . '_postbox' );
echo '' . WP_Statistics_Admin_Pages::loading_meta_box() . '
';
wp_statistics_generate_widget_load_javascript( $widget, $container_id );
}
?>
'exclusions', 'users_online' => 'online' ) as $p_key => $p_link ) {
$page_urls[ 'wps_' . $p_key . '_more_button' ] = WP_Statistics_Admin_Pages::admin_url( $p_link );
}
?>