Improved product type options, closes #12183
This commit is contained in:
parent
0c1e531091
commit
9b0b4be843
File diff suppressed because one or more lines are too long
|
@ -3323,9 +3323,13 @@ img.help_tip {
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select {
|
input, select {
|
||||||
margin: -3px 0 0 0.5em;
|
margin-top: -3px 0 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> .handlediv {
|
> .handlediv {
|
||||||
|
|
|
@ -69,7 +69,7 @@ class WC_Meta_Box_Product_Data {
|
||||||
$selected_value = $option['default'];
|
$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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue