Skip to content

Commit

Permalink
feat: add checkbox label setting
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Jul 24, 2023
1 parent dbde18f commit ca11e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function get_form_editor_field_settings(): array
'error_message_setting',
'css_class_setting',
'conditional_logic_field_setting',
'checkbox_label_setting',
];
}

Expand All @@ -50,7 +51,6 @@ public function get_field_input($form, $value = '', $entry = null): string
{
$id = (int) $this->id;
$giftaidImage = ITINERIS_GF_GIFT_AID_FIELD_URI . '/public/img/giftaid.svg';

ob_start();
?>
<div class="gift-box-wrapper bg-gray-50 rounded-br-4 p-7.5">
Expand All @@ -73,7 +73,7 @@ class="gfield-choice-input"
value="Yes"
>
<label for="gift-check-<?php echo esc_attr($id); ?>">
<?php echo esc_html($this->label); ?>
<?php echo esc_html($this->checkboxLabel); ?>
</label>
</div>
</div>
Expand Down

0 comments on commit ca11e65

Please sign in to comment.