Ticket #12202: 12202.2.diff
File 12202.2.diff, 7.1 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/dashboard.php
212 212 213 213 $num_comm = wp_count_comments( ); 214 214 215 echo "\n\t".'< p class="sub">' . __('At a Glance') . '</p>';216 echo "\n\t".'< div class="table">'."\n\t".'<table>';215 echo "\n\t".'<div class="table table_content">'."\n\t".'<table>'; 216 echo "\n\t".'<p class="sub">' . __('Content') . '</p>'; 217 217 echo "\n\t".'<tr class="first">'; 218 218 219 219 // Posts … … 225 225 } 226 226 echo '<td class="first b b-posts">' . $num . '</td>'; 227 227 echo '<td class="t posts">' . $text . '</td>'; 228 229 echo '</tr><tr>'; 228 230 /* TODO: Show status breakdown on hover 229 231 if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can 230 232 $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( _n( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>'; … … 241 243 $pending_text = ''; 242 244 } 243 245 */ 246 247 // Pages 248 $num = number_format_i18n( $num_pages->publish ); 249 $text = _n( 'Page', 'Pages', $num_pages->publish ); 250 if ( current_user_can( 'edit_pages' ) ) { 251 $num = "<a href='edit.php?post_type=page'>$num</a>"; 252 $text = "<a href='edit.php?post_type=page'>$text</a>"; 253 } 254 echo '<td class="first b b_pages">' . $num . '</td>'; 255 echo '<td class="t pages">' . $text . '</td>'; 256 257 echo '</tr><tr>'; 244 258 259 // Categories 260 $num = number_format_i18n( $num_cats ); 261 $text = _n( 'Category', 'Categories', $num_cats ); 262 if ( current_user_can( 'manage_categories' ) ) { 263 $num = "<a href='categories.php'>$num</a>"; 264 $text = "<a href='categories.php'>$text</a>"; 265 } 266 echo '<td class="first b b-cats">' . $num . '</td>'; 267 echo '<td class="t cats">' . $text . '</td>'; 268 269 echo '</tr><tr>'; 270 271 // Tags 272 $num = number_format_i18n( $num_tags ); 273 $text = _n( 'Tag', 'Tags', $num_tags ); 274 if ( current_user_can( 'manage_categories' ) ) { 275 $num = "<a href='edit-tags.php'>$num</a>"; 276 $text = "<a href='edit-tags.php'>$text</a>"; 277 } 278 echo '<td class="first b b-tags">' . $num . '</td>'; 279 echo '<td class="t tags">' . $text . '</td>'; 280 281 echo "</tr>"; 282 echo "\n\t</table>\n\t</div>"; 283 284 285 echo "\n\t".'<div class="table table_discussion">'."\n\t".'<table>'; 286 echo "\n\t".'<p class="sub">' . __('Discussion') . '</p>'; 287 echo "\n\t".'<tr class="first">'; 288 245 289 // Total Comments 246 290 $num = '<span class="total-count">' . number_format_i18n($num_comm->total_comments) . '</span>'; 247 291 $text = _n( 'Comment', 'Comments', $num_comm->total_comments ); … … 254 298 255 299 echo '</tr><tr>'; 256 300 257 // Pages258 $num = number_format_i18n( $num_pages->publish );259 $text = _n( 'Page', 'Pages', $num_pages->publish );260 if ( current_user_can( 'edit_pages' ) ) {261 $num = "<a href='edit.php?post_type=page'>$num</a>";262 $text = "<a href='edit.php?post_type=page'>$text</a>";263 }264 echo '<td class="first b b_pages">' . $num . '</td>';265 echo '<td class="t pages">' . $text . '</td>';266 267 301 // Approved Comments 268 302 $num = '<span class="approved-count">' . number_format_i18n($num_comm->approved) . '</span>'; 269 303 $text = _nx( 'Approved', 'Approved', $num_comm->approved, 'Right Now' ); … … 276 310 277 311 echo "</tr>\n\t<tr>"; 278 312 279 // Categories280 $num = number_format_i18n( $num_cats );281 $text = _n( 'Category', 'Categories', $num_cats );282 if ( current_user_can( 'manage_categories' ) ) {283 $num = "<a href='edit-tags.php?taxonomy=category'>$num</a>";284 $text = "<a href='edit-tags.php?taxonomy=category'>$text</a>";285 }286 echo '<td class="first b b-cats">' . $num . '</td>';287 echo '<td class="t cats">' . $text . '</td>';288 289 313 // Pending Comments 290 314 $num = '<span class="pending-count">' . number_format_i18n($num_comm->moderated) . '</span>'; 291 315 $text = _n( 'Pending', 'Pending', $num_comm->moderated ); … … 298 322 299 323 echo "</tr>\n\t<tr>"; 300 324 301 // Tags302 $num = number_format_i18n( $num_tags );303 $text = _n( 'Tag', 'Tags', $num_tags );304 if ( current_user_can( 'manage_categories' ) ) {305 $num = "<a href='edit-tags.php'>$num</a>";306 $text = "<a href='edit-tags.php'>$text</a>";307 }308 echo '<td class="first b b-tags">' . $num . '</td>';309 echo '<td class="t tags">' . $text . '</td>';310 311 325 // Spam Comments 312 326 $num = number_format_i18n($num_comm->spam); 313 327 $text = _n( 'Spam', 'Spam', $num_comm->spam ); … … 321 335 echo "</tr>"; 322 336 do_action('right_now_table_end'); 323 337 echo "\n\t</table>\n\t</div>"; 324 338 325 339 echo "\n\t".'<div class="versions">'; 326 340 $ct = current_theme_info(); 327 341 … … 418 432 <p class="submit"> 419 433 <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" /> 420 434 <input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" /> 421 <input type="hidden" name="post_type" value="post" />422 435 <?php wp_nonce_field('add-post'); ?> 423 436 <input type="submit" name="save" id="save-post" class="button" tabindex="4" value="<?php esc_attr_e('Save Draft'); ?>" /> 424 437 <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" /> … … 995 1008 */ 996 1009 function wp_dashboard_empty() {} 997 1010 998 ?> 1011 ?> 1012 No newline at end of file -
wp-admin/css/dashboard.dev.css
91 91 92 92 #dashboard_right_now .inside { 93 93 font-size: 12px; 94 padding-top: 20px; 94 95 } 95 96 96 97 #dashboard_right_now p.sub { … … 99 100 padding: 5px 10px 15px; 100 101 color: #777; 101 102 font-size: 13px; 103 position: absolute; 104 top: -17px; 105 left: 15px; 102 106 } 103 107 104 108 #dashboard_right_now .table { 109 margin: 0 -9px; 110 padding: 0 10px; 105 111 background: #f9f9f9; 106 112 border-top: #ececec 1px solid; 107 113 border-bottom: #ececec 1px solid; 108 margin: 0 -9px 10px; 109 padding: 0 10px; 114 position: relative; 110 115 } 111 116 112 #dashboard_right_now table { 113 width: 100%; 117 #dashboard_right_now .table_content { 118 float: left; 119 border-right: #ececec 1px solid; 120 width: 45%; 114 121 } 115 122 123 #dashboard_right_now .table_discussion { 124 float: right; 125 border-left: #ececec 1px solid; 126 width: 45%; 127 } 128 116 129 #dashboard_right_now table td { 117 130 border-top: #ececec 1px solid; 118 131 padding: 3px 0; … … 128 141 text-align: right; 129 142 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 130 143 font-size: 14px; 144 width: 1%; 131 145 } 132 146 133 147 #dashboard_right_now td.b a { … … 149 163 white-space: nowrap; 150 164 } 151 165 152 #dashboard_right_now td.first,153 #dashboard_right_now td.last {154 width: 1%;155 }156 157 166 #dashboard_right_now .spam { 158 167 color: red; 159 168 } … … 168 177 169 178 #dashboard_right_now .versions { 170 179 padding: 6px 10px 12px; 180 clear: left; 171 181 } 172 182 173 183 #dashboard_right_now .versions .b { … … 396 406 .dashboard-comment-wrap { 397 407 overflow: hidden; 398 408 word-wrap: break-word; 399 } 400 409 } 410 No newline at end of file -
wp-admin/css/ms.dev.css
53 53 #dashboard_right_now p.musub { 54 54 margin-top: 12px; 55 55 border-top: 1px solid #ececec; 56 position: static; 56 57 } 57 58 58 59 #dashboard_right_now td.b a.musublink {