$attributes Block attributes. * @since 0.0.2 */ public function __construct( $attributes ) { $this->set_properties( $attributes ); $this->set_input_label( __( 'Checkbox', 'sureforms' ) ); $this->set_error_msg( $attributes, 'srfm_checkbox_block_required_text' ); $this->slug = 'checkbox'; $this->set_markup_properties(); $this->set_aria_described_by(); } /** * Render the sureforms checkbox classic styling * * @since 0.0.2 * @return string|bool */ 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 ) ) . "'" : ''; ?> name="srfm-slug ); ?>-block_id ); ?>field_name ); ?>" data-required="data_require_attr ); ?>" aria-required="data_require_attr ); ?>" type="checkbox" checked_attr ); ?>/>
help_markup ); ?>
error_msg_markup ); ?>
$this->slug, 'is_editing' => $this->is_editing, 'field_name' => $this->field_name, 'attributes' => $this->attributes, ] ); } }