Changeset 6731
- Timestamp:
- 02/05/2008 08:30:24 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r6660 r6731 54 54 } 55 55 ?></h2> 56 57 <ul id="statusmenu"> 58 <?php 59 $status_links = array(); 60 foreach ( $post_stati as $status => $label ) { 61 $class = ''; 62 63 if ( !in_array($status, $avail_post_stati) ) 64 continue; 65 66 $num_posts = wp_count_posts('post', $status); 67 if ( $status == $_GET['post_status'] ) 68 $class = ' class="current"'; 69 70 $status_links[] = "<li><a href=\"edit.php?post_status=$status\"$class>" . 71 sprintf($label[1], $num_posts) . '</a>'; 72 } 73 $class = empty($_GET['post_status']) ? ' class="current"' : ''; 74 $status_links[] = "<li><a href=\"edit.php\"$class>All Posts</a>"; 75 echo implode(' |</li>', $status_links) . '</li>'; 76 unset($status_links); 77 ?> 78 </ul> 56 79 57 80 <form name="searchform" id="searchform" action="" method="get"> -
trunk/wp-admin/includes/post.php
r6726 r6731 489 489 $q['cat'] = (int) $q['cat']; 490 490 $post_stati = array( // array( adj, noun ) 491 ' draft' => array(__('Draft'), _c('Drafts|manage posts header')),492 'future' => array(__('Scheduled'), __('Scheduled posts')),493 'pending' => array(__('Pending Review'), __('Pending posts')),494 ' private' => array(__('Private'), __('Private posts')),495 'p ublish' => array(__('Published'), __('Published posts'))491 'publish' => array(__('Published'), __('Published (%s)')), 492 'future' => array(__('Scheduled'), __('Scheduled (5s)')), 493 'pending' => array(__('Pending Review'), __('Pending Review (%s)')), 494 'draft' => array(__('Draft'), _c('Draft (%s)|manage posts header')), 495 'private' => array(__('Private'), __('Private (%s)')) 496 496 ); 497 497 -
trunk/wp-admin/wp-admin.css
r6727 r6731 996 996 } 997 997 998 #statusmenu { 999 margin: 0; 1000 color: #999; 1001 list-style: none; 1002 white-space: nowrap; 1003 left: 0; 1004 } 1005 1006 #statusmenu a { 1007 color: #2583ad; 1008 padding: 3px; 1009 line-height: 200%; 1010 } 1011 1012 #statusmenu a:hover, #statusmenu a.current, #statusmenu a.current:hover { 1013 color: #d54e21; 1014 } 998 1015 /* end menu stuff */ 999 1016
Note: See TracChangeset
for help on using the changeset viewer.