diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index 0a24dc90cf..4410fdf3db 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -91,6 +91,112 @@ div.postbox div.inside { padding: 0; } +/* Right Now */ + +#dashboard_right_now p.sub, #dashboard_right_now .table, #dashboard_right_now .versions { + margin: -10px; +} + +#dashboard_right_now .inside { + font-family: Georgia, serif; + font-size: 14px; +} + +#dashboard_right_now p.sub { + font-style: italic; + padding: 5px 10px 15px; + color: #777; +} + +#dashboard_right_now .table { + background: #f9f9f9; + border-top: #ececec 1px solid; + border-bottom: #ececec 1px solid; + margin: 0 -9px 10px; + padding: 0 10px; +} + +#dashboard_right_now table { + width: 100%; +} + +#dashboard_right_now table td { + border-top: #ececec 1px solid; + padding: 3px 0; + white-space: nowrap; +} + +#dashboard_right_now table tr.first td { + border-top: none; +} + +#dashboard_right_now a { + text-decoration: none; +} + +#dashboard_right_now .b, #dashboard_right_now .b a { + color: #2583ad; +} + +#dashboard_right_now td.b { + padding-right: 6px; + text-align: right; + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 14px; +} + +#dashboard_right_now td.b a { + font-size: 18px; +} + +#dashboard_right_now .t { + font-size: 12px; + padding-right: 12px; + color: #777; +} + +#dashboard_right_now td.first, +#dashboard_right_now td.last { + width: 1px; +} + +#dashboard_right_now .spam { + color: red; +} + +#dashboard_right_now .waiting { + color: orange; +} + +#dashboard_right_now .approved { + color: green; +} + +#dashboard_right_now .versions { + line-height: 2.5em; + padding: 10px; +} + +#dashboard_right_now .versions { + font-style: italic; + font-size: 12px; +} + +#dashboard_right_now .versions a, #dashboard_right_now .versions .b { + font-style: normal; + font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;; + font-weight: bold; +} + +#dashboard_right_now a.button { + font-weight: normal; + float: right; + clear: right; + position: relative; + top: -5px; + +} + /* Recent Comments */ #the-comment-list { diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 43cba708b9..0b4d54d26f 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -163,16 +163,16 @@ function wp_dashboard_right_now() { $num_comm = get_comment_count( ); - echo '
' . __('At a Glance') . '
'; - echo '$num | "; - echo '' . __ngettext( 'Post', 'Posts', $num_posts->publish ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Post', 'Posts', $num_posts->publish ) . ' | '; /* TODO: Show status breakdown on hover if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can $post_type_texts[] = ''.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).''; @@ -194,8 +194,8 @@ function wp_dashboard_right_now() { $num = number_format_i18n($num_comm['total_comments']); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; - echo "$num | "; - echo '' . __ngettext( 'Comment', 'Comments', $num_comm['total_comments'] ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Comment', 'Comments', $num_comm['total_comments'] ) . ' | '; echo '
$num | "; - echo '' . __ngettext( 'Page', 'Pages', $num_pages->publish ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Page', 'Pages', $num_pages->publish ) . ' | '; // Approved Comments $num = number_format_i18n($num_comm['approved']); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; - echo "$num | "; - echo '' . __ngettext( 'Approved', 'Approved', $num_comm['approved'] ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Approved', 'Approved', $num_comm['approved'] ) . ' | '; - echo '
$num | "; - echo '' . __ngettext( 'Category', 'Categories', $num_cats ) . ' | '; + $num = "$num"; + echo ''.$num.' | '; + echo '' . __ngettext( 'Category', 'Categories', $num_cats ) . ' | '; // Spam Comments $num = number_format_i18n($num_comm['spam']); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; - echo "$num | "; - echo '' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . ' | '; - echo '
$num | "; - echo '' . __ngettext( 'Tag', 'Tags', $num_tags ) . ' | '; + echo ''.$num.' | '; + echo '' . __ngettext( 'Tag', 'Tags', $num_tags ) . ' | '; // Pending Comments $num = number_format_i18n($num_comm['awaiting_moderation']); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; - echo "$num | "; - echo '' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . ' | '; - - echo '
'; - printf(__ngettext('Theme %1$s with %2$s Widget', 'Theme %1$s with %2$s Widgets', $num_widgets), $ct->title, $num); - if ( $can_switch_themes ) - echo ' ' . __('Change Theme') . ''; + echo "\n\t
"; + if ( current_user_can( 'switch_themes' ) ) { + echo '' . __('Change Theme') . ''; + printf(__ngettext('Theme %1$s with %2$s Widget', 'Theme %1$s with %2$s Widgets', $num_widgets), $ct->title, $num); + } else { + printf(__ngettext('Theme %1$s with %2$s Widget', 'Theme %1$s with %2$s Widgets', $num_widgets), $ct->title, $num); + } + echo '
'; update_right_now_message(); + echo "\n\t".'