Ticket #20946: 20946.first-pass.diff
File 20946.first-pass.diff, 7.6 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/dashboard.php
408 408 } 409 409 410 410 function wp_network_dashboard_right_now() { 411 412 if ( ! wp_is_large_network('users') ) 413 $c_users = get_user_count(); 414 else 415 $c_users = __( '10,000+' ); 416 417 if ( ! wp_is_large_network('sites') ) 418 $c_blogs = get_blog_count(); 419 else 420 $c_blogs = __( '10,000+' ); 421 422 $c_plugins = count( get_plugins() ); 423 $c_themes = count( wp_get_themes() ); 424 425 echo "\n\t".'<div class="table table_content">'; 426 echo "\n\t".'<p class="sub">' . __('Network Totals') . '</p>'."\n\t".'<table>'; 427 echo "\n\t".'<tr class="first">'; 428 429 // Sites 430 $num = number_format_i18n( $c_blogs ); 431 $text = _n( 'Site', 'Sites', $c_blogs ); 432 $sites_url = network_admin_url('sites.php'); 433 $num = '<a href="' . $sites_url . '">' . $num . '</a>'; 434 $text = '<a href=' . $sites_url . '>' . $text . '</a>'; 435 echo '<td class="first b b_sites">' . $num . '</td>'; 436 echo '<td class="t sites">' . $text . '</td>'; 437 438 echo '</tr><tr>'; 439 440 // Users 441 $num = number_format_i18n( $c_users ); 442 $text = _n( 'User', 'Users', $c_users ); 443 $count_url = network_admin_url('users'); 444 $num = '<a href="' . $count_url . '">' . $num . '</a>'; 445 $text = '<a href="' . $count_url . '">' . $text . '</a>'; 446 echo '<td class="first b b-users">' . $num . '</td>'; 447 echo '<td class="t users">' . $text . '</td>'; 448 449 echo '</tr><tr>'; 450 451 // Themes 452 $num = number_format_i18n( $c_themes ); 453 $text = _n( 'Theme', 'Themes', $c_themes ); 454 $count_url = network_admin_url('themes.php'); 455 $num = '<a href="' . $count_url . '">' . $num . '</a>'; 456 $text = '<a href="' . $count_url . '">' . $text . '</a>'; 457 echo '<td class="first b b-themes">' . $num . '</td>'; 458 echo '<td class="t themes">' . $text . '</td>'; 459 460 echo '</tr><tr>'; 461 462 // Plugins 463 $num = number_format_i18n( $c_plugins ); 464 $text = _n( 'Plugin', 'Plugins', $c_plugins ); 465 $count_url = network_admin_url('plugins.php'); 466 $num = '<a href"' . $count_url . '">' . $num . '</a>'; 467 $text = '<a href="' . $count_url . '">' . $text . '</a>'; 468 echo '<td class="first b b-plugins">' . $num . '</td>'; 469 echo '<td class="t plugins">' . $text . '</td>'; 470 471 echo '</tr>'; 472 473 do_action( 'mu_right_now_network_table_end' ); 474 echo "\n\t</table>\n\t</div>"; 475 476 echo "\n\t".'<div class="table table_tools">'; 477 echo "\n\t".'<p class="sub">' . __( 'Tools' ) . '</p>'."\n\t".'<table>'; 478 echo "\n\t".'<tr class="first">'; 479 411 480 $actions = array(); 412 481 if ( current_user_can('create_sites') ) 413 482 $actions['create-site'] = '<a href="' . network_admin_url('site-new.php') . '">' . __( 'Create a New Site' ) . '</a>'; 414 483 if ( current_user_can('create_users') ) 415 484 $actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __( 'Create a New User' ) . '</a>'; 416 485 417 $c_users = get_user_count();418 $c_blogs = get_blog_count();419 420 $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );421 $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );422 423 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );424 425 486 if ( $actions ) { 426 487 echo '<ul class="subsubsub">'; 427 488 foreach ( $actions as $class => $action ) { … … 430 491 echo implode( " |</li>\n", $actions ) . "</li>\n"; 431 492 echo '</ul>'; 432 493 } 494 495 echo '</tr><tr>' 433 496 ?> 434 <br class="clear" />435 497 436 <p class="youhave"><?php echo $sentence; ?></p>437 <?php do_action( 'wpmuadminresult', '' ); ?>438 439 498 <form action="<?php echo network_admin_url('users.php'); ?>" method="get"> 440 499 <p> 441 500 <input type="search" name="s" value="" size="30" autocomplete="off" /> … … 443 502 </p> 444 503 </form> 445 504 505 </tr><tr> 506 446 507 <form action="<?php echo network_admin_url('sites.php'); ?>" method="get"> 447 508 <p> 448 509 <input type="search" name="s" value="" size="30" autocomplete="off" /> 449 510 <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?> 450 511 </p> 451 512 </form> 513 514 </tr> 452 515 <?php 516 do_action( 'mu_right_now_table_end' ); 517 echo "\n\t</table>\n\t</div>"; 518 519 echo "\n\t".'<div class="versions">'; 520 521 // WordPress Version 522 update_right_now_message(); 523 524 echo "\n\t".'<br class="clear" /></div>'; 453 525 do_action( 'mu_rightnow_end' ); 454 526 do_action( 'mu_activity_box_end' ); 527 528 do_action( 'wpmuadminresult', '' ); 455 529 } 456 530 457 531 function wp_dashboard_quick_press() { -
wp-admin/css/wp-admin.dev.css
653 653 #dashboard_plugins h5, 654 654 a.rsswidget, 655 655 #dashboard_right_now td.b, 656 #network_dashboard_right_now td.b, 656 657 #dashboard-widgets h4, 657 658 .tool-box .title, 658 659 #poststuff h3, … … 4702 4703 ------------------------------------------------------------------------------*/ 4703 4704 4704 4705 #dashboard_right_now .versions .b, 4706 #network_dashboard_right_now .versions .b, 4705 4707 #post-status-display, 4706 4708 #post-visibility-display, 4707 4709 #adminmenu .wp-submenu li.current, … … 5944 5946 5945 5947 /* Right Now */ 5946 5948 #dashboard_right_now p.sub, 5947 #dashboard_right_now .table, #dashboard_right_now .versions { 5949 #dashboard_right_now .table, 5950 #dashboard_right_now .versions, 5951 #network_dashboard_right_now p.sub, 5952 #network_dashboard_right_now .table, 5953 #network_dashboard_right_now .versions { 5948 5954 margin: -12px; 5949 5955 } 5950 5956 5951 #dashboard_right_now .inside { 5957 #dashboard_right_now .inside, 5958 #network_dashboard_right_now .inside { 5952 5959 font-size: 12px; 5953 5960 padding-top: 20px; 5954 5961 } 5955 5962 5956 #dashboard_right_now p.sub { 5963 #dashboard_right_now p.sub, 5964 #network_dashboard_right_now p.sub { 5957 5965 padding: 5px 0 15px; 5958 5966 color: #8f8f8f; 5959 5967 font-size: 14px; … … 5962 5970 left: 15px; 5963 5971 } 5964 5972 5965 #dashboard_right_now .table { 5973 #dashboard_right_now .table, 5974 #network_dashboard_right_now .table { 5966 5975 margin: 0; 5967 5976 padding: 0; 5968 5977 position: relative; 5969 5978 } 5970 5979 5971 #dashboard_right_now .table_content { 5980 #dashboard_right_now .table_content, 5981 #network_dashboard_right_now .table_content { 5972 5982 float: left; 5973 5983 border-top: #ececec 1px solid; 5974 5984 width: 45%; 5975 5985 } 5976 5986 5977 #dashboard_right_now .table_discussion { 5987 #dashboard_right_now .table_discussion, 5988 #network_dashboard_right_now .table_tools { 5978 5989 float: right; 5979 5990 border-top: #ececec 1px solid; 5980 5991 width: 45%; 5981 5992 } 5982 5993 5983 #dashboard_right_now table td { 5994 #dashboard_right_now table td, 5995 #network_dashboard_right_now td { 5984 5996 padding: 3px 0; 5985 5997 white-space: nowrap; 5986 5998 } 5987 5999 5988 #dashboard_right_now table tr.first td { 6000 #dashboard_right_now table tr.first td, 6001 #network_dashboard_right_now table tr.first td { 5989 6002 border-top: none; 5990 6003 } 5991 6004 5992 #dashboard_right_now td.b { 6005 #dashboard_right_now td.b, 6006 #network_dashboard_right_now td.b { 5993 6007 padding-right: 6px; 5994 6008 text-align: right; 5995 6009 font-size: 14px; 5996 6010 width: 1%; 5997 6011 } 5998 6012 5999 #dashboard_right_now td.b a { 6013 #dashboard_right_now td.b a, 6014 #network_dashboard_right_now td.b a { 6000 6015 font-size: 18px; 6001 6016 } 6002 6017 6003 #dashboard_right_now td.b a:hover { 6018 #dashboard_right_now td.b a:hover, 6019 #network_dashboard_right_now td.b a:hover { 6004 6020 color: #d54e21; 6005 6021 } 6006 6022 6007 #dashboard_right_now .t { 6023 #dashboard_right_now .t, 6024 #network_dashboard_right_now .t { 6008 6025 font-size: 12px; 6009 6026 padding-right: 12px; 6010 6027 padding-top: 6px; 6011 6028 color: #777; 6012 6029 } 6013 6030 6014 #dashboard_right_now .t a { 6031 #dashboard_right_now .t a, 6032 #network_dashboard_right_now .t a { 6015 6033 white-space: nowrap; 6016 6034 } 6017 6035 … … 6027 6045 color: green; 6028 6046 } 6029 6047 6030 #dashboard_right_now .versions { 6048 #dashboard_right_now .versions, 6049 #network_dashboard_right_now .versions { 6031 6050 padding: 6px 10px 12px; 6032 6051 clear: both; 6033 6052 } 6034 6053 6035 #dashboard_right_now a.button { 6054 #dashboard_right_now a.button, 6055 #network_dashboard_right_now a.button { 6036 6056 float: right; 6037 6057 clear: right; 6038 6058 position: relative;