'."\n";
return $content;
}
/**
* Add WP-UserOnline General Stats To WP-Stats Page
*
* @param string $content
*
* @access public
*
* @return string
*/
public function page_general_stats( $content ) {
$stats_display = get_option( 'stats_display' );
$str = _n(
'%s user online now.',
'%s users online now.',
get_users_online_count(), 'wp-useronline'
);
if ( $stats_display['useronline'] === 1 )
$content .=
html( 'p', html( 'strong', __( 'WP-UserOnline', 'wp-useronline' ) ) )
.html( 'ul',
html( 'li', sprintf( $str, number_format_i18n( get_users_online_count() ) ) )
.html( 'li', UserOnline_Template::format_most_users() )
);
return $content;
}
}
UserOnline_WpStats::get_instance();