← All changes
|
includes/controllers/WooMailerLitePluginController.php
+8
-6
3.1.16
→
trunk
View file →
| @@ -31,11 +31,12 @@ | ||
| 31 | 31 | <input name="woo_ml_subscribe" type="hidden" id="woo_ml_subscribe" value="1" checked="checked"/> |
| 32 | 32 | <?php |
| 33 | 33 | } else { |
| 34 | 34 | woocommerce_form_field('woo_ml_subscribe', array( |
| 35 | - 'type' => 'checkbox', | |
| 36 | - 'label' => __($this->label, 'woo-mailerlite'), | |
| 37 | - 'checked' => $this->preselect ? 'checked' : '' | |
| 35 | + 'type' => 'checkbox', | |
| 36 | + 'label' => __($this->label, 'woo-mailerlite'), | |
| 37 | + 'checked' => $this->preselect ? 'checked' : '', | |
| 38 | + 'label_class' => ['woocommerce-form__label-for-checkbox'], | |
| 38 | 39 | ), (bool) $this->preselect); |
| 39 | 40 | } |
| 40 | 41 | } |
| 41 | 42 | |
| @@ -50,11 +51,12 @@ | ||
| 50 | 51 | $new_billing_fields[$key] = $field; |
| 51 | 52 | if ($key === 'billing_email') { |
| 52 | 53 | |
| 53 | 54 | $new_billing_fields['woo_ml_subscribe'] = [ |
| 54 | - 'type' => (!$this->hidden) ? 'checkbox' : 'hidden', | |
| 55 | - 'default' => $this->preselect, | |
| 56 | - 'required' => false, | |
| 55 | + 'type' => (!$this->hidden) ? 'checkbox' : 'hidden', | |
| 56 | + 'default' => $this->preselect, | |
| 57 | + 'required' => false, | |
| 58 | + 'label_class' => ['woocommerce-form__label-for-checkbox'], | |
| 57 | 59 | ]; |
| 58 | 60 | |
| 59 | 61 | if (!$this->hidden) { |
| 60 | 62 | $new_billing_fields['woo_ml_subscribe']['label'] = __($this->label, 'woo-mailerlite'); |