control_groups['form'] = [ 'title' => esc_html__( 'Form', 'propertyhive' ), 'tab' => 'content', // content / style ];*/ } public function set_controls() { /*$this->controls['form_id'] = [ // Unique control identifier (lowercase, no spaces) 'tab' => 'content', // Control tab: content/style //'group' => 'form', // Show under control group 'label' => esc_html__( 'Form ID', 'propertyhive' ), // Control label 'type' => 'text', // Control type 'default' => esc_html__( 'default', 'bricks' ), // Default setting ];*/ } public function render() { global $property; if ( !isset($property->id) ) { return; } if ( $property->address_postcode == '' ) { return; } $root_classes[] = $this->name; // Add 'class' attribute to element root tag $this->set_attribute( '_root', 'class', $root_classes ); echo "
render_attributes( '_root' )}>"; echo esc_html($property->address_postcode); echo '
'; } }