New buttons and styling for all "management" pages

git-svn-id: http://svn.automattic.com/wordpress/trunk@9328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-10-24 18:25:46 +00:00
parent 2eb1ba967f
commit ee9c9b86cf
19 changed files with 284 additions and 237 deletions

View File

@ -148,14 +148,13 @@ if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
endif; ?> endif; ?>
<div class="wrap"> <div class="wrap">
<h2><?php echo wp_specialchars( $title ); ?></h2> <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> <form class="search-form topmargin" action="" method="get">
<form class="search-form" action="" method="get">
<p class="search-box"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label> <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button-primary" />
</p> </p>
</form> </form>
<br class="clear" /> <br class="clear" />
@ -173,6 +172,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 )
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil(wp_count_terms('category') / $catsperpage), 'total' => ceil(wp_count_terms('category') / $catsperpage),
'current' => $pagenum 'current' => $pagenum
)); ));
@ -181,7 +182,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>
@ -221,7 +222,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -20,13 +20,20 @@ body > #upload-menu {
border-bottom-color: #fff; border-bottom-color: #fff;
} }
div#current-widgets, #postcustomstuff table, #your-profile fieldset, div#current-widgets,
a.page-numbers, #rightnow, div.dashboard-widget, #postcustomstuff table,
#dashboard-widgets p.dashboard-widget-links, .widefat, #your-profile fieldset,
#rightnow,
div.dashboard-widget,
#dashboard-widgets p.dashboard-widget-links,
#replyrow #ed_reply_toolbar input { #replyrow #ed_reply_toolbar input {
border-color: #ccc; border-color: #ccc;
} }
.widefat {
border-color: #dfdfdf;
}
div.dashboard-widget-error { div.dashboard-widget-error {
background-color: #c43; background-color: #c43;
} }
@ -73,7 +80,7 @@ strong .post-com-count span {
background-color: #2583ad; background-color: #2583ad;
} }
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, #post-body ul#category-tabs li.ui-tabs-selected,
#quicktags, #login form .submit input, .search-box .button, #quicktags, #login form .submit input, .search-box .button,
#ed_reply_toolbar { #ed_reply_toolbar {
background-color: #cee1ef !important; background-color: #cee1ef !important;
@ -172,17 +179,6 @@ ul#widget-list li.widget-list-item h4.widget-title {
color: #9a9a9a; color: #9a9a9a;
} }
.page-numbers {
background-color: #fff;
border-color: #fff;
}
.page-numbers.current {
background-color: #328ab2;
border-color: #328ab2;
color: #fff;
}
.post-com-count { .post-com-count {
background-image: url(../images/bubble_bg.gif); background-image: url(../images/bubble_bg.gif);
color: #fff; color: #fff;
@ -211,8 +207,6 @@ ul#widget-list li.widget-list-item h4.widget-title {
} }
.submit input, .submit input,
.button,
.button-secondary,
#login form .submit input, #login form .submit input,
div.dashboard-widget-submit input, div.dashboard-widget-submit input,
#edit-slug-buttons a.save { #edit-slug-buttons a.save {
@ -221,6 +215,29 @@ div.dashboard-widget-submit input,
border-color: #80b5d0; border-color: #80b5d0;
} }
.button {
border-color: #DCDCDC;
color: #464646;
text-shadow: #FFF 0 1px 0;
}
.button-primary {
border-color: #21759B;
color: #FFF;
background: #21759B url(../images/button-grad.png) repeat-x scroll left top;
}
.button-secondary {
border-color: #CFE1EF;
color: #464646;
text-shadow: #FFF, 0 1px 0;
}
.button,
.button-secondary {
background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;
}
.button[disabled], .button:disabled { .button[disabled], .button:disabled {
background-color: #999; background-color: #999;
} }
@ -238,7 +255,12 @@ div.dashboard-widget-submit input,
color: #d54e21; color: #d54e21;
} }
.button-secondary:hover, #login form .submit input:hover { .button-primary:hover {
border-color: #156079;
}
.button-secondary:hover,
#login form .submit input:hover {
border-color: #328ab2; border-color: #328ab2;
} }
@ -305,10 +327,18 @@ div.dashboard-widget-submit input,
border-bottom-color: #2583ad; border-bottom-color: #2583ad;
} }
.widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li { a.page-numbers {
border-bottom-color: #B8D3E2;
}
div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li {
border-bottom-color: #ccc; border-bottom-color: #ccc;
} }
.widefat td, .widefat th {
border-color: #dfdfdf;
}
.widefat thead, .widefat thead,
.widefat tfoot, .widefat tfoot,
.thead, .thead,
@ -317,8 +347,8 @@ h3.dashboard-widget-title,
h3.dashboard-widget-title span, h3.dashboard-widget-title span,
h3.dashboard-widget-title small, h3.dashboard-widget-title small,
.find-box-head { .find-box-head {
background-color: #464646; color: #333;
color: #d7d7d7; background: #dfdfdf url(../images/gray-grad.png) repeat-x scroll left top;
} }
h3.dashboard-widget-title small a { h3.dashboard-widget-title small a {
@ -334,12 +364,6 @@ h3.dashboard-widget-title small a:hover {
color: #246; color: #246;
} }
.wrap h2 {
border-bottom-color: #dadada;
color: #666;
}
#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 { #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 {
color: #2583ad; color: #2583ad;
} }

View File

@ -174,10 +174,16 @@ h6 {
.widefat { .widefat {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
border-collapse: collapse; border-collapse: separate;
border-spacing: 0;
width: 100%; width: 100%;
clear: both; clear: both;
margin: 0; margin: 0;
-moz-border-radius: 4px;
-khtml-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
} }
.widefat a { .widefat a {
@ -202,7 +208,7 @@ h6 {
} }
.widefat th { .widefat th {
padding: 9px 15px 6px 10px; padding: 7px 15px 8px 10px;
text-align: left; text-align: left;
line-height: 1.3em; line-height: 1.3em;
} }
@ -210,6 +216,7 @@ h6 {
.widefat th input { .widefat th input {
margin: 0 0 0 8px; margin: 0 0 0 8px;
padding: 0; padding: 0;
vertical-align: text-top;
} }
.widefat .check-column { .widefat .check-column {
@ -220,7 +227,7 @@ h6 {
} }
.widefat tbody th.check-column { .widefat tbody th.check-column {
padding: 8px 0 22px; padding: 10px 0 22px;
} }
/* /*
th.check-column + th, th.check-column + td { th.check-column + th, th.check-column + td {
@ -232,6 +239,10 @@ th.check-column + th, th.check-column + td {
text-align: center; text-align: center;
} }
.widefat th#comments {
vertical-align: middle;
}
.wrap, .updated, .error { .wrap, .updated, .error {
margin: 0 15px; margin: 0 15px;
padding: 0; padding: 0;
@ -262,14 +273,10 @@ th.check-column + th, th.check-column + td {
} }
.wrap h2 { .wrap h2 {
border-bottom-width: 1px;
border-bottom-style: solid;
clear: both; clear: both;
font: 24px Georgia, "Times New Roman", Times, serif; font: italic normal normal 24px/29px Georgia, "Times New Roman", Times, serif;
margin: 5px 0 10px -4px; margin: 5px 0 10px;
padding: 0; padding: 8px 15px 4px 0;
padding-bottom: 7px;
padding-right: 280px;
} }
.wrap h2.long-header { .wrap h2.long-header {

View File

@ -151,33 +151,11 @@ unset($status_links);
?> ?>
</ul> </ul>
<div class="filter">
<form id="list-filter" action="" method="get">
<?php if ( $comment_status ) echo "<input type='hidden' name='comment_status' value='$comment_status' />\n"; ?>
<select name="comment_type">
<option value="all"><?php _e('Show all comment types'); ?></option>
<?php
$comment_types = apply_filters( 'admin_comment_types_dropdown', array(
'comment' => __('Comments'),
'pings' => __('Pings'),
) );
foreach ( $comment_types as $type => $label ) {
echo " <option value='$type'";
selected( $comment_type, $type );
echo ">$label</option>\n";
}
?>
</select>
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
</form>
</div>
<form class="search-form" action="" method="get"> <form class="search-form" action="" method="get">
<p class="search-box"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" /> <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button-primary" />
</p> </p>
</form> </form>
@ -199,6 +177,8 @@ $extra_comments = array_slice($_comments, $comments_per_page);
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'apage', '%#%' ), 'base' => add_query_arg( 'apage', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil($total / $comments_per_page), 'total' => ceil($total / $comments_per_page),
'current' => $page 'current' => $page
)); ));
@ -217,7 +197,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="-1" selected="selected"><?php _e('Actions') ?></option> <option value="-1" selected="selected"><?php _e('Actions') ?></option>
<?php if ( empty($comment_status) || 'approved' == $comment_status ): ?> <?php if ( empty($comment_status) || 'approved' == $comment_status ): ?>
@ -233,6 +213,25 @@ if ( $page_links )
</select> </select>
<input type="submit" name="doaction" id="doaction" value="<?php _e('Apply'); ?>" class="button-secondary apply" /> <input type="submit" name="doaction" id="doaction" value="<?php _e('Apply'); ?>" class="button-secondary apply" />
<?php wp_nonce_field('bulk-comments'); ?> <?php wp_nonce_field('bulk-comments'); ?>
<?php if ( $comment_status ) echo "<input type='hidden' name='comment_status' value='$comment_status' />\n"; ?>
<select name="comment_type">
<option value="all"><?php _e('Show all comment types'); ?></option>
<?php
$comment_types = apply_filters( 'admin_comment_types_dropdown', array(
'comment' => __('Comments'),
'pings' => __('Pings'),
) );
foreach ( $comment_types as $type => $label ) {
echo " <option value='$type'";
selected( $comment_type, $type );
echo ">$label</option>\n";
}
?>
</select>
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
<?php if ( isset($_GET['apage']) ) { ?> <?php if ( isset($_GET['apage']) ) { ?>
<input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" /> <input type="hidden" name="apage" value="<?php echo absint( $_GET['apage'] ); ?>" />
<?php } <?php }
@ -284,7 +283,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="-1" selected="selected"><?php _e('Actions') ?></option> <option value="-1" selected="selected"><?php _e('Actions') ?></option>
<?php if ( empty($comment_status) || 'approved' == $comment_status ): ?> <?php if ( empty($comment_status) || 'approved' == $comment_status ): ?>

View File

@ -76,14 +76,14 @@ $messages[6] = __('Categories deleted.'); ?>
endif; ?> endif; ?>
<div class="wrap"> <div class="wrap">
<h2><?php echo wp_specialchars( $title ); ?></h2> <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li><a class="current"><br /></a></li></ul> <ul class="subsubsub"><li><a class="current"><br /></a></li></ul>
<form class="search-form" action="" method="get"> <form class="search-form topmargin" action="" method="get">
<p class="search-box"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label> <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button-primary" />
</p> </p>
</form> </form>
<br class="clear" /> <br class="clear" />
@ -101,6 +101,8 @@ if( ! isset( $catsperpage ) || $catsperpage < 0 )
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil(wp_count_terms('link_category') / $catsperpage), 'total' => ceil(wp_count_terms('link_category') / $catsperpage),
'current' => $pagenum 'current' => $pagenum
)); ));
@ -109,7 +111,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>
@ -165,7 +167,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -168,7 +168,7 @@ endif;
<p class="search-box"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label> <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" /> <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button-primary" />
</p> </p>
</form> </form>
@ -191,6 +191,8 @@ $num_pages = ceil(count($posts) / $per_page);
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => $num_pages, 'total' => $num_pages,
'current' => $pagenum 'current' => $pagenum
)); ));
@ -199,7 +201,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option> <option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="edit"><?php _e('Edit'); ?></option> <option value="edit"><?php _e('Edit'); ?></option>
@ -244,7 +246,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option> <option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="edit"><?php _e('Edit'); ?></option> <option value="edit"><?php _e('Edit'); ?></option>

View File

@ -143,14 +143,13 @@ $messages[6] = __('Tags deleted.'); ?>
endif; ?> endif; ?>
<div class="wrap"> <div class="wrap">
<h2><?php echo wp_specialchars( $title ); ?></h2> <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> <form class="search-form topmargin" action="" method="get">
<form class="search-form" action="" method="get">
<p class="search-box"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label> <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" /> <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button-primary" />
</p> </p>
</form> </form>
<br class="clear" /> <br class="clear" />
@ -168,6 +167,8 @@ if( ! isset( $tagsperpage ) || $tagsperpage < 0 )
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ), 'base' => add_query_arg( 'pagenum', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil(wp_count_terms('post_tag') / $tagsperpage), 'total' => ceil(wp_count_terms('post_tag') / $tagsperpage),
'current' => $pagenum 'current' => $pagenum
)); ));
@ -176,7 +177,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>
@ -219,7 +220,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -153,9 +153,44 @@ endif;
?> ?>
</ul> </ul>
<div class="filter"> <form class="search-form" action="" method="get">
<form id="list-filter" action="" method="get"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button-primary" />
</p>
</form>
<form id="posts-filter" action="" method="get">
<?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php endif; ?>
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<div class="tablenav">
<?php <?php
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => $wp_query->max_num_pages,
'current' => $_GET['paged']
));
?>
<div class="alignleft actions">
<select name="action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="edit"><?php _e('Edit'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<?php wp_nonce_field('bulk-posts'); ?>
<?php // view filters
if ( !is_singular() ) { if ( !is_singular() ) {
$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"; $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,43 +231,6 @@ do_action('restrict_manage_posts');
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
<?php } ?> <?php } ?>
</form>
</div>
<form class="search-form" action="" method="get">
<p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
</p>
</form>
<form id="posts-filter" action="" method="get">
<?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php endif; ?>
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
<div class="tablenav">
<?php
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => $wp_query->max_num_pages,
'current' => $_GET['paged']
));
?>
<div class="alignleft">
<select name="action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="edit"><?php _e('Edit'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<?php wp_nonce_field('bulk-posts'); ?>
</div> </div>
<?php if ( $page_links ) { ?> <?php if ( $page_links ) { ?>
@ -258,7 +256,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option> <option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="edit"><?php _e('Edit'); ?></option> <option value="edit"><?php _e('Edit'); ?></option>

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

View File

@ -1543,6 +1543,8 @@ unset($type_links);
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ), 'base' => add_query_arg( 'paged', '%#%' ),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil($wp_query->found_posts / 10), 'total' => ceil($wp_query->found_posts / 10),
'current' => $_GET['paged'] 'current' => $_GET['paged']
)); ));
@ -1551,7 +1553,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<?php <?php
$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"; $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";

View File

@ -259,7 +259,7 @@ function display_plugins_table($plugins, $page = 1, $totalpages = 1){
?> ?>
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft actions">
<?php do_action('install_plugins_table_header'); ?> <?php do_action('install_plugins_table_header'); ?>
</div> </div>
<?php <?php
@ -272,6 +272,8 @@ function display_plugins_table($plugins, $page = 1, $totalpages = 1){
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg('paged', '%#%', $url), 'base' => add_query_arg('paged', '%#%', $url),
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => $totalpages, 'total' => $totalpages,
'current' => $page 'current' => $page
)); ));

View File

@ -95,10 +95,27 @@ if ( isset($_GET['deleted']) ) {
?> ?>
<div class="wrap"> <div class="wrap">
<h2><?php echo wp_specialchars( $title ); ?></h2> <h2 class="floatedh2"><?php echo wp_specialchars( $title ); ?></h2>
<form class="search-form topmargin" action="" method="get">
<p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
</p>
</form>
<br class="clear" />
<form id="posts-filter" action="" method="get">
<div class="tablenav">
<div class="alignleft actions">
<select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<div class="filter">
<form id="list-filter" action="" method="get">
<?php <?php
$categories = get_terms('link_category', "hide_empty=1"); $categories = get_terms('link_category', "hide_empty=1");
$select_cat = "<select name=\"cat_id\">\n"; $select_cat = "<select name=\"cat_id\">\n";
@ -119,27 +136,7 @@ echo $select_order;
?> ?>
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
</form></div>
<ul class="subsubsub"><li><a class="current"><br /></a></li></ul>
<form class="search-form" action="" method="get">
<p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
</p>
</form>
<br class="clear" />
<form id="posts-filter" action="" method="get">
<div class="tablenav">
<div class="alignleft">
<select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
</div> </div>
<br class="clear" /> <br class="clear" />
@ -265,7 +262,7 @@ if ( $links ) {
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -320,7 +320,7 @@ function print_plugins_table($plugins, $context = '') {
<?php wp_nonce_field('bulk-manage-plugins') ?> <?php wp_nonce_field('bulk-manage-plugins') ?>
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="deactivate-selected"><?php _e('Deactivate'); ?></option> <option value="deactivate-selected"><?php _e('Deactivate'); ?></option>
@ -342,7 +342,7 @@ function print_plugins_table($plugins, $context = '') {
<?php wp_nonce_field('bulk-manage-plugins') ?> <?php wp_nonce_field('bulk-manage-plugins') ?>
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="activate-selected"><?php _e('Activate'); ?></option> <option value="activate-selected"><?php _e('Activate'); ?></option>
@ -365,7 +365,7 @@ function print_plugins_table($plugins, $context = '') {
<?php wp_nonce_field('bulk-manage-plugins') ?> <?php wp_nonce_field('bulk-manage-plugins') ?>
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft actions">
<input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" /> <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" />
<?php if( current_user_can('delete_plugins') ) : ?> <?php if( current_user_can('delete_plugins') ) : ?>
<input type="submit" name="delete-selected" value="<?php _e('Delete') ?>" class="button-secondary" /> <input type="submit" name="delete-selected" value="<?php _e('Delete') ?>" class="button-secondary" />

View File

@ -53,6 +53,8 @@ $start = $offset = ( $page - 1 ) * $per_page;
$page_links = paginate_links( array( $page_links = paginate_links( array(
'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav', 'base' => add_query_arg( 'pagenum', '%#%' ) . '#themenav',
'format' => '', 'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => ceil($theme_total / $per_page), 'total' => ceil($theme_total / $per_page),
'current' => $page 'current' => $page
)); ));

View File

@ -216,8 +216,44 @@ unset($type_links);
?> ?>
</ul> </ul>
<div class="filter"> <form class="search-form" action="" method="get">
<form id="list-filter" action="" method="get"> <p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button-primary" />
</p>
</form>
<form id="posts-filter" action="" method="get">
<div class="tablenav">
<?php
if ( ! isset($page_links_total) )
$page_links_total = $wp_query->max_num_pages;
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'prev_text' => __('&laquo;'),
'next_text' => __('&raquo;'),
'total' => $page_links_total,
'current' => $_GET['paged']
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft actions">
<select name="action" class="select-action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
<?php if ( isset($orphans) ) { ?>
<option value="attach"><?php _e('Attach to a post'); ?></option>
<?php } ?>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<?php wp_nonce_field('bulk-media'); ?>
<?php <?php
if ( ! is_singular() && ! isset($_GET['detached']) ) { if ( ! is_singular() && ! isset($_GET['detached']) ) {
$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"; $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";
@ -251,43 +287,6 @@ foreach ($arc_result as $arc_row) {
<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> <input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" />
<?php } // ! is_singular ?> <?php } // ! is_singular ?>
</form></div>
<form class="search-form" action="" method="get">
<p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
</p>
</form>
<form id="posts-filter" action="" method="get">
<div class="tablenav">
<?php
if ( ! isset($page_links_total) )
$page_links_total = $wp_query->max_num_pages;
$page_links = paginate_links( array(
'base' => add_query_arg( 'paged', '%#%' ),
'format' => '',
'total' => $page_links_total,
'current' => $_GET['paged']
));
if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>";
?>
<div class="alignleft">
<select name="action" class="select-action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option>
<?php if ( isset($orphans) ) { ?>
<option value="attach"><?php _e('Attach to a post'); ?></option>
<?php } ?>
</select>
<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<?php wp_nonce_field('bulk-media'); ?>
<?php if ( isset($_GET['detached']) ) { ?> <?php if ( isset($_GET['detached']) ) { ?>
<input type="submit" id="find_detached" name="find_detached" value="<?php _e('Scan for lost attachments'); ?>" class="button-secondary" /> <input type="submit" id="find_detached" name="find_detached" value="<?php _e('Scan for lost attachments'); ?>" class="button-secondary" />
@ -394,7 +393,7 @@ if ( $page_links )
echo "<div class='tablenav-pages'>$page_links</div>"; echo "<div class='tablenav-pages'>$page_links</div>";
?> ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2" class="select-action"> <select name="action2" class="select-action">
<option value="-1" selected="selected"><?php _e('Actions'); ?></option> <option value="-1" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -315,7 +315,7 @@ unset($role_links);
<div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div> <div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div>
<?php endif; ?> <?php endif; ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action"> <select name="action">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>
@ -329,8 +329,6 @@ unset($role_links);
<br class="clear" /> <br class="clear" />
</div> </div>
<br class="clear" />
<?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?> <?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
<div class="error"> <div class="error">
<ul> <ul>
@ -383,7 +381,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
<div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div> <div class="tablenav-pages"><?php $wp_user_search->page_links(); ?></div>
<?php endif; ?> <?php endif; ?>
<div class="alignleft"> <div class="alignleft actions">
<select name="action2"> <select name="action2">
<option value="" selected="selected"><?php _e('Actions'); ?></option> <option value="" selected="selected"><?php _e('Actions'); ?></option>
<option value="delete"><?php _e('Delete'); ?></option> <option value="delete"><?php _e('Delete'); ?></option>

View File

@ -258,23 +258,40 @@ table#availablethemes td.bottom {
list-style: square; list-style: square;
} }
.submit input, .button, .button-secondary, .button-highlighted { .submit input,
.button,
.button-primary,
.button-secondary,
.button-highlighted {
font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
padding: 2px 4px; text-decoration: none;
font-size: 12px; font-size: 11px;
line-height: 1.5em; line-height: 16px;
padding: 2px 8px;
cursor: pointer;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-moz-border-radius: 3px; -moz-border-radius: 11px;
-khtml-border-radius: 3px; -khtml-border-radius: 11px;
-webkit-border-radius: 3px; -webkit-border-radius: 11px;
border-radius: 3px; border-radius: 11px;
cursor: pointer;
text-decoration: none;
} }
.preview { #doaction,
/* padding: 7px; */ #doaction2 {
margin-right: 8px;
}
.tablenav select[name="action"] {
width: 90px;
}
.tablenav select[name="m"] {
width: 120px;
}
.tablenav select#cat {
width: 150px;
} }
#publish { #publish {
@ -515,16 +532,13 @@ div.nav {
} }
.page-numbers { .page-numbers {
padding: 2px 4px; margin-right: 5px;
margin-right: 3px; border-bottom-width: 2px;
border-width: 1px; border-bottom-style: solid;
border-style: solid;
} }
#tablenav-pages .page-numbers.current { .tablenav-pages span.current {
font-weight: bold; border: 0 none;
border-width: 1px;
border-style: solid;
} }
p.pagenav { p.pagenav {
@ -557,37 +571,29 @@ p.pagenav {
margin: 1px 8px 0 0; margin: 1px 8px 0 0;
} }
.tablenav .button-secondary {
padding: 2px 4px;
vertical-align: top;
}
.tablenav .tablenav-pages a.next, .tablenav .tablenav-pages a.prev {
text-decoration: underline;
}
.tablenav { .tablenav {
clear: both; clear: both;
vertical-align: text-top; height: 40px;
/* margin: 6px 0;
height: 2em; vertical-align: middle;
padding: 7px 10px;
margin-bottom: -10px;
margin-top: 8px;
*/
} }
.tablenav .tablenav-pages { .tablenav .tablenav-pages {
float: right; float: right;
height: 18px;
padding-top: 6px;
font-size: 11px; font-size: 11px;
height: 22px;
line-height: 22px;
padding: 7px 8px 0;
} }
.tablenav .tablenav-pages a { .tablenav .tablenav-pages a {
text-decoration: none; text-decoration: none;
} }
.tablenav .actions {
padding: 7px 8px 0;
}
td.media-icon { td.media-icon {
vertical-align: middle; vertical-align: middle;
text-align: center; text-align: center;
@ -1347,6 +1353,11 @@ table.form-table td .updated {
text-decoration: underline; text-decoration: underline;
} }
.wrap h2.floatedh2 {
float: left;
margin: 5px 0;
}
#poststuff h2 { #poststuff h2 {
margin-top: 20px; margin-top: 20px;
font-size: 1.5em; font-size: 1.5em;
@ -1686,7 +1697,11 @@ p#big-add-button .button {
p.search-box { p.search-box {
float: right; float: right;
margin: -5px 0 0; margin: -10px 0 0;
}
.topmargin p.search-box {
margin-top: 25px;
} }
.search-input { .search-input {
@ -1742,9 +1757,7 @@ body.wp-admin {
.view-switch { .view-switch {
float: right; float: right;
margin: 0 20px; margin: 9px 8px 0;
position: relative;
top: 2px;
} }
.view-switch img { .view-switch img {