WordPress.org

Make WordPress Core

Changeset 9328


Ignore:
Timestamp:
10/24/2008 06:25:46 PM (10 years ago)
Author:
azaozz
Message:

New buttons and styling for all "management" pages

Location:
trunk/wp-admin
Files:
3 added
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r9319 r9328  
    149149
    150150<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">
    155154<p class="search-box">
    156155    <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
    157156    <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" />
    159158</p>
    160159</form>
     
    174173    'base' => add_query_arg( 'pagenum', '%#%' ),
    175174    'format' => '',
     175    'prev_text' => __('&laquo;'),
     176    'next_text' => __('&raquo;'),
    176177    'total' => ceil(wp_count_terms('category') / $catsperpage),
    177178    'current' => $pagenum
     
    182183?>
    183184
    184 <div class="alignleft">
     185<div class="alignleft actions">
    185186<select name="action">
    186187<option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    222223?>
    223224
    224 <div class="alignleft">
     225<div class="alignleft actions">
    225226<select name="action2">
    226227<option value="" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/css/colors-fresh.css

    r9319 r9328  
    2121}
    2222
    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,
     23div#current-widgets,
     24#postcustomstuff table,
     25#your-profile fieldset,
     26#rightnow,
     27div.dashboard-widget,
     28#dashboard-widgets p.dashboard-widget-links,
    2629#replyrow #ed_reply_toolbar input {
    2730    border-color: #ccc;
     31}
     32
     33.widefat {
     34    border-color: #dfdfdf;
    2835}
    2936
     
    7481}
    7582
    76 #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
     83#post-body ul#category-tabs li.ui-tabs-selected,
    7784#quicktags, #login form .submit input, .search-box .button,
    7885#ed_reply_toolbar {
     
    173180}
    174181
    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 
    186182.post-com-count {
    187183    background-image: url(../images/bubble_bg.gif);
     
    212208
    213209.submit input,
    214 .button,
    215 .button-secondary,
    216210#login form .submit input,
    217211div.dashboard-widget-submit input,
     
    220214    color: #246;
    221215    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;
    222239}
    223240
     
    239256}
    240257
    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 {
    242264    border-color: #328ab2;
    243265}
     
    306328}
    307329
    308 .widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li {
     330a.page-numbers {
     331    border-bottom-color: #B8D3E2;
     332}
     333
     334div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li {
    309335    border-bottom-color: #ccc;
     336}
     337
     338.widefat td, .widefat th {
     339    border-color: #dfdfdf;
    310340}
    311341
     
    318348h3.dashboard-widget-title small,
    319349.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;
    322352}
    323353
     
    334364    color: #246;
    335365}
    336 
    337 .wrap h2 {
    338     border-bottom-color: #dadada;
    339     color: #666;
    340 }
    341 
    342366
    343367#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  
    175175    border-width: 1px;
    176176    border-style: solid;
    177     border-collapse: collapse;
     177    border-collapse: separate;
     178    border-spacing: 0;
    178179    width: 100%;
    179180    clear: both;
    180181    margin: 0;
     182    -moz-border-radius: 4px;
     183    -khtml-border-radius: 4px;
     184    -webkit-border-radius: 4px;
     185    border-radius: 4px;
     186   
    181187}
    182188
     
    203209
    204210.widefat th {
    205     padding: 9px 15px 6px 10px;
     211    padding: 7px 15px 8px 10px;
    206212    text-align: left;
    207213    line-height: 1.3em;
     
    211217    margin: 0 0 0 8px;
    212218    padding: 0;
     219    vertical-align: text-top;
    213220}
    214221
     
    221228
    222229.widefat tbody th.check-column {
    223     padding: 8px 0 22px;
     230    padding: 10px 0 22px;
    224231}
    225232/*
     
    231238.widefat .column-comments {
    232239    text-align: center;
     240}
     241
     242.widefat th#comments {
     243    vertical-align: middle;
    233244}
    234245
     
    263274
    264275.wrap h2 {
    265     border-bottom-width: 1px;
    266     border-bottom-style: solid;
    267276    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;
    273280}
    274281
  • trunk/wp-admin/edit-comments.php

    r9319 r9328  
    152152</ul>
    153153
    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
     165if ( isset( $_GET['apage'] ) )
     166    $page = abs( (int) $_GET['apage'] );
     167else
     168    $page = 1;
     169
     170$start = $offset = ( $page - 1 ) * $comments_per_page;
     171
     172list($_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' => __('&laquo;'),
     181    'next_text' => __('&raquo;'),
     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
     196if ( $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
    156217<?php if ( $comment_status ) echo "<input type='hidden' name='comment_status' value='$comment_status' />\n"; ?>
    157218<select name="comment_type">
     
    171232</select>
    172233<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
    236235<?php if ( isset($_GET['apage']) ) { ?>
    237236    <input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" />
     
    285284?>
    286285
    287 <div class="alignleft">
     286<div class="alignleft actions">
    288287<select name="action2">
    289288<option value="-1" selected="selected"><?php _e('Actions') ?></option>
  • trunk/wp-admin/edit-link-categories.php

    r9319 r9328  
    7777
    7878<div class="wrap">
    79 <h2><?php echo wp_specialchars( $title ); ?></h2>
     79<h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2>
    8080
    8181<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">
    8383<p class="search-box">
    8484    <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
    8585    <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" />
    8787</p>
    8888</form>
     
    102102    'base' => add_query_arg( 'pagenum', '%#%' ),
    103103    'format' => '',
     104    'prev_text' => __('&laquo;'),
     105    'next_text' => __('&raquo;'),
    104106    'total' => ceil(wp_count_terms('link_category') / $catsperpage),
    105107    'current' => $pagenum
     
    110112?>
    111113
    112 <div class="alignleft">
     114<div class="alignleft actions">
    113115<select name="action">
    114116<option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    166168?>
    167169
    168 <div class="alignleft">
     170<div class="alignleft actions">
    169171<select name="action2">
    170172<option value="" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/edit-pages.php

    r9319 r9328  
    169169    <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
    170170    <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" />
    172172</p>
    173173</form>
     
    192192    'base' => add_query_arg( 'pagenum', '%#%' ),
    193193    'format' => '',
     194    'prev_text' => __('&laquo;'),
     195    'next_text' => __('&raquo;'),
    194196    'total' => $num_pages,
    195197    'current' => $pagenum
     
    200202?>
    201203
    202 <div class="alignleft">
     204<div class="alignleft actions">
    203205<select name="action">
    204206<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
     
    245247?>
    246248
    247 <div class="alignleft">
     249<div class="alignleft actions">
    248250<select name="action2">
    249251<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/edit-tags.php

    r9319 r9328  
    144144
    145145<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">
    150149<p class="search-box">
    151150    <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
    152151    <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" />
    154153</p>
    155154</form>
     
    169168    'base' => add_query_arg( 'pagenum', '%#%' ),
    170169    'format' => '',
     170    'prev_text' => __('&laquo;'),
     171    'next_text' => __('&raquo;'),
    171172    'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
    172173    'current' => $pagenum
     
    177178?>
    178179
    179 <div class="alignleft">
     180<div class="alignleft actions">
    180181<select name="action">
    181182<option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    220221?>
    221222
    222 <div class="alignleft">
     223<div class="alignleft actions">
    223224<select name="action2">
    224225<option value="" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/edit.php

    r9319 r9328  
    154154</ul>
    155155
    156 <div class="filter">
    157 <form id="list-filter" action="" method="get">
    158 <?php
    159 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 <?php
    172 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     else
    180         $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 <?php
    191 $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 
    202156<form class="search-form" action="" method="get">
    203157<p class="search-box">
    204158    <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
    205159    <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" />
    207161</p>
    208162</form>
     
    220174    'base' => add_query_arg( 'paged', '%#%' ),
    221175    'format' => '',
     176    'prev_text' => __('&laquo;'),
     177    'next_text' => __('&raquo;'),
    222178    'total' => $wp_query->max_num_pages,
    223179    'current' => $_GET['paged']
     
    226182?>
    227183
    228 <div class="alignleft">
     184<div class="alignleft actions">
    229185<select name="action">
    230186<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
     
    234190<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    235191<?php wp_nonce_field('bulk-posts'); ?>
     192
     193<?php // view filters
     194if ( !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
     201if ( $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
     207foreach ($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);
     228wp_dropdown_categories($dropdown_options);
     229do_action('restrict_manage_posts');
     230?>
     231<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
     232
     233<?php } ?>
    236234</div>
    237235
     
    259257?>
    260258
    261 <div class="alignleft">
     259<div class="alignleft actions">
    262260<select name="action2">
    263261<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/includes/media.php

    r9210 r9328  
    15441544    'base' => add_query_arg( 'paged', '%#%' ),
    15451545    'format' => '',
     1546    'prev_text' => __('&laquo;'),
     1547    'next_text' => __('&raquo;'),
    15461548    'total' => ceil($wp_query->found_posts / 10),
    15471549    'current' => $_GET['paged']
     
    15521554?>
    15531555
    1554 <div class="alignleft">
     1556<div class="alignleft actions">
    15551557<?php
    15561558
  • trunk/wp-admin/includes/plugin-install.php

    r9314 r9328  
    260260?>
    261261    <div class="tablenav">
    262         <div class="alignleft">
     262        <div class="alignleft actions">
    263263        <?php do_action('install_plugins_table_header'); ?>
    264264        </div>
     
    273273                'base' => add_query_arg('paged', '%#%', $url),
    274274                'format' => '',
     275                'prev_text' => __('&laquo;'),
     276                'next_text' => __('&raquo;'),
    275277                'total' => $totalpages,
    276278                'current' => $page
  • trunk/wp-admin/link-manager.php

    r9319 r9328  
    9696
    9797<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
    102119<?php
    103120$categories = get_terms('link_category', "hide_empty=1");
     
    120137?>
    121138<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
    143140</div>
    144141
     
    266263<div class="tablenav">
    267264
    268 <div class="alignleft">
     265<div class="alignleft actions">
    269266<select name="action2">
    270267<option value="" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/plugins.php

    r9315 r9328  
    321321
    322322<div class="tablenav">
    323     <div class="alignleft">
     323    <div class="alignleft actions">
    324324        <select name="action">
    325325            <option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    343343
    344344<div class="tablenav">
    345     <div class="alignleft">
     345    <div class="alignleft actions">
    346346        <select name="action">
    347347            <option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    366366
    367367<div class="tablenav">
    368     <div class="alignleft">
     368    <div class="alignleft actions">
    369369        <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" />
    370370<?php if( current_user_can('delete_plugins') ) : ?>
  • trunk/wp-admin/themes.php

    r9233 r9328  
    5454    'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav',
    5555    'format' => '',
     56    'prev_text' => __('&laquo;'),
     57    'next_text' => __('&raquo;'),
    5658    'total' => ceil($theme_total / $per_page),
    5759    'current' => $page
  • trunk/wp-admin/upload.php

    r9319 r9328  
    217217</ul>
    218218
    219 <div class="filter">
    220 <form id="list-filter" action="" method="get">
    221 <?php
    222 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 <?php
    233 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     else
    241         $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 
    256219<form class="search-form" action="" method="get">
    257220<p class="search-box">
    258221    <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
    259222    <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" />
    261224</p>
    262225</form>
     
    271234    'base' => add_query_arg( 'paged', '%#%' ),
    272235    'format' => '',
     236    'prev_text' => __('&laquo;'),
     237    'next_text' => __('&raquo;'),
    273238    'total' => $page_links_total,
    274239    'current' => $_GET['paged']
     
    279244?>
    280245
    281 <div class="alignleft">
     246<div class="alignleft actions">
    282247<select name="action" class="select-action">
    283248<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
     
    289254<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
    290255<?php wp_nonce_field('bulk-media'); ?>
     256
     257<?php
     258if ( ! 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
     269foreach ($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 ?>
    291290
    292291<?php if ( isset($_GET['detached']) ) { ?>
     
    395394?>
    396395
    397 <div class="alignleft">
     396<div class="alignleft actions">
    398397<select name="action2" class="select-action">
    399398<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/users.php

    r9319 r9328  
    316316<?php endif; ?>
    317317
    318 <div class="alignleft">
     318<div class="alignleft actions">
    319319<select name="action">
    320320<option value="" selected="selected"><?php _e('Actions'); ?></option>
     
    329329<br class="clear" />
    330330</div>
    331 
    332 <br class="clear" />
    333331
    334332    <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
     
    384382<?php endif; ?>
    385383
    386 <div class="alignleft">
     384<div class="alignleft actions">
    387385<select name="action2">
    388386<option value="" selected="selected"><?php _e('Actions'); ?></option>
  • trunk/wp-admin/wp-admin.css

    r9324 r9328  
    259259}
    260260
    261 .submit input, .button, .button-secondary, .button-highlighted {
     261.submit input,
     262.button,
     263.button-primary,
     264.button-secondary,
     265.button-highlighted {
    262266    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;
    266272    border-width: 1px;
    267273    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;
    278295}
    279296
     
    516533
    517534.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;
    528542}
    529543
     
    558572}
    559573
    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 
    569574.tablenav {
    570575    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;
    578579}
    579580
    580581.tablenav .tablenav-pages {
    581582    float: right;
    582     height: 18px;
    583     padding-top: 6px;
    584583    font-size: 11px;
     584    height: 22px;
     585    line-height: 22px;
     586    padding: 7px 8px 0;
    585587}
    586588
    587589.tablenav .tablenav-pages a {
    588590    text-decoration: none;
     591}
     592
     593.tablenav .actions {
     594    padding: 7px 8px 0;
    589595}
    590596
     
    13481354}
    13491355
     1356.wrap h2.floatedh2 {
     1357    float: left;
     1358    margin: 5px 0;
     1359}
     1360
    13501361#poststuff h2 {
    13511362    margin-top: 20px;
     
    16871698p.search-box {
    16881699    float: right;
    1689     margin: -5px 0 0;
     1700    margin: -10px 0 0;
     1701}
     1702
     1703.topmargin p.search-box {
     1704    margin-top: 25px;
    16901705}
    16911706
     
    17431758.view-switch {
    17441759    float: right;
    1745     margin: 0 20px;
    1746     position: relative;
    1747     top: 2px;
     1760    margin: 9px 8px 0;
    17481761}
    17491762
Note: See TracChangeset for help on using the changeset viewer.