Your IP : 3.135.220.9


Current Path : /home/ephorei/www/wp-includes/images/media/q2m9hb/
Upload File :
Current File : /home/ephorei/www/wp-includes/images/media/q2m9hb/gdpr.tar

block.php000064400000001216150062046700006347 0ustar00<?php
/**
 * GDPR Block.
 *
 * @package SureForms.
 * @since 0.0.2
 */

namespace SRFM\Inc\Blocks\GDPR;

use SRFM\Inc\Blocks\Base;
use SRFM\Inc\Fields\GDPR_Markup;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * GDPR Block.
 */
class Block extends Base {
	/**
	 * Render form GDPR block
	 *
	 * @param array<mixed> $attributes Block attributes.
	 *
	 * @return string|bool
	 * @since 0.0.2
	 */
	public function render( $attributes ) {
		if ( ! empty( $attributes ) ) {
			$markup_class = new GDPR_Markup( $attributes );
			ob_start();
			// phpcs:ignore
			echo $markup_class->markup();
		}
		return ob_get_clean();
	}
}
block.json000064400000002157150062046700006536 0ustar00{
  "apiVersion": 2,
  "name": "srfm/gdpr",
  "title": "GDPR Agreement",
  "description": "Displays a SureForm GDPR Agreement Field",
  "category": "sureforms",
  "keywords": [
    "gdpr",
    "compliance",
    "checkbox",
    "agreement"
  ],
  "textdomain": "sureforms",
  "supports": {
    "reusable": false,
    "html": false
  },
  "example": {
    "attributes": {
      "preview": true
    }
  },
  "attributes": {
    "preview": {
      "type": "boolean",
      "default": false
    },
    "block_id": {
      "type": "string"
    },
    "fieldWidth": {
      "type": "number",
      "default": 100
    },
    "label": {
      "type": "string",
      "default": "I consent to have this website store my submitted information so they can respond to my inquiry."
    },
    "checked": {
      "type": "boolean",
      "default": false
    },
    "help": {
      "type": "string",
      "default": ""
    },
    "errorMsg": {
      "type": "string",
      "default": ""
    },
    "formId": {
      "type": "number",
      "default": ""
    },
    "isConditionalLogic": {
      "type": "boolean",
      "default": false
    }
  }
}