Changeset 9556
- Timestamp:
- 11/06/2008 09:56:29 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-fresh.css
r9547 r9556 339 339 340 340 .tablenav .dots { 341 background-color: #e4f2fd; 342 border-color: #e4f2fd; 341 border-color: transparent; 343 342 } 344 343 345 344 .tablenav .next, 346 345 .tablenav .prev { 347 background-color: #e4f2fd; 348 border-bottom-color: #2583ad; 349 border-color: #e4f2fd; 346 border-color: transparent; 350 347 color: #2583ad; 351 348 } … … 353 350 .tablenav .next:hover, 354 351 .tablenav .prev:hover { 355 border-bottom-color: #d54e21; 356 border-color: #e4f2fd; 352 border-color: transparent; 357 353 color: #d54e21; 358 354 } -
trunk/wp-admin/css/global.css
r9538 r9556 257 257 258 258 .subsubsub a { 259 line-height: 2 00%;260 padding: 3px;259 line-height: 2; 260 padding: .2em; 261 261 text-decoration: none; 262 } 263 264 .subsubsub a .count, .subsubsub a.current .count { 265 color: #999; 266 font-weight: normal; 262 267 } 263 268 -
trunk/wp-admin/edit-comments.php
r9545 r9556 121 121 $status_links = array(); 122 122 $num_comments = wp_count_comments(); 123 //, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"), 124 //, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>") 123 125 $stati = array( 124 'moderated' => sprintf(__ngettext('Awaiting Moderation (%s)', 'Awaiting Moderation (%s)', number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"),125 'approved' => _ c('Approved|plural'),126 'spam' => sprintf(__ngettext('Spam (%s)', 'Spam (%s)', number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>")126 'moderated' => __ngettext_noop('Awaiting Moderation <span class="count">(%s)</span>', 'Awaiting Moderation <span class="count">(%s)</span>'), 127 'approved' => __ngettext_noop('Approved', 'Approved'), // singular not used 128 'spam' => __ngettext_noop('Spam <span class="count">(%s)</span>', 'Spam <span class="count">(%s)</span>') 127 129 ); 128 130 $class = ( '' === $comment_status ) ? ' class="current"' : ''; 129 $status_links[] = "<li><a href= \"edit-comments.php\"$class>".__('Show All Comments')."</a>";131 $status_links[] = "<li><a href='edit-comments.php'$class>" . __( 'All' ) . '</a>'; 130 132 $type = ( !$comment_type && 'all' != $comment_type ) ? '' : "&comment_type=$comment_type"; 131 133 foreach ( $stati as $status => $label ) { … … 134 136 if ( $status == $comment_status ) 135 137 $class = ' class="current"'; 136 137 $status_links[] = "<li class='$status'><a href=\"edit-comments.php?comment_status=$status$type\"$class>$label</a>"; 138 if ( !isset( $num_comments->$status ) ) 139 $num_comments->$status = 10; 140 141 $status_links[] = "<li class='$status'><a href='edit-comments.php?comment_status=$status$type'$class>" . sprintf( 142 __ngettext( $label[0], $label[1], $num_comments->$status ), 143 number_format_i18n( $num_comments->$status ) 144 ) . '</a>'; 138 145 } 139 146 140 147 $status_links = apply_filters( 'comment_status_links', $status_links ); 141 148 142 echo implode( ' | </li>', $status_links) . '</li>';149 echo implode( " |</li>\n", $status_links) . '</li>'; 143 150 unset($status_links); 144 151 ?> … … 183 190 <div class="tablenav"> 184 191 185 <?php 186 if ( $page_links ) 187 echo "<div class='tablenav-pages'>$page_links</div>"; 188 ?> 192 <?php if ( $page_links ) : ?> 193 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 194 number_format_i18n( $start + 1 ), 195 number_format_i18n( min( $page * $comments_per_page, $total ) ), 196 number_format_i18n( $total ), 197 $page_links 198 ); echo $page_links_text; ?></div> 199 <?php endif; ?> 189 200 190 201 <div class="alignleft actions"> … … 271 282 <?php 272 283 if ( $page_links ) 273 echo "<div class='tablenav-pages'>$page_links </div>";284 echo "<div class='tablenav-pages'>$page_links_text</div>"; 274 285 ?> 275 286 -
trunk/wp-admin/edit-pages.php
r9545 r9556 74 74 75 75 $post_stati = array( // array( adj, noun ) 76 'publish' => array(__('Published'), __('Published pages'), __ngettext_noop('Published (%s)', 'Published (%s)')),77 'future' => array(__('Scheduled'), __('Scheduled pages'), __ngettext_noop('Scheduled (%s)', 'Scheduled (%s)')),78 'pending' => array(__('Pending Review'), __('Pending pages'), __ngettext_noop('Pending Review (%s)', 'Pending Review (%s)')),79 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft (%s)', 'Drafts (%s)')),80 'private' => array(__('Private'), __('Private pages'), __ngettext_noop(' Private (%s)', 'Private (%s)'))76 'publish' => array(__('Published'), __('Published pages'), __ngettext_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')), 77 'future' => array(__('Scheduled'), __('Scheduled pages'), __ngettext_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')), 78 'pending' => array(__('Pending Review'), __('Pending pages'), __ngettext_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')), 79 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft <span class="count">(%s)</span>', 'Drafts</a> <span class="count">(%s)</span>')), 80 'private' => array(__('Private'), __('Private pages'), __ngettext_noop('<a %s>Private</a> <span class="count">(%s)</span>', '<a %s>Private</a> <span class="count">(%s)</span>')) 81 81 ); 82 82 … … 138 138 $status_links = array(); 139 139 $num_posts = wp_count_posts('page', 'readable'); 140 $total_posts = array_sum( (array) $num_posts ); 140 141 $class = empty($_GET['post_status']) ? ' class="current"' : ''; 141 $status_links[] = "<li><a href= \"edit-pages.php\"$class>".__('All Pages')."</a>";142 $status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>'; 142 143 foreach ( $post_stati as $status => $label ) { 143 144 $class = ''; … … 149 150 $class = ' class="current"'; 150 151 151 $status_links[] = "<li><a href=\"edit-pages.php?post_status=$status\"$class>" . 152 sprintf(__ngettext($label[2][0], $label[2][1], $num_posts->$status), number_format_i18n( $num_posts->$status ) ) . '</a>'; 153 } 154 echo implode(' |</li>', $status_links) . '</li>'; 152 $status_links[] = "<li><a href='edit-pages.php?post_status=$status'$class>" . sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>'; 153 } 154 echo implode( " |</li>\n", $status_links ) . '</li>'; 155 155 unset($status_links); 156 156 endif; … … 187 187 )); 188 188 189 if ( $page_links ) 190 echo "<div class='tablenav-pages'>$page_links</div>"; 191 ?> 189 if ( $page_links ) : ?> 190 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 191 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 192 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), 193 number_format_i18n( $wp_query->found_posts ), 194 $page_links 195 ); echo $page_links_text; ?></div> 196 <?php endif; ?> 192 197 193 198 <div class="alignleft actions"> … … 231 236 <?php 232 237 if ( $page_links ) 233 echo "<div class='tablenav-pages'>$page_links </div>";238 echo "<div class='tablenav-pages'>$page_links_text</div>"; 234 239 ?> 235 240 -
trunk/wp-admin/edit.php
r9545 r9556 125 125 $status_links = array(); 126 126 $num_posts = wp_count_posts( 'post', 'readable' ); 127 $total_posts = array_sum( (array) $num_posts ); 127 128 $class = empty( $_GET['post_status'] ) ? ' class="current"' : ''; 128 $status_links[] = "<li><a href='edit.php' $class>" . __('All Posts') . '</a>'; 129 $status_links[] = "<li><a href='edit.php' $class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>'; 130 131 129 132 foreach ( $post_stati as $status => $label ) { 130 133 $class = ''; … … 138 141 $class = ' class="current"'; 139 142 140 $status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . 141 sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>'; 142 } 143 echo implode( ' | </li>', $status_links ) . '</li>'; 143 $status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>'; 144 } 145 echo implode( " |</li>\n", $status_links ) . '</li>'; 144 146 unset( $status_links ); 145 147 endif; … … 224 226 225 227 <?php if ( $page_links ) { ?> 226 <div class="tablenav-pages"><?php echo $page_links; ?></div> 228 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 229 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 230 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), 231 number_format_i18n( $wp_query->found_posts ), 232 $page_links 233 ); echo $page_links_text; ?></div> 227 234 <?php } ?> 228 235 … … 243 250 <?php 244 251 if ( $page_links ) 245 echo "<div class='tablenav-pages'>$page_links </div>";252 echo "<div class='tablenav-pages'>$page_links_text</div>"; 246 253 ?> 247 254 -
trunk/wp-admin/includes/dashboard.php
r9536 r9556 332 332 <input type="submit" name="save" id="save-post" class="button" value="<?php _e('Save Draft'); ?>" /> 333 333 <input type="reset" value="<?php _e( 'Cancel' ); ?>" class="cancel" /> 334 <input type="submit" name="publish" id="publish" accesskey="p" class="button button- highlighted" value="<?php _e('Publish'); ?>" />334 <input type="submit" name="publish" id="publish" accesskey="p" class="button button-primary" value="<?php _e('Publish'); ?>" /> 335 335 <br class="clear" /> 336 336 </p> -
trunk/wp-admin/includes/post.php
r9509 r9556 728 728 $q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0; 729 729 $post_stati = array( // array( adj, noun ) 730 'publish' => array(__('Published'), __('Published posts'), __ngettext_noop('Published (%s)', 'Published (%s)')),731 'future' => array(__('Scheduled'), __('Scheduled posts'), __ngettext_noop('Scheduled (%s)', 'Scheduled (%s)')),732 'pending' => array(__('Pending Review'), __('Pending posts'), __ngettext_noop('Pending Review (%s)', 'Pending Review (%s)')),733 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft (%s)', 'Drafts (%s)')),734 'private' => array(__('Private'), __('Private posts'), __ngettext_noop('Private (%s)', 'Private (%s)')),730 'publish' => array(__('Published'), __('Published posts'), __ngettext_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')), 731 'future' => array(__('Scheduled'), __('Scheduled posts'), __ngettext_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')), 732 'pending' => array(__('Pending Review'), __('Pending posts'), __ngettext_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')), 733 'draft' => array(__('Draft'), _c('Drafts|manage posts header'), __ngettext_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')), 734 'private' => array(__('Private'), __('Private posts'), __ngettext_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')), 735 735 ); 736 736 … … 795 795 $q['posts_per_page'] = 15; 796 796 $post_mime_types = array( // array( adj, noun ) 797 'image' => array(__('Images'), __('Manage Images'), __ngettext_noop('Image (%s)', 'Images (%s)')),798 'audio' => array(__('Audio'), __('Manage Audio'), __ngettext_noop('Audio (%s)', 'Audio (%s)')),799 'video' => array(__('Video'), __('Manage Video'), __ngettext_noop('Video (%s)', 'Video (%s)')),797 'image' => array(__('Images'), __('Manage Images'), __ngettext_noop('Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>')), 798 'audio' => array(__('Audio'), __('Manage Audio'), __ngettext_noop('Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>')), 799 'video' => array(__('Video'), __('Manage Video'), __ngettext_noop('Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>')), 800 800 ); 801 801 $post_mime_types = apply_filters('post_mime_types', $post_mime_types); -
trunk/wp-admin/includes/template.php
r9547 r9556 688 688 $posts_columns = array(); 689 689 $posts_columns['cb'] = '<input type="checkbox" />'; 690 $posts_columns['title'] = __(' Title');690 $posts_columns['title'] = __('Post'); 691 691 $posts_columns['author'] = __('Author'); 692 692 $posts_columns['categories'] = __('Categories'); -
trunk/wp-admin/includes/user.php
r9217 r9556 666 666 'add_args' => $args 667 667 ) ); 668 if ( $this->paging_text ) { 669 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 670 number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), 671 number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), 672 number_format_i18n( $this->total_users_for_query ), 673 $this->paging_text 674 ); 675 } 668 676 } 669 677 } -
trunk/wp-admin/themes.php
r9328 r9556 126 126 127 127 <?php if ( $page_links ) : ?> 128 <div class="tablenav"> 129 <?php echo "<div class='tablenav-pages'>$page_links</div>"; ?> 130 <br class="clear" /> 131 </div> 132 <br class="clear" /> 128 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 129 number_format_i18n( $start + 1 ), 130 number_format_i18n( min( $page * $per_page, $theme_total ) ), 131 number_format_i18n( $theme_total ), 132 $page_links 133 ); echo $page_links_text; ?></div> 133 134 <?php endif; ?> 134 135 … … 200 201 <?php if ( $page_links ) : ?> 201 202 <div class="tablenav"> 202 <?php echo "<div class='tablenav-pages'>$page_links </div>"; ?>203 <?php echo "<div class='tablenav-pages'>$page_links_text</div>"; ?> 203 204 <br class="clear" /> 204 205 </div> -
trunk/wp-admin/upload.php
r9545 r9556 186 186 $type_links = array(); 187 187 $_num_posts = (array) wp_count_attachments(); 188 $_total_posts = array_sum( $_num_posts ); 188 189 $matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts)); 189 190 foreach ( $matches as $type => $reals ) … … 192 193 193 194 $class = empty($_GET['post_mime_type']) && ! isset($_GET['detached']) ? ' class="current"' : ''; 194 $type_links[] = "<li><a href= \"upload.php\"$class>".__('All Types')."</a>";195 $type_links[] = "<li><a href='upload.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $_total_posts ), number_format_i18n( $_total_posts ) ) . '</a>'; 195 196 foreach ( $post_mime_types as $mime_type => $label ) { 196 197 $class = ''; … … 202 203 $class = ' class="current"'; 203 204 204 $type_links[] = "<li><a href=\"upload.php?post_mime_type=$mime_type\"$class>" . 205 sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), number_format_i18n( $num_posts[$mime_type] )) . '</a>'; 205 $type_links[] = "<li><a href='upload.php?post_mime_type=$mime_type'$class>" . sprintf( __ngettext( $label[2][0], $label[2][1], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</a>'; 206 206 } 207 207 $class = isset($_GET['detached']) ? ' class="current"' : ''; 208 208 $type_links[] = '<li><a href="upload.php?detached=1"' . $class . '>' . __('Unattached') . '</a>'; 209 209 210 echo implode( ' | </li>', $type_links) . '</li>';210 echo implode( " |</li>\n", $type_links) . '</li>'; 211 211 unset($type_links); 212 212 ?> … … 236 236 )); 237 237 238 if ( $page_links ) 239 echo "<div class='tablenav-pages'>$page_links</div>"; 240 ?> 238 if ( $page_links ) : ?> 239 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s-%s of %s' ) . '</span>' . __( '%s' ), 240 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 241 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), 242 number_format_i18n( $wp_query->found_posts ), 243 $page_links 244 ); echo $page_links_text; ?></div> 245 <?php endif; ?> 241 246 242 247 <div class="alignleft actions"> … … 387 392 <?php 388 393 if ( $page_links ) 389 echo "<div class='tablenav-pages'>$page_links </div>";394 echo "<div class='tablenav-pages'>$page_links_text</div>"; 390 395 ?> 391 396 -
trunk/wp-admin/users.php
r9545 r9556 266 266 $avail_roles = array(); 267 267 $users_of_blog = get_users_of_blog(); 268 $total_users = count( $users_of_blog ); 268 269 foreach ( (array) $users_of_blog as $b_user ) { 269 270 $b_roles = unserialize($b_user->meta_value); … … 278 279 $current_role = false; 279 280 $class = empty($role) ? ' class="current"' : ''; 280 $role_links[] = "<li><a href= \"users.php\"$class>" . __('All Users') . "</a>";281 $role_links[] = "<li><a href='users.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users ), number_format_i18n( $total_users ) ) . '</a>'; 281 282 foreach ( $wp_roles->get_names() as $this_role => $name ) { 282 283 if ( !isset($avail_roles[$this_role]) ) … … 291 292 292 293 $name = translate_with_context($name); 293 $name = sprintf( _c('%1$s (%2$s)|user role with count'), $name, $avail_roles[$this_role]);294 $role_links[] = "<li><a href= \"users.php?role=$this_role\"$class>" . $name . '</a>';295 } 296 echo implode( ' |</li>', $role_links) . '</li>';294 $name = sprintf( _c('%1$s <span class="count">(%2$s)</span>|user role with count'), $name, $avail_roles[$this_role] ); 295 $role_links[] = "<li><a href='users.php?role=$this_role'$class>$name</a>"; 296 } 297 echo implode( " |</li>\n", $role_links) . '</li>'; 297 298 unset($role_links); 298 299 ?> -
trunk/wp-admin/wp-admin.css
r9545 r9556 1 2 3 4 1 #wpbody { 5 2 clear: both; … … 627 624 628 625 .page-numbers { 629 margin-right: 5px;626 border-bottom-style: solid; 630 627 border-bottom-width: 2px; 631 border-bottom-style: solid; 628 font-weight: bold; 629 margin-right: 1px; 630 padding: 0 2px; 632 631 } 633 632 … … 675 674 .tablenav .tablenav-pages { 676 675 float: right; 676 display: block; 677 cursor: default; 678 height: 40px; 679 line-height: 40px; 677 680 font-size: 11px; 678 height: 22px; 679 line-height: 22px; 680 padding: 7px 8px 0; 681 margin: 0 8px 0 0; 682 color: #555; 681 683 } 682 684 683 685 .tablenav .tablenav-pages a { 684 686 text-decoration: none; 687 } 688 689 .tablenav .displaying-num { 690 margin-right: 10px; 685 691 } 686 692 -
trunk/wp-includes/script-loader.php
r9546 r9556 329 329 $rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'press-this-ie' ); 330 330 331 $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '2008110 5' );331 $styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081106' ); 332 332 $styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' ); 333 333 … … 339 339 $styles->add_data( 'colors-fresh', 'rtl', true ); 340 340 341 $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081 030' );341 $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081106' ); 342 342 $styles->add( 'media', '/wp-admin/css/media.css', array(), '20080709' ); 343 343 $styles->add( 'widgets', '/wp-admin/css/widgets.css' );
Note: See TracChangeset
for help on using the changeset viewer.