# propertyhive/2.4.0/includes/bricks-builder-widgets/property-enquiry-form.php

Property Hive, version 2.4.0. 63 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.4.0/code/includes/bricks-builder-widgets/property-enquiry-form.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.4.0/raw/includes/bricks-builder-widgets/property-enquiry-form.php
- Modified: 2026-09-16T09:29:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.4.0/code/includes/bricks-builder-widgets/property-enquiry-form.php#L10-L20`.

```php
<?php
/**
 * Bricks Builder Property Enquiry Form Widget.
 *
 * @since 1.0.0
 */

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

class Bricks_Builder_Property_Enquiry_Form_Widget extends \Bricks\Element {

	// Element properties
	public $category     = 'propertyhive';
  	public $name         = 'bricks-builder-property-enquiry-form';
  	public $icon         = 'fas fa-pen-to-square';

	public function get_label() 
	{
	    return esc_html__( 'Enquiry Form', 'propertyhive' );
	}

	public function set_control_groups() 
	{
		/*$this->control_groups['form'] = [
	      	'title' => esc_html__( 'Form', 'propertyhive' ),
	      	'tab' => 'content', // content / style
	    ];*/
	}

	public function set_controls() 
	{
		/*$this->controls['height'] = [
	      	'tab' => 'content',
	      	//'group' => 'settings',
	      	'label' => esc_html__( 'Height', 'propertyhive' ),
	      	'type' => 'number',
	      	'default' => 400
	    ];*/
	}

	public function render()
	{
		global $property;

		if ( !isset($property->id) ) 
		{
			return;
		}

		$root_classes[] = $this->name;

	    // Add 'class' attribute to element root tag
	    $this->set_attribute( '_root', 'class', $root_classes );

		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks serializes registered attributes through its documented render_attributes() API.
		echo "<div {$this->render_attributes( '_root' )}>";

			propertyhive_enquiry_form();

		echo '</div>';
	}
}

```
