Hide actions in management tables, show on hover; improve comments table; fix "Configure" link position on dashboard, fixes #8386
git-svn-id: http://svn.automattic.com/wordpress/trunk@9934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
63b7ab11a1
commit
375aa1f81c
|
@ -8,7 +8,7 @@
|
|||
?>
|
||||
|
||||
<div class="clear"></div></div><!-- wpbody-content -->
|
||||
</div><!-- wpbody -->
|
||||
<div class="clear"></div></div><!-- wpbody -->
|
||||
<div class="clear"></div></div><!-- wpcontent -->
|
||||
</div><!-- wpwrap -->
|
||||
|
||||
|
|
|
@ -79,10 +79,8 @@ div.postbox div.inside {
|
|||
|
||||
#dashboard-widgets h3 a {
|
||||
text-decoration: underline;
|
||||
float: right;
|
||||
position: relative;
|
||||
right: 5px;
|
||||
top: -12px;
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
}
|
||||
|
||||
#dashboard-widgets h4 {
|
||||
|
@ -272,8 +270,8 @@ div.postbox div.inside {
|
|||
display: block;
|
||||
}
|
||||
|
||||
#the-comment-list .comment-item p.comment-actions {
|
||||
margin: 3px 0 0 0;
|
||||
#the-comment-list .comment-item p.row-actions {
|
||||
margin: 3px 0 0;
|
||||
padding: 0;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
|
|
@ -327,7 +327,7 @@ h6 {
|
|||
}
|
||||
|
||||
.widefat td {
|
||||
padding: 5px 7px;
|
||||
padding: 7px 7px 5px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
@ -397,8 +397,8 @@ h6 {
|
|||
|
||||
.wrap h2 {
|
||||
font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||
margin: 13px 0 0 0;
|
||||
padding: 0 15px 1px 0;
|
||||
margin: 0;
|
||||
padding: 15px 15px 3px 0;
|
||||
line-height: 35px;
|
||||
text-shadow: rgba(255,255,255,1) 0px 1px 0px;
|
||||
}
|
||||
|
|
|
@ -55,7 +55,10 @@ div#dashboard-widgets {
|
|||
#dashboard_plugins h3.hndle {
|
||||
direction: rtl;
|
||||
}
|
||||
#dashboard_incoming_links ul li, #dashboard_secondary ul li, #dashboard_primary ul li, p.comment-actions {
|
||||
#dashboard_incoming_links ul li,
|
||||
#dashboard_secondary ul li,
|
||||
#dashboard_primary ul li,
|
||||
p.row-actions {
|
||||
width: 100%;
|
||||
}
|
||||
#favorite-inside {
|
||||
|
|
|
@ -179,6 +179,15 @@ ul#adminmenu {
|
|||
}
|
||||
/* end Inline Editor */
|
||||
|
||||
* html .row-actions {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#dashboard-widgets h3 a {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
#titlediv #title {
|
||||
width: 98%;
|
||||
}
|
||||
|
|
|
@ -495,7 +495,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||
|
||||
<?php endif; // comment_type ?>
|
||||
<blockquote><p><?php comment_excerpt(); ?></p></blockquote>
|
||||
<p class="comment-actions"><?php echo $actions_string; ?></p>
|
||||
<p class="row-actions"><?php echo $actions_string; ?></p>
|
||||
|
||||
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
||||
<textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
|
||||
|
|
|
@ -126,11 +126,13 @@ function _cat_row( $category, $level, $name_override = false ) {
|
|||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("categories.php?action=delete&cat_ID=$category->term_id", 'delete-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
$edit .= '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
$edit .= "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
$edit .= '</div>';
|
||||
} else {
|
||||
$edit = $name;
|
||||
}
|
||||
|
@ -288,11 +290,13 @@ function link_cat_row( $category, $name_override = false ) {
|
|||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link-category.php?action=delete&cat_ID=$category->term_id", 'delete-link-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
$edit .= '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
$edit .= "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
$edit .= '</div>';
|
||||
} else {
|
||||
$edit = $name;
|
||||
}
|
||||
|
@ -605,11 +609,13 @@ function _tag_row( $tag, $class = '' ) {
|
|||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("edit-tags.php?action=delete&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this tag '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
$out .= '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
$out .= "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
$out .= '</div>';
|
||||
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
|
||||
$out .= '<div class="name">' . $qe_data->name . '</div>';
|
||||
$out .= '<div class="slug">' . $qe_data->slug . '</div></div></td>';
|
||||
|
@ -1372,11 +1378,13 @@ function _post_row($a_post, $pending_comments, $mode) {
|
|||
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
echo '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
echo "<span class='$action'>$link</span>$sep";
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
get_inline_data($post);
|
||||
?>
|
||||
|
@ -1555,12 +1563,15 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
|||
else
|
||||
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||
$action_count = count($actions);
|
||||
|
||||
$i = 0;
|
||||
echo '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
echo "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
get_inline_data($post);
|
||||
echo '</td>';
|
||||
|
@ -1784,11 +1795,13 @@ function user_row( $user_object, $style = '', $role = '' ) {
|
|||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("users.php?action=delete&user=$user_object->ID", 'bulk-users') . "'>" . __('Delete') . "</a>";
|
||||
$action_count = count($actions);
|
||||
$i = 0;
|
||||
$edit .= '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||
$edit .= "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
$edit .= '</div>';
|
||||
} else {
|
||||
$edit = '<strong>' . $user_object->user_login . '</strong>';
|
||||
}
|
||||
|
@ -2008,6 +2021,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
|||
$actions = apply_filters( 'comment_row_actions', $actions, $comment );
|
||||
|
||||
$i = 0;
|
||||
echo '<div class="row-actions">';
|
||||
foreach ( $actions as $action => $link ) {
|
||||
++$i;
|
||||
( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
|
||||
|
@ -2018,6 +2032,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
|||
|
||||
echo "<span class='$action'>$sep$link</span>";
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</td>';
|
||||
|
|
|
@ -724,7 +724,7 @@ p.pagenav {
|
|||
}
|
||||
|
||||
.column-comment p {
|
||||
margin-top: 0;
|
||||
margin: 0.6em 0;
|
||||
}
|
||||
|
||||
.column-author img, .column-username img {
|
||||
|
@ -817,6 +817,15 @@ a.view-comment-post-link {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.row-actions {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
tr:hover .row-actions,
|
||||
div.comment-item:hover .row-actions {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
/* Admin Header */
|
||||
#wphead-info {
|
||||
margin: 0 0 0 15px;
|
||||
|
@ -2010,13 +2019,15 @@ td.post-title strong {
|
|||
}
|
||||
|
||||
td.post-title p {
|
||||
margin: 0;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
/* Global classes */
|
||||
|
||||
.wp-hidden-children .wp-hidden-child { display: none; }
|
||||
.ui-tabs-hide { display: none; }
|
||||
.wp-hidden-children .wp-hidden-child,
|
||||
.ui-tabs-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.commentlist .avatar {
|
||||
vertical-align: text-top;
|
||||
|
@ -3097,9 +3108,9 @@ table.fixed {
|
|||
width: 80px;
|
||||
}
|
||||
|
||||
.fixed .comments .column-author,
|
||||
#commentstatusdiv .fixed .column-date,
|
||||
#commentstatusdiv .fixed .column-author {
|
||||
#commentstatusdiv .fixed .column-author,
|
||||
#comments-form .fixed .column-author,
|
||||
#commentstatusdiv .fixed .column-date {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
|
@ -3115,6 +3126,6 @@ table.fixed {
|
|||
.icon32 {
|
||||
float: left;
|
||||
height: 36px;
|
||||
margin: 0 6px 0 0;
|
||||
margin: 12px 6px 0 0;
|
||||
width: 36px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue