Some first pass styling changes for manage pages.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f8be8cb880
commit
d3277c0efd
|
@ -11,6 +11,9 @@ require_once('admin-header.php');
|
||||||
add_filter( 'post_limits', $limit_filter = create_function( '$a', '$b = split(" ",$a); if ( !isset($b[2]) ) return $a; $start = intval(trim($b[1])) / 20 * 15; if ( !is_int($start) ) return $a; return "LIMIT $start, 20";' ) );
|
add_filter( 'post_limits', $limit_filter = create_function( '$a', '$b = split(" ",$a); if ( !isset($b[2]) ) return $a; $start = intval(trim($b[1])) / 20 * 15; if ( !is_int($start) ) return $a; return "LIMIT $start, 20";' ) );
|
||||||
list($post_stati, $avail_post_stati) = wp_edit_posts_query();
|
list($post_stati, $avail_post_stati) = wp_edit_posts_query();
|
||||||
$wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )
|
$wp_query->max_num_pages = ceil( $wp_query->found_posts / 15 ); // We grab 20 but only show 15 ( 5 more for ajax extra )
|
||||||
|
|
||||||
|
if ( !isset( $_GET['paged'] ) )
|
||||||
|
$_GET['paged'] = 1;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -32,7 +35,7 @@ $posts_columns = wp_manage_posts_columns();
|
||||||
if ( is_single() ) {
|
if ( is_single() ) {
|
||||||
printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
|
printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
|
||||||
} else {
|
} else {
|
||||||
$post_status_label = _c('Posts|manage posts header');
|
$post_status_label = _c('Manage Posts|manage posts header');
|
||||||
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )
|
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )
|
||||||
$post_status_label = $post_stati[$_GET['post_status']][1];
|
$post_status_label = $post_stati[$_GET['post_status']][1];
|
||||||
if ( $post_listing_pageable && !is_archive() && !is_search() )
|
if ( $post_listing_pageable && !is_archive() && !is_search() )
|
||||||
|
@ -57,12 +60,8 @@ if ( is_single() ) {
|
||||||
printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month );
|
printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month );
|
||||||
}
|
}
|
||||||
?></h2>
|
?></h2>
|
||||||
<p id="post-search">
|
|
||||||
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
|
|
||||||
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" />
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<ul id="statusmenu">
|
<ul class="subsubsub">
|
||||||
<?php
|
<?php
|
||||||
$status_links = array();
|
$status_links = array();
|
||||||
foreach ( $post_stati as $status => $label ) {
|
foreach ( $post_stati as $status => $label ) {
|
||||||
|
@ -85,25 +84,31 @@ unset($status_links);
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<fieldset><legend><?php _e('Status…'); ?></legend>
|
<p id="post-search">
|
||||||
<select name='post_status'>
|
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||||
<option<?php selected( @$_GET['post_status'], 0 ); ?> value='0'><?php _e('Any'); ?></option>
|
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" />
|
||||||
<?php foreach ( $post_stati as $status => $label ) : if ( !in_array($status, $avail_post_stati) ) continue; ?>
|
</p>
|
||||||
<option<?php selected( @$_GET['post_status'], $status ); ?> value='<?php echo $status; ?>'><?php echo $label[0]; ?></option>
|
|
||||||
<?php endforeach; ?>
|
<?php do_action('restrict_manage_posts'); ?>
|
||||||
</select>
|
|
||||||
</fieldset>
|
<br style="clear:both;" />
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$editable_ids = get_editable_user_ids( $user_ID );
|
$page_links = paginate_links( array(
|
||||||
if ( $editable_ids && count( $editable_ids ) > 1 ) :
|
'base' => add_query_arg( 'paged', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'total' => ceil($wp_query->found_posts / 15),
|
||||||
|
'current' => $_GET['paged']
|
||||||
|
));
|
||||||
|
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
?>
|
?>
|
||||||
<fieldset><legend><?php _e('Author…'); ?></legend>
|
|
||||||
<?php wp_dropdown_users( array('include' => $editable_ids, 'show_option_all' => __('Any'), 'name' => 'author', 'selected' => isset($_GET['author']) ? $_GET['author'] : 0) ); ?>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
|
<div style="float: left">
|
||||||
<?php
|
<?php
|
||||||
endif;
|
|
||||||
|
|
||||||
$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";
|
||||||
|
|
||||||
|
@ -112,10 +117,8 @@ $arc_result = $wpdb->get_results( $arc_query );
|
||||||
$month_count = count($arc_result);
|
$month_count = count($arc_result);
|
||||||
|
|
||||||
if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?>
|
if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?>
|
||||||
|
|
||||||
<fieldset><legend><?php _e('Month…') ?></legend>
|
|
||||||
<select name='m'>
|
<select name='m'>
|
||||||
<option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Any'); ?></option>
|
<option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($arc_result as $arc_row) {
|
foreach ($arc_result as $arc_row) {
|
||||||
if ( $arc_row->yyear == 0 )
|
if ( $arc_row->yyear == 0 )
|
||||||
|
@ -133,17 +136,16 @@ if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<fieldset><legend><?php _e('Category…') ?></legend>
|
<?php wp_dropdown_categories('show_option_all='.__('View all categories').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
|
||||||
<?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.$cat);?>
|
|
||||||
</fieldset>
|
|
||||||
<input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" />
|
<input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" />
|
||||||
</form>
|
|
||||||
|
|
||||||
<?php do_action('restrict_manage_posts'); ?>
|
</div>
|
||||||
|
|
||||||
|
<br style="clear:both;" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
<br style="clear:both;" />
|
<br style="clear:both;" />
|
||||||
|
|
||||||
|
@ -155,6 +157,15 @@ if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) { ?
|
||||||
|
|
||||||
<div id="ajax-response"></div>
|
<div id="ajax-response"></div>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
<div class="alignleft"><?php next_posts_link(__('« Older Entries')) ?></div>
|
<div class="alignleft"><?php next_posts_link(__('« Older Entries')) ?></div>
|
||||||
<div class="alignright"><?php previous_posts_link(__('Newer Entries »')) ?></div>
|
<div class="alignright"><?php previous_posts_link(__('Newer Entries »')) ?></div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
/* For Win IE's eyes only */
|
/* For Win IE's eyes only */
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #00019b;
|
color: #2583ad;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,7 +326,6 @@ form#upload #post_content {
|
||||||
}
|
}
|
||||||
|
|
||||||
.updated a {
|
.updated a {
|
||||||
color: #2583ad;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
border-bottom: 1px solid #2583ad;
|
border-bottom: 1px solid #2583ad;
|
||||||
|
@ -745,6 +744,7 @@ div.nav {
|
||||||
padding: 4px 7px;
|
padding: 4px 7px;
|
||||||
border: 1px solid #fff;
|
border: 1px solid #fff;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.page-numbers {
|
a.page-numbers {
|
||||||
|
@ -756,8 +756,10 @@ a.page-numbers:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-numbers.current {
|
.page-numbers.current {
|
||||||
border: 1px solid #999;
|
border: 1px solid #328ab2;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
background-color: #328ab2;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.pagenav {
|
p.pagenav {
|
||||||
|
@ -903,7 +905,6 @@ a.view-comment-post-link {
|
||||||
|
|
||||||
#adminmenu a {
|
#adminmenu a {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #2583ad;
|
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
line-height: 200%;
|
line-height: 200%;
|
||||||
border: 1px solid #e4f2fd;
|
border: 1px solid #e4f2fd;
|
||||||
|
@ -936,7 +937,6 @@ a.view-comment-post-link {
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidemenu a {
|
#sidemenu a {
|
||||||
color: #2583ad;
|
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
line-height: 200%;
|
line-height: 200%;
|
||||||
}
|
}
|
||||||
|
@ -998,7 +998,6 @@ a.view-comment-post-link {
|
||||||
|
|
||||||
#submenu a {
|
#submenu a {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #2583ad;
|
|
||||||
padding: 0 0 8px 17px;
|
padding: 0 0 8px 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1010,23 +1009,33 @@ a.view-comment-post-link {
|
||||||
height: 15px;
|
height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#statusmenu {
|
.subsubsub {
|
||||||
margin: 0;
|
margin: 15px 0 10px 0;
|
||||||
|
padding: 0;
|
||||||
color: #999;
|
color: #999;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#statusmenu a {
|
.subsubsub li {
|
||||||
color: #2583ad;
|
display: inline;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub a {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
line-height: 200%;
|
line-height: 200%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#statusmenu a:hover, #statusmenu a.current, #statusmenu a.current:hover {
|
.subsubsub a:hover, .subsubsub a.current:hover {
|
||||||
color: #d54e21;
|
color: #d54e21;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.subsubsub a.current {
|
||||||
|
color: #000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
/* end menu stuff */
|
/* end menu stuff */
|
||||||
|
|
||||||
/* Admin Footer */
|
/* Admin Footer */
|
||||||
|
@ -1454,11 +1463,22 @@ p#post-search {
|
||||||
padding: 0 0 .2em 1px;
|
padding: 0 0 .2em 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tablenav {
|
||||||
|
background-color: #e4f2fd;
|
||||||
|
padding: 10px;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablenav .dots {
|
||||||
|
border-color: #e4f2fd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablenav .tablenav-pages {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
/* Global classes */
|
/* Global classes */
|
||||||
.wp-hidden-children .wp-hidden-child { display: none; }
|
.wp-hidden-children .wp-hidden-child { display: none; }
|
||||||
.wp-no-js-hidden { display: none; }
|
.wp-no-js-hidden { display: none; }
|
||||||
.ui-tabs-hide { display: none; }
|
.ui-tabs-hide { display: none; }
|
||||||
.form-input-tip { color: #999; }
|
.form-input-tip { color: #999; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue