$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 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->data_require_attr = 'true'; $this->set_markup_properties(); $this->set_aria_described_by(); // Translate the default GDPR consent text for frontend display. // Match both old ("submitted information") and new ("information") default strings for backward compatibility. if ( 'I consent to have this website store my information so they can respond to my inquiry.' === $this->label || 'I consent to have this website store my submitted information so they can respond to my inquiry.' === $this->label ) { $this->label = __( 'I consent to have this website store my information so they can respond to my inquiry.', 'sureforms' ); } } /** * Render the sureforms GDPR classic styling * * @since 0.0.2 * @return string|bool */ public function markup() { $label_random_id = 'srfm-' . $this->slug . '-' . wp_rand(); ob_start(); ?>