$attributes Block attributes. * @since 0.0.2 */ public function __construct( $attributes ) { $this->set_properties( $attributes ); $this->set_input_label( __( 'I consent to have this website store my submitted information so they can respond to my inquiry.', 'sureforms' ) ); $this->set_error_msg( $attributes, 'srfm_gdpr_block_required_text' ); $this->slug = 'gdpr'; $this->required = true; $this->aria_require_attr = 'true'; $this->set_markup_properties(); $this->set_aria_described_by(); } /** * Render the sureforms GDPR classic styling * * @since 0.0.2 * @return string|boolean */ public function markup() { $label_random_id = 'srfm-' . $this->slug . '-' . wp_rand(); ob_start(); ?>
aria_described_by ) ? "aria-describedby='" . esc_attr( trim( $this->aria_described_by ) ) . "'" : ''; ?> aria-required="aria_require_attr ); ?>" type="checkbox" checked_attr ); ?>/>
help_markup ); ?>
error_msg_markup ); ?>