control_groups['form'] = [ 'title' => esc_html__( 'Form', 'propertyhive' ), 'tab' => 'content', // content / style ];*/ } public function set_controls() { $this->controls['icon'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'Icon', 'propertyhive' ), 'type' => 'icon', ]; $this->controls['before'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'Before', 'propertyhive' ), 'type' => 'text', 'default' => __( 'Reeference:', 'propertyhive' ), ]; $this->controls['after'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'After', 'propertyhive' ), 'type' => 'text', ]; } public function render() { global $property; if ( !isset($property->id) ) { return; } if ( $property->reference_number == '' ) { return; } $root_classes[] = $this->name; // Add 'class' attribute to element root tag $this->set_attribute( '_root', 'class', $root_classes ); echo "