PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.1.0
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.1.0
1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
← All changes | inc/fields/checkbox-markup.php +1 -13 1.6.0 → 1.1.0 View file →
@@ -38,23 +38,12 @@
38 38 * @since 0.0.1
39 39 * @return string
40 40 */
41 41 public function markup() {
42 - // `sd-checkbox-field` is this block's own modifier. `sd-checkbox-block`
43 - // and the `sd-checkbox-*` element classes are a shared contract — the
44 - // anonymous-donation, cover-fees and privacy-consent fields write the
45 - // same markup by hand — so anything specific to the authorable field
46 - // (styling, and the frontend hooks that read its label and validate it)
47 - // keys off this class instead of the shared ones.
48 - $classes = $this->get_field_classes( [ 'sd-checkbox-field' ] );
42 + $classes = $this->get_field_classes();
49 43 $aria_desc = $this->get_aria_describedby();
50 44 $required_mark = $this->required ? '<span class="sd-required" aria-hidden="true">*</span>' : '';
51 45
52 - // The slug is the key the value is submitted, validated and stored
53 - // under. Without it the field renders but never reaches the server —
54 - // the failure mode #273 hit on the anonymous-donation checkbox.
55 - $data_slug = $this->block_slug ? $this->block_slug : $this->unique_slug;
56 -
57 46 ob_start();
58 47 ?>
59 48 <div data-block-id="<?php echo esc_attr( $this->block_id ); ?>" class="<?php echo esc_attr( $classes ); ?>">
60 49 <div class="sd-block-wrap sd-checkbox-wrap">
@@ -63,9 +52,8 @@
63 52 class="sd-input-checkbox"
64 53 type="checkbox"
65 54 name="<?php echo esc_attr( $this->field_name ); ?>"
66 55 id="<?php echo esc_attr( $this->unique_slug ); ?>"
67 - data-slug="<?php echo esc_attr( $data_slug ); ?>"
68 56 value="1"
69 57 <?php if ( ! empty( $aria_desc ) ) { ?>
70 58 aria-describedby="<?php echo esc_attr( $aria_desc ); ?>"
71 59 <?php } ?>