$v){ //switch_to_blog( $orig_blog_id ); // Post count $v['post_stats'] = wp_count_posts(); $v['post_count'] = $v['post_stats']->publish + $v['post_stats']->draft; // Page count $v['page_stats'] = wp_count_posts('page'); $v['page_count'] = $v['page_stats']->publish + $v['page_stats']->draft; $v['space_allowed'] = get_option( 'sitepad_allowed_space' ); $v['space_used'] = get_option( 'sitepad_used_space' ); // Total Stats $total_stats['post_count'] += $v['post_count']; $total_stats['page_count'] += $v['page_count']; $total_stats['space_used'] = $v['space_used']; //Show Total space used.. $total_stats['space_allowed'] = $v['space_allowed']; //Show Total space allowed.. $all_sites[$orig_blog_id] = $v; //} //r_print($all_sites); //switch_to_blog( $orig_blog_id ); if(get_site_option('upload_space_check_disabled') || empty($total_stats['space_allowed'])){ $show_allowed = 'Unlimited'; $total_stats['space_allowed'] = 1; }else{ if( $total_stats['space_used'] > 1000){ $show_allowed = ceil(round(number_format($total_stats['space_used'] / KB_IN_BYTES ), 2)); /* translators: Gigabytes */ $show_allowed .= __( 'GB' ); }else{ $show_allowed = ceil(round(number_format($total_stats['space_used'] ), 2)); /* translators: Megabytes */ $show_allowed .= __( 'MB' ); } $show_allowed .= '/'; if( $total_stats['space_allowed'] > 1000){ $show_allowed .= number_format( $total_stats['space_allowed'] / KB_IN_BYTES ); /* translators: Gigabytes */ $show_allowed .= __( 'GB' ); }else{ $show_allowed .= number_format( $total_stats['space_allowed'] ); /* translators: Megabytes */ $show_allowed .= __( 'MB' ); } } ?>
'.__('Sites').'
|
'.__('Pages').'
|
'.__('Posts').'
|
'.__('Media Usage').'
|