Changeset 6755
- Timestamp:
- 02/08/2008 01:40:14 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r6735 r6755 12 12 list($post_stati, $avail_post_stati) = wp_edit_posts_query(); 13 13 $wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra ) 14 15 if ( !isset( $_GET['paged'] ) ) 16 $_GET['paged'] = 1; 14 17 ?> 15 18 … … 33 36 printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title)); 34 37 } else { 35 $post_status_label = _c(' Posts|manage posts header');38 $post_status_label = _c('Manage Posts|manage posts header'); 36 39 if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) 37 40 $post_status_label = $post_stati[$_GET['post_status']][1]; … … 58 61 } 59 62 ?></h2> 60 <p id="post-search">61 <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />62 <input type="submit" value="<?php _e( 'Search Posts' ); ?>" />63 </p>64 63 65 <ul id="statusmenu">64 <ul class="subsubsub"> 66 65 <?php 67 66 $status_links = array(); … … 86 85 </ul> 87 86 88 <fieldset><legend><?php _e('Status…'); ?></legend> 89 <select name='post_status'> 90 <option<?php selected( @$_GET['post_status'], 0 ); ?> value='0'><?php _e('Any'); ?></option> 91 <?php foreach ( $post_stati as $status => $label ) : if ( !in_array($status, $avail_post_stati) ) continue; ?> 92 <option<?php selected( @$_GET['post_status'], $status ); ?> value='<?php echo $status; ?>'><?php echo $label[0]; ?></option> 93 <?php endforeach; ?> 94 </select> 95 </fieldset> 87 <p id="post-search"> 88 <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 89 <input type="submit" value="<?php _e( 'Search Posts' ); ?>" /> 90 </p> 91 92 <?php do_action('restrict_manage_posts'); ?> 93 94 <br style="clear:both;" /> 95 96 <div class="tablenav"> 96 97 97 98 <?php 98 $editable_ids = get_editable_user_ids( $user_ID ); 99 if ( $editable_ids && count( $editable_ids ) > 1 ) : 99 $page_links = paginate_links( array( 100 'base' => add_query_arg( 'paged', '%#%' ), 101 'format' => '', 102 'total' => ceil($wp_query->found_posts / 15), 103 'current' => $_GET['paged'] 104 )); 105 106 if ( $page_links ) 107 echo "<div class='tablenav-pages'>$page_links</div>"; 100 108 ?> 101 <fieldset><legend><?php _e('Author…'); ?></legend>102 <?php wp_dropdown_users( array('include' => $editable_ids, 'show_option_all' => __('Any'), 'name' => 'author', 'selected' => isset($_GET['author']) ? $_GET['author'] : 0) ); ?>103 </fieldset>104 109 110 <div style="float: left"> 105 111 <?php 106 endif;107 112 108 113 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC"; … … 113 118 114 119 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?> 115 116 <fieldset><legend><?php _e('Month…') ?></legend> 117 <select name='m'> 118 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Any'); ?></option> 119 <?php 120 foreach ($arc_result as $arc_row) { 121 if ( $arc_row->yyear == 0 ) 122 continue; 123 $arc_row->mmonth = zeroise($arc_row->mmonth, 2); 124 125 if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) 126 $default = ' selected="selected"'; 127 else 128 $default = ''; 129 130 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>"; 131 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 132 echo "</option>\n"; 133 } 134 ?> 135 </select> 136 </fieldset> 137 120 <select name='m'> 121 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 122 <?php 123 foreach ($arc_result as $arc_row) { 124 if ( $arc_row->yyear == 0 ) 125 continue; 126 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 127 128 if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) 129 $default = ' selected="selected"'; 130 else 131 $default = ''; 132 133 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>"; 134 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 135 echo "</option>\n"; 136 } 137 ?> 138 </select> 138 139 <?php } ?> 139 140 140 <fieldset><legend><?php _e('Category…') ?></legend> 141 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> 142 </fieldset> 143 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 141 <?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?> 142 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 143 144 </div> 145 146 <br style="clear:both;" /> 147 </div> 144 148 </form> 145 146 <?php do_action('restrict_manage_posts'); ?>147 149 148 150 <br style="clear:both;" /> … … 155 157 156 158 <div id="ajax-response"></div> 159 160 <div class="tablenav"> 161 162 <?php 163 if ( $page_links ) 164 echo "<div class='tablenav-pages'>$page_links</div>"; 165 ?> 166 167 </div> 157 168 158 169 <div class="navigation"> -
trunk/wp-admin/wp-admin.css
r6754 r6755 8 8 9 9 a { 10 color: # 00019b;10 color: #2583ad; 11 11 text-decoration: none; 12 12 } … … 327 327 328 328 .updated a { 329 color: #2583ad;330 329 text-decoration: none; 331 330 padding-bottom: 2px; … … 746 745 border: 1px solid #fff; 747 746 margin-right: 3px; 747 background-color: #fff; 748 748 } 749 749 … … 757 757 758 758 .page-numbers.current { 759 border: 1px solid # 999;759 border: 1px solid #328ab2; 760 760 font-weight: bold; 761 background-color: #328ab2; 762 color: #fff; 761 763 } 762 764 … … 904 906 #adminmenu a { 905 907 font-size: 16px; 906 color: #2583ad;907 908 padding: 6px; 908 909 line-height: 200%; … … 937 938 938 939 #sidemenu a { 939 color: #2583ad;940 940 padding: 3px; 941 941 line-height: 200%; … … 999 999 #submenu a { 1000 1000 font-size: 14px; 1001 color: #2583ad;1002 1001 padding: 0 0 8px 17px; 1003 1002 } … … 1011 1010 } 1012 1011 1013 #statusmenu { 1014 margin: 0; 1012 .subsubsub { 1013 margin: 15px 0 10px 0; 1014 padding: 0; 1015 1015 color: #999; 1016 1016 list-style: none; 1017 1017 white-space: nowrap; 1018 left: 0; 1019 } 1020 1021 #statusmenu a { 1022 color: #2583ad; 1018 } 1019 1020 .subsubsub li { 1021 display: inline; 1022 margin: 0; 1023 padding: 0; 1024 } 1025 1026 .subsubsub a { 1023 1027 padding: 3px; 1024 1028 line-height: 200%; 1025 1029 } 1026 1030 1027 #statusmenu a:hover, #statusmenu a.current, #statusmenua.current:hover {1031 .subsubsub a:hover, .subsubsub a.current:hover { 1028 1032 color: #d54e21; 1033 } 1034 1035 .subsubsub a.current { 1036 color: #000; 1037 font-weight: bold; 1029 1038 } 1030 1039 /* end menu stuff */ … … 1455 1464 } 1456 1465 1466 .tablenav { 1467 background-color: #e4f2fd; 1468 padding: 10px; 1469 clear: both; 1470 } 1471 1472 .tablenav .dots { 1473 border-color: #e4f2fd; 1474 } 1475 1476 .tablenav .tablenav-pages { 1477 float: right; 1478 } 1479 1457 1480 /* Global classes */ 1458 1481 .wp-hidden-children .wp-hidden-child { display: none; } … … 1460 1483 .ui-tabs-hide { display: none; } 1461 1484 .form-input-tip { color: #999; } 1462 1463 1464
Note: See TracChangeset
for help on using the changeset viewer.