Changeset 9328
- Timestamp:
- 10/24/2008 06:25:46 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9319 r9328 149 149 150 150 <div class="wrap"> 151 <h2><?php echo wp_specialchars( $title ); ?></h2> 152 153 <ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 154 <form class="search-form" action="" method="get"> 151 <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2> 152 153 <form class="search-form topmargin" action="" method="get"> 155 154 <p class="search-box"> 156 155 <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label> 157 156 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 158 <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button " />157 <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button-primary" /> 159 158 </p> 160 159 </form> … … 174 173 'base' => add_query_arg( 'pagenum', '%#%' ), 175 174 'format' => '', 175 'prev_text' => __('«'), 176 'next_text' => __('»'), 176 177 'total' => ceil(wp_count_terms('category') / $catsperpage), 177 178 'current' => $pagenum … … 182 183 ?> 183 184 184 <div class="alignleft ">185 <div class="alignleft actions"> 185 186 <select name="action"> 186 187 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 222 223 ?> 223 224 224 <div class="alignleft ">225 <div class="alignleft actions"> 225 226 <select name="action2"> 226 227 <option value="" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/css/colors-fresh.css
r9319 r9328 21 21 } 22 22 23 div#current-widgets, #postcustomstuff table, #your-profile fieldset, 24 a.page-numbers, #rightnow, div.dashboard-widget, 25 #dashboard-widgets p.dashboard-widget-links, .widefat, 23 div#current-widgets, 24 #postcustomstuff table, 25 #your-profile fieldset, 26 #rightnow, 27 div.dashboard-widget, 28 #dashboard-widgets p.dashboard-widget-links, 26 29 #replyrow #ed_reply_toolbar input { 27 30 border-color: #ccc; 31 } 32 33 .widefat { 34 border-color: #dfdfdf; 28 35 } 29 36 … … 74 81 } 75 82 76 #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,83 #post-body ul#category-tabs li.ui-tabs-selected, 77 84 #quicktags, #login form .submit input, .search-box .button, 78 85 #ed_reply_toolbar { … … 173 180 } 174 181 175 .page-numbers {176 background-color: #fff;177 border-color: #fff;178 }179 180 .page-numbers.current {181 background-color: #328ab2;182 border-color: #328ab2;183 color: #fff;184 }185 186 182 .post-com-count { 187 183 background-image: url(../images/bubble_bg.gif); … … 212 208 213 209 .submit input, 214 .button,215 .button-secondary,216 210 #login form .submit input, 217 211 div.dashboard-widget-submit input, … … 220 214 color: #246; 221 215 border-color: #80b5d0; 216 } 217 218 .button { 219 border-color: #DCDCDC; 220 color: #464646; 221 text-shadow: #FFF 0 1px 0; 222 } 223 224 .button-primary { 225 border-color: #21759B; 226 color: #FFF; 227 background: #21759B url(../images/button-grad.png) repeat-x scroll left top; 228 } 229 230 .button-secondary { 231 border-color: #CFE1EF; 232 color: #464646; 233 text-shadow: #FFF, 0 1px 0; 234 } 235 236 .button, 237 .button-secondary { 238 background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top; 222 239 } 223 240 … … 239 256 } 240 257 241 .button-secondary:hover, #login form .submit input:hover { 258 .button-primary:hover { 259 border-color: #156079; 260 } 261 262 .button-secondary:hover, 263 #login form .submit input:hover { 242 264 border-color: #328ab2; 243 265 } … … 306 328 } 307 329 308 .widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li { 330 a.page-numbers { 331 border-bottom-color: #B8D3E2; 332 } 333 334 div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li { 309 335 border-bottom-color: #ccc; 336 } 337 338 .widefat td, .widefat th { 339 border-color: #dfdfdf; 310 340 } 311 341 … … 318 348 h3.dashboard-widget-title small, 319 349 .find-box-head { 320 background-color: #464646;321 color: #d7d7d7;350 color: #333; 351 background: #dfdfdf url(../images/gray-grad.png) repeat-x scroll left top; 322 352 } 323 353 … … 334 364 color: #246; 335 365 } 336 337 .wrap h2 {338 border-bottom-color: #dadada;339 color: #666;340 }341 342 366 343 367 #adminmenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a { -
trunk/wp-admin/css/global.css
r9306 r9328 175 175 border-width: 1px; 176 176 border-style: solid; 177 border-collapse: collapse; 177 border-collapse: separate; 178 border-spacing: 0; 178 179 width: 100%; 179 180 clear: both; 180 181 margin: 0; 182 -moz-border-radius: 4px; 183 -khtml-border-radius: 4px; 184 -webkit-border-radius: 4px; 185 border-radius: 4px; 186 181 187 } 182 188 … … 203 209 204 210 .widefat th { 205 padding: 9px 15px 6px 10px;211 padding: 7px 15px 8px 10px; 206 212 text-align: left; 207 213 line-height: 1.3em; … … 211 217 margin: 0 0 0 8px; 212 218 padding: 0; 219 vertical-align: text-top; 213 220 } 214 221 … … 221 228 222 229 .widefat tbody th.check-column { 223 padding: 8px 0 22px;230 padding: 10px 0 22px; 224 231 } 225 232 /* … … 231 238 .widefat .column-comments { 232 239 text-align: center; 240 } 241 242 .widefat th#comments { 243 vertical-align: middle; 233 244 } 234 245 … … 263 274 264 275 .wrap h2 { 265 border-bottom-width: 1px;266 border-bottom-style: solid;267 276 clear: both; 268 font: 24px Georgia, "Times New Roman", Times, serif; 269 margin: 5px 0 10px -4px; 270 padding: 0; 271 padding-bottom: 7px; 272 padding-right: 280px; 277 font: italic normal normal 24px/29px Georgia, "Times New Roman", Times, serif; 278 margin: 5px 0 10px; 279 padding: 8px 15px 4px 0; 273 280 } 274 281 -
trunk/wp-admin/edit-comments.php
r9319 r9328 152 152 </ul> 153 153 154 <div class="filter"> 155 <form id="list-filter" action="" method="get"> 154 <form class="search-form" action="" method="get"> 155 <p class="search-box"> 156 <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> 157 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 158 <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button-primary" /> 159 </p> 160 </form> 161 162 <?php 163 $comments_per_page = apply_filters('comments_per_page', 20, $comment_status); 164 165 if ( isset( $_GET['apage'] ) ) 166 $page = abs( (int) $_GET['apage'] ); 167 else 168 $page = 1; 169 170 $start = $offset = ( $page - 1 ) * $comments_per_page; 171 172 list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra 173 174 $comments = array_slice($_comments, 0, $comments_per_page); 175 $extra_comments = array_slice($_comments, $comments_per_page); 176 177 $page_links = paginate_links( array( 178 'base' => add_query_arg( 'apage', '%#%' ), 179 'format' => '', 180 'prev_text' => __('«'), 181 'next_text' => __('»'), 182 'total' => ceil($total / $comments_per_page), 183 'current' => $page 184 )); 185 186 ?> 187 188 <form id="comments-form" action="" method="post"> 189 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 190 <input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" /> 191 <input type="hidden" name="pagegen_timestamp" value="<?php echo current_time('mysql', 1); ?>" /> 192 193 <div class="tablenav"> 194 195 <?php 196 if ( $page_links ) 197 echo "<div class='tablenav-pages'>$page_links</div>"; 198 ?> 199 200 <div class="alignleft actions"> 201 <select name="action"> 202 <option value="-1" selected="selected"><?php _e('Actions') ?></option> 203 <?php if ( empty($comment_status) || 'approved' == $comment_status ): ?> 204 <option value="unapprove"><?php _e('Unapprove'); ?></option> 205 <?php endif; ?> 206 <?php if ( empty($comment_status) || 'moderated' == $comment_status ): ?> 207 <option value="approve"><?php _e('Approve'); ?></option> 208 <?php endif; ?> 209 <?php if ( 'spam' != $comment_status ): ?> 210 <option value="markspam"><?php _e('Mark as Spam'); ?></option> 211 <?php endif; ?> 212 <option value="delete"><?php _e('Delete'); ?></option> 213 </select> 214 <input type="submit" name="doaction" id="doaction" value="<?php _e('Apply'); ?>" class="button-secondary apply" /> 215 <?php wp_nonce_field('bulk-comments'); ?> 216 156 217 <?php if ( $comment_status ) echo "<input type='hidden' name='comment_status' value='$comment_status' />\n"; ?> 157 218 <select name="comment_type"> … … 171 232 </select> 172 233 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 173 </form> 174 </div> 175 176 <form class="search-form" action="" method="get"> 177 <p class="search-box"> 178 <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> 179 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 180 <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" /> 181 </p> 182 </form> 183 184 <?php 185 $comments_per_page = apply_filters('comments_per_page', 20, $comment_status); 186 187 if ( isset( $_GET['apage'] ) ) 188 $page = abs( (int) $_GET['apage'] ); 189 else 190 $page = 1; 191 192 $start = $offset = ( $page - 1 ) * $comments_per_page; 193 194 list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 5, $post_id, $comment_type ); // Grab a few extra 195 196 $comments = array_slice($_comments, 0, $comments_per_page); 197 $extra_comments = array_slice($_comments, $comments_per_page); 198 199 $page_links = paginate_links( array( 200 'base' => add_query_arg( 'apage', '%#%' ), 201 'format' => '', 202 'total' => ceil($total / $comments_per_page), 203 'current' => $page 204 )); 205 206 ?> 207 208 <form id="comments-form" action="" method="post"> 209 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> 210 <input type="hidden" name="comment_status" value="<?php echo $comment_status; ?>" /> 211 <input type="hidden" name="pagegen_timestamp" value="<?php echo current_time('mysql', 1); ?>" /> 212 213 <div class="tablenav"> 214 215 <?php 216 if ( $page_links ) 217 echo "<div class='tablenav-pages'>$page_links</div>"; 218 ?> 219 220 <div class="alignleft"> 221 <select name="action"> 222 <option value="-1" selected="selected"><?php _e('Actions') ?></option> 223 <?php if ( empty($comment_status) || 'approved' == $comment_status ): ?> 224 <option value="unapprove"><?php _e('Unapprove'); ?></option> 225 <?php endif; ?> 226 <?php if ( empty($comment_status) || 'moderated' == $comment_status ): ?> 227 <option value="approve"><?php _e('Approve'); ?></option> 228 <?php endif; ?> 229 <?php if ( 'spam' != $comment_status ): ?> 230 <option value="markspam"><?php _e('Mark as Spam'); ?></option> 231 <?php endif; ?> 232 <option value="delete"><?php _e('Delete'); ?></option> 233 </select> 234 <input type="submit" name="doaction" id="doaction" value="<?php _e('Apply'); ?>" class="button-secondary apply" /> 235 <?php wp_nonce_field('bulk-comments'); ?> 234 236 235 <?php if ( isset($_GET['apage']) ) { ?> 237 236 <input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" /> … … 285 284 ?> 286 285 287 <div class="alignleft ">286 <div class="alignleft actions"> 288 287 <select name="action2"> 289 288 <option value="-1" selected="selected"><?php _e('Actions') ?></option> -
trunk/wp-admin/edit-link-categories.php
r9319 r9328 77 77 78 78 <div class="wrap"> 79 <h2 ><?php echo wp_specialchars( $title ); ?></h2>79 <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2> 80 80 81 81 <ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 82 <form class="search-form " action="" method="get">82 <form class="search-form topmargin" action="" method="get"> 83 83 <p class="search-box"> 84 84 <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label> 85 85 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 86 <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button " />86 <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button-primary" /> 87 87 </p> 88 88 </form> … … 102 102 'base' => add_query_arg( 'pagenum', '%#%' ), 103 103 'format' => '', 104 'prev_text' => __('«'), 105 'next_text' => __('»'), 104 106 'total' => ceil(wp_count_terms('link_category') / $catsperpage), 105 107 'current' => $pagenum … … 110 112 ?> 111 113 112 <div class="alignleft ">114 <div class="alignleft actions"> 113 115 <select name="action"> 114 116 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 166 168 ?> 167 169 168 <div class="alignleft ">170 <div class="alignleft actions"> 169 171 <select name="action2"> 170 172 <option value="" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/edit-pages.php
r9319 r9328 169 169 <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label> 170 170 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 171 <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button " />171 <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button-primary" /> 172 172 </p> 173 173 </form> … … 192 192 'base' => add_query_arg( 'pagenum', '%#%' ), 193 193 'format' => '', 194 'prev_text' => __('«'), 195 'next_text' => __('»'), 194 196 'total' => $num_pages, 195 197 'current' => $pagenum … … 200 202 ?> 201 203 202 <div class="alignleft ">204 <div class="alignleft actions"> 203 205 <select name="action"> 204 206 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> … … 245 247 ?> 246 248 247 <div class="alignleft ">249 <div class="alignleft actions"> 248 250 <select name="action2"> 249 251 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/edit-tags.php
r9319 r9328 144 144 145 145 <div class="wrap"> 146 <h2><?php echo wp_specialchars( $title ); ?></h2> 147 148 <ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 149 <form class="search-form" action="" method="get"> 146 <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2> 147 148 <form class="search-form topmargin" action="" method="get"> 150 149 <p class="search-box"> 151 150 <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label> 152 151 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 153 <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button " />152 <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button-primary" /> 154 153 </p> 155 154 </form> … … 169 168 'base' => add_query_arg( 'pagenum', '%#%' ), 170 169 'format' => '', 170 'prev_text' => __('«'), 171 'next_text' => __('»'), 171 172 'total' => ceil(wp_count_terms('post_tag') / $tagsperpage), 172 173 'current' => $pagenum … … 177 178 ?> 178 179 179 <div class="alignleft ">180 <div class="alignleft actions"> 180 181 <select name="action"> 181 182 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 220 221 ?> 221 222 222 <div class="alignleft ">223 <div class="alignleft actions"> 223 224 <select name="action2"> 224 225 <option value="" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/edit.php
r9319 r9328 154 154 </ul> 155 155 156 <div class="filter">157 <form id="list-filter" action="" method="get">158 <?php159 if ( !is_singular() ) {160 $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";161 162 $arc_result = $wpdb->get_results( $arc_query );163 164 $month_count = count($arc_result);165 166 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) {167 $m = isset($_GET['m']) ? (int)$_GET['m'] : 0;168 ?>169 <select name='m'>170 <option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>171 <?php172 foreach ($arc_result as $arc_row) {173 if ( $arc_row->yyear == 0 )174 continue;175 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );176 177 if ( $arc_row->yyear . $arc_row->mmonth == $m )178 $default = ' selected="selected"';179 else180 $default = '';181 182 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>";183 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";184 echo "</option>\n";185 }186 ?>187 </select>188 <?php } ?>189 190 <?php191 $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1,192 'show_count' => 0, 'orderby' => 'name', 'selected' => $cat);193 wp_dropdown_categories($dropdown_options);194 do_action('restrict_manage_posts');195 ?>196 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />197 198 <?php } ?>199 </form>200 </div>201 202 156 <form class="search-form" action="" method="get"> 203 157 <p class="search-box"> 204 158 <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label> 205 159 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 206 <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button " />160 <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button-primary" /> 207 161 </p> 208 162 </form> … … 220 174 'base' => add_query_arg( 'paged', '%#%' ), 221 175 'format' => '', 176 'prev_text' => __('«'), 177 'next_text' => __('»'), 222 178 'total' => $wp_query->max_num_pages, 223 179 'current' => $_GET['paged'] … … 226 182 ?> 227 183 228 <div class="alignleft ">184 <div class="alignleft actions"> 229 185 <select name="action"> 230 186 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> … … 234 190 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 235 191 <?php wp_nonce_field('bulk-posts'); ?> 192 193 <?php // view filters 194 if ( !is_singular() ) { 195 $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"; 196 197 $arc_result = $wpdb->get_results( $arc_query ); 198 199 $month_count = count($arc_result); 200 201 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { 202 $m = isset($_GET['m']) ? (int)$_GET['m'] : 0; 203 ?> 204 <select name='m'> 205 <option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 206 <?php 207 foreach ($arc_result as $arc_row) { 208 if ( $arc_row->yyear == 0 ) 209 continue; 210 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 211 212 if ( $arc_row->yyear . $arc_row->mmonth == $m ) 213 $default = ' selected="selected"'; 214 else 215 $default = ''; 216 217 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>"; 218 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 219 echo "</option>\n"; 220 } 221 ?> 222 </select> 223 <?php } ?> 224 225 <?php 226 $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1, 227 'show_count' => 0, 'orderby' => 'name', 'selected' => $cat); 228 wp_dropdown_categories($dropdown_options); 229 do_action('restrict_manage_posts'); 230 ?> 231 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 232 233 <?php } ?> 236 234 </div> 237 235 … … 259 257 ?> 260 258 261 <div class="alignleft ">259 <div class="alignleft actions"> 262 260 <select name="action2"> 263 261 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/includes/media.php
r9210 r9328 1544 1544 'base' => add_query_arg( 'paged', '%#%' ), 1545 1545 'format' => '', 1546 'prev_text' => __('«'), 1547 'next_text' => __('»'), 1546 1548 'total' => ceil($wp_query->found_posts / 10), 1547 1549 'current' => $_GET['paged'] … … 1552 1554 ?> 1553 1555 1554 <div class="alignleft ">1556 <div class="alignleft actions"> 1555 1557 <?php 1556 1558 -
trunk/wp-admin/includes/plugin-install.php
r9314 r9328 260 260 ?> 261 261 <div class="tablenav"> 262 <div class="alignleft ">262 <div class="alignleft actions"> 263 263 <?php do_action('install_plugins_table_header'); ?> 264 264 </div> … … 273 273 'base' => add_query_arg('paged', '%#%', $url), 274 274 'format' => '', 275 'prev_text' => __('«'), 276 'next_text' => __('»'), 275 277 'total' => $totalpages, 276 278 'current' => $page -
trunk/wp-admin/link-manager.php
r9319 r9328 96 96 97 97 <div class="wrap"> 98 <h2><?php echo wp_specialchars( $title ); ?></h2> 99 100 <div class="filter"> 101 <form id="list-filter" action="" method="get"> 98 <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2> 99 100 <form class="search-form topmargin" action="" method="get"> 101 <p class="search-box"> 102 <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label> 103 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 104 <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" /> 105 </p> 106 </form> 107 <br class="clear" /> 108 109 <form id="posts-filter" action="" method="get"> 110 <div class="tablenav"> 111 112 <div class="alignleft actions"> 113 <select name="action"> 114 <option value="" selected="selected"><?php _e('Actions'); ?></option> 115 <option value="delete"><?php _e('Delete'); ?></option> 116 </select> 117 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 118 102 119 <?php 103 120 $categories = get_terms('link_category', "hide_empty=1"); … … 120 137 ?> 121 138 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 122 </form></div> 123 124 <ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 125 <form class="search-form" action="" method="get"> 126 <p class="search-box"> 127 <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label> 128 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 129 <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" /> 130 </p> 131 </form> 132 <br class="clear" /> 133 134 <form id="posts-filter" action="" method="get"> 135 <div class="tablenav"> 136 137 <div class="alignleft"> 138 <select name="action"> 139 <option value="" selected="selected"><?php _e('Actions'); ?></option> 140 <option value="delete"><?php _e('Delete'); ?></option> 141 </select> 142 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 139 143 140 </div> 144 141 … … 266 263 <div class="tablenav"> 267 264 268 <div class="alignleft ">265 <div class="alignleft actions"> 269 266 <select name="action2"> 270 267 <option value="" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/plugins.php
r9315 r9328 321 321 322 322 <div class="tablenav"> 323 <div class="alignleft ">323 <div class="alignleft actions"> 324 324 <select name="action"> 325 325 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 343 343 344 344 <div class="tablenav"> 345 <div class="alignleft ">345 <div class="alignleft actions"> 346 346 <select name="action"> 347 347 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 366 366 367 367 <div class="tablenav"> 368 <div class="alignleft ">368 <div class="alignleft actions"> 369 369 <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" /> 370 370 <?php if( current_user_can('delete_plugins') ) : ?> -
trunk/wp-admin/themes.php
r9233 r9328 54 54 'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav', 55 55 'format' => '', 56 'prev_text' => __('«'), 57 'next_text' => __('»'), 56 58 'total' => ceil($theme_total / $per_page), 57 59 'current' => $page -
trunk/wp-admin/upload.php
r9319 r9328 217 217 </ul> 218 218 219 <div class="filter">220 <form id="list-filter" action="" method="get">221 <?php222 if ( ! is_singular() && ! isset($_GET['detached']) ) {223 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC";224 225 $arc_result = $wpdb->get_results( $arc_query );226 227 $month_count = count($arc_result);228 229 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) : ?>230 <select name='m'>231 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>232 <?php233 foreach ($arc_result as $arc_row) {234 if ( $arc_row->yyear == 0 )235 continue;236 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );237 238 if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] )239 $default = ' selected="selected"';240 else241 $default = '';242 243 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>";244 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";245 echo "</option>\n";246 }247 ?>248 </select>249 <?php endif; // month_count ?>250 251 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />252 253 <?php } // ! is_singular ?>254 </form></div>255 256 219 <form class="search-form" action="" method="get"> 257 220 <p class="search-box"> 258 221 <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label> 259 222 <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 260 <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button " />223 <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button-primary" /> 261 224 </p> 262 225 </form> … … 271 234 'base' => add_query_arg( 'paged', '%#%' ), 272 235 'format' => '', 236 'prev_text' => __('«'), 237 'next_text' => __('»'), 273 238 'total' => $page_links_total, 274 239 'current' => $_GET['paged'] … … 279 244 ?> 280 245 281 <div class="alignleft ">246 <div class="alignleft actions"> 282 247 <select name="action" class="select-action"> 283 248 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> … … 289 254 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 290 255 <?php wp_nonce_field('bulk-media'); ?> 256 257 <?php 258 if ( ! is_singular() && ! isset($_GET['detached']) ) { 259 $arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC"; 260 261 $arc_result = $wpdb->get_results( $arc_query ); 262 263 $month_count = count($arc_result); 264 265 if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) : ?> 266 <select name='m'> 267 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 268 <?php 269 foreach ($arc_result as $arc_row) { 270 if ( $arc_row->yyear == 0 ) 271 continue; 272 $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 273 274 if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) 275 $default = ' selected="selected"'; 276 else 277 $default = ''; 278 279 echo "<option$default value='$arc_row->yyear$arc_row->mmonth'>"; 280 echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear"; 281 echo "</option>\n"; 282 } 283 ?> 284 </select> 285 <?php endif; // month_count ?> 286 287 <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 288 289 <?php } // ! is_singular ?> 291 290 292 291 <?php if ( isset($_GET['detached']) ) { ?> … … 395 394 ?> 396 395 397 <div class="alignleft ">396 <div class="alignleft actions"> 398 397 <select name="action2" class="select-action"> 399 398 <option value="-1" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/users.php
r9319 r9328 316 316 <?php endif; ?> 317 317 318 <div class="alignleft ">318 <div class="alignleft actions"> 319 319 <select name="action"> 320 320 <option value="" selected="selected"><?php _e('Actions'); ?></option> … … 329 329 <br class="clear" /> 330 330 </div> 331 332 <br class="clear" />333 331 334 332 <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?> … … 384 382 <?php endif; ?> 385 383 386 <div class="alignleft ">384 <div class="alignleft actions"> 387 385 <select name="action2"> 388 386 <option value="" selected="selected"><?php _e('Actions'); ?></option> -
trunk/wp-admin/wp-admin.css
r9324 r9328 259 259 } 260 260 261 .submit input, .button, .button-secondary, .button-highlighted { 261 .submit input, 262 .button, 263 .button-primary, 264 .button-secondary, 265 .button-highlighted { 262 266 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 263 padding: 2px 4px; 264 font-size: 12px; 265 line-height: 1.5em; 267 text-decoration: none; 268 font-size: 11px; 269 line-height: 16px; 270 padding: 2px 8px; 271 cursor: pointer; 266 272 border-width: 1px; 267 273 border-style: solid; 268 -moz-border-radius: 3px; 269 -khtml-border-radius: 3px; 270 -webkit-border-radius: 3px; 271 border-radius: 3px; 272 cursor: pointer; 273 text-decoration: none; 274 } 275 276 .preview { 277 /* padding: 7px; */ 274 -moz-border-radius: 11px; 275 -khtml-border-radius: 11px; 276 -webkit-border-radius: 11px; 277 border-radius: 11px; 278 } 279 280 #doaction, 281 #doaction2 { 282 margin-right: 8px; 283 } 284 285 .tablenav select[name="action"] { 286 width: 90px; 287 } 288 289 .tablenav select[name="m"] { 290 width: 120px; 291 } 292 293 .tablenav select#cat { 294 width: 150px; 278 295 } 279 296 … … 516 533 517 534 .page-numbers { 518 padding: 2px 4px; 519 margin-right: 3px; 520 border-width: 1px; 521 border-style: solid; 522 } 523 524 #tablenav-pages .page-numbers.current { 525 font-weight: bold; 526 border-width: 1px; 527 border-style: solid; 535 margin-right: 5px; 536 border-bottom-width: 2px; 537 border-bottom-style: solid; 538 } 539 540 .tablenav-pages span.current { 541 border: 0 none; 528 542 } 529 543 … … 558 572 } 559 573 560 .tablenav .button-secondary {561 padding: 2px 4px;562 vertical-align: top;563 }564 565 .tablenav .tablenav-pages a.next, .tablenav .tablenav-pages a.prev {566 text-decoration: underline;567 }568 569 574 .tablenav { 570 575 clear: both; 571 vertical-align: text-top; 572 /* 573 height: 2em; 574 padding: 7px 10px; 575 margin-bottom: -10px; 576 margin-top: 8px; 577 */ 576 height: 40px; 577 margin: 6px 0; 578 vertical-align: middle; 578 579 } 579 580 580 581 .tablenav .tablenav-pages { 581 582 float: right; 582 height: 18px;583 padding-top: 6px;584 583 font-size: 11px; 584 height: 22px; 585 line-height: 22px; 586 padding: 7px 8px 0; 585 587 } 586 588 587 589 .tablenav .tablenav-pages a { 588 590 text-decoration: none; 591 } 592 593 .tablenav .actions { 594 padding: 7px 8px 0; 589 595 } 590 596 … … 1348 1354 } 1349 1355 1356 .wrap h2.floatedh2 { 1357 float: left; 1358 margin: 5px 0; 1359 } 1360 1350 1361 #poststuff h2 { 1351 1362 margin-top: 20px; … … 1687 1698 p.search-box { 1688 1699 float: right; 1689 margin: -5px 0 0; 1700 margin: -10px 0 0; 1701 } 1702 1703 .topmargin p.search-box { 1704 margin-top: 25px; 1690 1705 } 1691 1706 … … 1743 1758 .view-switch { 1744 1759 float: right; 1745 margin: 0 20px; 1746 position: relative; 1747 top: 2px; 1760 margin: 9px 8px 0; 1748 1761 } 1749 1762
Note: See TracChangeset
for help on using the changeset viewer.