Hide actions in management tables, show on hover; improve comments table; fix "Configure" link position on dashboard, fixes #8386
git-svn-id: https://develop.svn.wordpress.org/trunk@9934 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3407b4e674
commit
653a3c3c4d
|
@ -8,7 +8,7 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="clear"></div></div><!-- wpbody-content -->
|
<div class="clear"></div></div><!-- wpbody-content -->
|
||||||
</div><!-- wpbody -->
|
<div class="clear"></div></div><!-- wpbody -->
|
||||||
<div class="clear"></div></div><!-- wpcontent -->
|
<div class="clear"></div></div><!-- wpcontent -->
|
||||||
</div><!-- wpwrap -->
|
</div><!-- wpwrap -->
|
||||||
|
|
||||||
|
|
|
@ -79,10 +79,8 @@ div.postbox div.inside {
|
||||||
|
|
||||||
#dashboard-widgets h3 a {
|
#dashboard-widgets h3 a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
float: right;
|
position: absolute;
|
||||||
position: relative;
|
right: 30px;
|
||||||
right: 5px;
|
|
||||||
top: -12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#dashboard-widgets h4 {
|
#dashboard-widgets h4 {
|
||||||
|
@ -272,8 +270,8 @@ div.postbox div.inside {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#the-comment-list .comment-item p.comment-actions {
|
#the-comment-list .comment-item p.row-actions {
|
||||||
margin: 3px 0 0 0;
|
margin: 3px 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -327,7 +327,7 @@ h6 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.widefat td {
|
.widefat td {
|
||||||
padding: 5px 7px;
|
padding: 7px 7px 5px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,8 +397,8 @@ h6 {
|
||||||
|
|
||||||
.wrap h2 {
|
.wrap h2 {
|
||||||
font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
margin: 13px 0 0 0;
|
margin: 0;
|
||||||
padding: 0 15px 1px 0;
|
padding: 15px 15px 3px 0;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
text-shadow: rgba(255,255,255,1) 0px 1px 0px;
|
text-shadow: rgba(255,255,255,1) 0px 1px 0px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,10 @@ div#dashboard-widgets {
|
||||||
#dashboard_plugins h3.hndle {
|
#dashboard_plugins h3.hndle {
|
||||||
direction: rtl;
|
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%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#favorite-inside {
|
#favorite-inside {
|
||||||
|
|
|
@ -179,6 +179,15 @@ ul#adminmenu {
|
||||||
}
|
}
|
||||||
/* end Inline Editor */
|
/* end Inline Editor */
|
||||||
|
|
||||||
|
* html .row-actions {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets h3 a {
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
#titlediv #title {
|
#titlediv #title {
|
||||||
width: 98%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -495,7 +495,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
||||||
|
|
||||||
<?php endif; // comment_type ?>
|
<?php endif; // comment_type ?>
|
||||||
<blockquote><p><?php comment_excerpt(); ?></p></blockquote>
|
<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">
|
<div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
|
||||||
<textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
|
<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>";
|
$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);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$edit .= '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
$edit .= "<span class='$action'>$link$sep</span>";
|
$edit .= "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
$edit .= '</div>';
|
||||||
} else {
|
} else {
|
||||||
$edit = $name;
|
$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>";
|
$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);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$edit .= '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
$edit .= "<span class='$action'>$link$sep</span>";
|
$edit .= "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
$edit .= '</div>';
|
||||||
} else {
|
} else {
|
||||||
$edit = $name;
|
$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>";
|
$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);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$out .= '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
$out .= "<span class='$action'>$link$sep</span>";
|
$out .= "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
$out .= '</div>';
|
||||||
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
|
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
|
||||||
$out .= '<div class="name">' . $qe_data->name . '</div>';
|
$out .= '<div class="name">' . $qe_data->name . '</div>';
|
||||||
$out .= '<div class="slug">' . $qe_data->slug . '</div></div></td>';
|
$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>';
|
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
$action_count = count($actions);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
echo "<span class='$action'>$link</span>$sep";
|
echo "<span class='$action'>$link</span>$sep";
|
||||||
}
|
}
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
get_inline_data($post);
|
get_inline_data($post);
|
||||||
?>
|
?>
|
||||||
|
@ -1555,12 +1563,15 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||||
else
|
else
|
||||||
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
$action_count = count($actions);
|
$action_count = count($actions);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
echo "<span class='$action'>$link$sep</span>";
|
echo "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
get_inline_data($post);
|
get_inline_data($post);
|
||||||
echo '</td>';
|
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>";
|
$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);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$edit .= '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
$edit .= "<span class='$action'>$link$sep</span>";
|
$edit .= "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
$edit .= '</div>';
|
||||||
} else {
|
} else {
|
||||||
$edit = '<strong>' . $user_object->user_login . '</strong>';
|
$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 );
|
$actions = apply_filters( 'comment_row_actions', $actions, $comment );
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
|
( ( ('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 "<span class='$action'>$sep$link</span>";
|
||||||
}
|
}
|
||||||
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|
|
@ -724,7 +724,7 @@ p.pagenav {
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-comment p {
|
.column-comment p {
|
||||||
margin-top: 0;
|
margin: 0.6em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column-author img, .column-username img {
|
.column-author img, .column-username img {
|
||||||
|
@ -817,6 +817,15 @@ a.view-comment-post-link {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.row-actions {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:hover .row-actions,
|
||||||
|
div.comment-item:hover .row-actions {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
/* Admin Header */
|
/* Admin Header */
|
||||||
#wphead-info {
|
#wphead-info {
|
||||||
margin: 0 0 0 15px;
|
margin: 0 0 0 15px;
|
||||||
|
@ -2010,13 +2019,15 @@ td.post-title strong {
|
||||||
}
|
}
|
||||||
|
|
||||||
td.post-title p {
|
td.post-title p {
|
||||||
margin: 0;
|
margin: 6px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Global classes */
|
/* Global classes */
|
||||||
|
|
||||||
.wp-hidden-children .wp-hidden-child { display: none; }
|
.wp-hidden-children .wp-hidden-child,
|
||||||
.ui-tabs-hide { display: none; }
|
.ui-tabs-hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.commentlist .avatar {
|
.commentlist .avatar {
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
|
@ -3097,9 +3108,9 @@ table.fixed {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed .comments .column-author,
|
#commentstatusdiv .fixed .column-author,
|
||||||
#commentstatusdiv .fixed .column-date,
|
#comments-form .fixed .column-author,
|
||||||
#commentstatusdiv .fixed .column-author {
|
#commentstatusdiv .fixed .column-date {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3115,6 +3126,6 @@ table.fixed {
|
||||||
.icon32 {
|
.icon32 {
|
||||||
float: left;
|
float: left;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
margin: 0 6px 0 0;
|
margin: 12px 6px 0 0;
|
||||||
width: 36px;
|
width: 36px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue