order actions #3294
This commit is contained in:
parent
0543794eac
commit
d96579ed89
|
@ -175,8 +175,7 @@ function woocommerce_custom_order_columns( $column ) {
|
||||||
$actions = apply_filters( 'woocommerce_admin_order_actions', $actions, $the_order );
|
$actions = apply_filters( 'woocommerce_admin_order_actions', $actions, $the_order );
|
||||||
|
|
||||||
foreach ( $actions as $action ) {
|
foreach ( $actions as $action ) {
|
||||||
$image = ( isset( $action['image_url'] ) ) ? $action['image_url'] : $woocommerce->plugin_url() . '/assets/images/icons/' . $action['action'] . '.png';
|
printf( '<a class="button tips %s" href="%s" data-tip="%s">%s</a>', esc_attr( $action['action'] ), esc_url( $action['url'] ), esc_attr( $action['name'] ), esc_attr( $action['name'] ) );
|
||||||
printf( '<a class="button tips" href="%s" data-tip="%s"><img src="%s" alt="%s" width="14" /></a>', esc_url( $action['url'] ), esc_attr( $action['name'] ), esc_attr( $image ), esc_attr( $action['name'] ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_action( 'woocommerce_admin_order_actions_end', $the_order );
|
do_action( 'woocommerce_admin_order_actions_end', $the_order );
|
||||||
|
@ -187,9 +186,9 @@ function woocommerce_custom_order_columns( $column ) {
|
||||||
case "note" :
|
case "note" :
|
||||||
|
|
||||||
if ( $the_order->customer_note )
|
if ( $the_order->customer_note )
|
||||||
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note.png" alt="yes" class="tips" data-tip="' . __( 'Yes', 'woocommerce' ) . '" width="14" height="14" />';
|
echo '<span class="note-on tips" data-tip="' . __( 'Yes', 'woocommerce' ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>';
|
||||||
else
|
else
|
||||||
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note-off.png" alt="no" class="tips" data-tip="' . __( 'No', 'woocommerce' ) . '" width="14" height="14" />';
|
echo '<span class="note-off tips" data-tip="' . __( 'No', 'woocommerce' ) . '">' . __( 'No', 'woocommerce' ) . '</span>';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "order_comments" :
|
case "order_comments" :
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1148,6 +1148,42 @@ ul.wc_coupon_list_block {
|
||||||
padding-top:10px;
|
padding-top:10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.column-note {
|
||||||
|
.note-off, .note-on {
|
||||||
|
.ir;
|
||||||
|
margin:0 auto;
|
||||||
|
color: #999;
|
||||||
|
&:after {
|
||||||
|
.icon;
|
||||||
|
content: "\e028";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.note-on:after {
|
||||||
|
color: @woocommerce;
|
||||||
|
content: "\e026";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.order_actions {
|
||||||
|
.processing, .complete, .view {
|
||||||
|
.ir;
|
||||||
|
padding:0 !important;
|
||||||
|
height: 2em !important;
|
||||||
|
width:2em;
|
||||||
|
&:after {
|
||||||
|
.icon;
|
||||||
|
line-height: 1.85;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.processing:after {
|
||||||
|
content: "\e00f";
|
||||||
|
}
|
||||||
|
.complete:after {
|
||||||
|
content: "\e017";
|
||||||
|
}
|
||||||
|
.view:after {
|
||||||
|
content: "\e010";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Order notes */
|
/* Order notes */
|
||||||
ul.order_notes {
|
ul.order_notes {
|
||||||
|
|
|
@ -142,6 +142,7 @@
|
||||||
left:0;
|
left:0;
|
||||||
width:100%;
|
width:100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.iconbefore() {
|
.iconbefore() {
|
||||||
font-family: 'WooCommerce';
|
font-family: 'WooCommerce';
|
||||||
|
|
Loading…
Reference in New Issue