PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 0.0.13
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v0.0.13
2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 All 97 releases
sureforms / inc / blocks / gdpr / block.php

block.php in SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz 0.0.13, at inc/blocks/gdpr/block.php

41 lines 719 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * GDPR Block.
4 *
5 * @package SureForms.
6 * @since 0.0.2
7 */
8
9 namespace SRFM\Inc\Blocks\GDPR;
10
11 use SRFM\Inc\Blocks\Base;
12 use SRFM\Inc\Fields\GDPR_Markup;
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly.
16 }
17
18 /**
19 * GDPR Block.
20 */
21 class Block extends Base {
22 /**
23 * Render form GDPR block
24 *
25 * @param array<mixed> $attributes Block attributes.
26 * @param string $content Post content.
27 *
28 * @return string|boolean
29 * @since 0.0.2
30 */
31 public function render( $attributes, $content = '' ) {
32 if ( ! empty( $attributes ) ) {
33 $markup_class = new GDPR_Markup( $attributes );
34 ob_start();
35 // phpcs:ignore
36 echo $markup_class->markup();
37 }
38 return ob_get_clean();
39 }
40 }
41