Improved product type options, closes #12183

This commit is contained in:
Claudio Sanches 2016-10-27 15:06:33 -02:00
parent 0c1e531091
commit 9b0b4be843
3 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -3323,9 +3323,13 @@ img.help_tip {
}
input, select {
margin: -3px 0 0 0.5em;
margin-top: -3px 0 0;
vertical-align: middle;
}
select {
margin-left: 0.5em;
}
}
> .handlediv {

View File

@ -69,7 +69,7 @@ class WC_Meta_Box_Product_Data {
$selected_value = $option['default'];
}
$type_box .= '<label for="' . esc_attr( $option['id'] ) . '" class="' . esc_attr( $option['wrapper_class'] ) . ' tips" data-tip="' . esc_attr( $option['description'] ) . '">' . esc_html( $option['label'] ) . ': <input type="checkbox" name="' . esc_attr( $option['id'] ) . '" id="' . esc_attr( $option['id'] ) . '" ' . checked( $selected_value, 'yes', false ) . ' /></label>';
$type_box .= '<label for="' . esc_attr( $option['id'] ) . '" class="' . esc_attr( $option['wrapper_class'] ) . ' tips" data-tip="' . esc_attr( $option['description'] ) . '"><input type="checkbox" name="' . esc_attr( $option['id'] ) . '" id="' . esc_attr( $option['id'] ) . '" ' . checked( $selected_value, 'yes', false ) . ' /> ' . esc_html( $option['label'] ) . '</label>';
}
?>