comments link

This commit is contained in:
Mike Jolley 2012-02-21 13:12:57 +00:00
parent fd459d702a
commit b842672e03
3 changed files with 17 additions and 4 deletions

View File

@ -23,7 +23,7 @@ function woocommerce_edit_order_columns($columns){
$columns["billing_address"] = __("Billing", 'woocommerce');
$columns["shipping_address"] = __("Shipping", 'woocommerce');
$columns["total_cost"] = __("Order Total", 'woocommerce');
$columns["comments"] = '<img alt="' . esc_attr__( 'Order Notes', 'woocommerce' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" />';
$columns["order_comments"] = '<img alt="' . esc_attr__( 'Order Notes', 'woocommerce' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" />';
$columns["note"] = '<img src="' . $woocommerce->plugin_url() . '/assets/images/note_head.png" alt="' . __("Customer Notes", 'woocommerce') . '" class="tips" tip="' . __("Customer Notes", 'woocommerce') . '" />';
$columns["order_date"] = __("Date", 'woocommerce');
$columns["order_actions"] = __("Actions", 'woocommerce');
@ -139,6 +139,12 @@ function woocommerce_custom_order_columns($column) {
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note-off.png" alt="no" class="tips" tip="'. __('No', 'woocommerce') .'" />';
break;
case "order_comments" :
echo '<div class="post-com-count-wrapper">
<a href="'. admin_url('post.php?post='.$post->ID.'&action=edit') .'" class="post-com-count"><span class="comment-count">'. $post->comment_count .'</span></a>
</div>';
break;
}
}

File diff suppressed because one or more lines are too long

View File

@ -693,11 +693,18 @@ table.wp-list-table {
text-align: center;
img {
margin: 0 auto;
padding-top: 0 !important;
}
}
th.column-note {
.column-order_comments {
width: 3em !important;
.post-com-count {
float: left;
}
}
th.column-note, th.column-order_comments {
img {
padding-top: 2px !important;
padding-top: 1px !important;
}
}
.manage-column.column-featured img, .manage-column.column-product_type img {