control_groups['form'] = [ 'title' => esc_html__( 'Form', 'propertyhive' ), 'tab' => 'content', // content / style ];*/ } public function set_controls() { $this->controls['image_number'] = [ // Unique control identifier (lowercase, no spaces) 'tab' => 'content', // Control tab: content/style //'group' => 'form', // Show under control group 'label' => esc_html__( 'Image #', 'propertyhive' ), // Control label 'type' => 'text', // Control type 'default' => 1 ]; $this->controls['image_size'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'Type', 'propertyhive' ), 'type' => 'select', 'options' => [ 'thumbnail' => __( 'Thumbnail', 'propertyhive' ), 'medium' => __( 'Medium', 'propertyhive' ), 'large' => __( 'Large', 'propertyhive' ), 'full' => __( 'Full', 'propertyhive' ), ], //'inline' => true, //'clearable' => false, //'pasteStyles' => false, 'default' => 'large', ]; $this->controls['output_ratio'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'Image Ratio', 'propertyhive' ), 'type' => 'select', 'options' => [ '' => __( 'Uploaded Ratio', 'propertyhive' ), '3:2' => __( '3:2', 'propertyhive' ), '4:3' => __( '4:3', 'propertyhive' ), '16:9' => __( '16:9', 'propertyhive' ), '1:1' => __( 'Square', 'propertyhive' ), ], //'inline' => true, //'clearable' => false, //'pasteStyles' => false, 'default' => 'large', ]; do_action( 'propertyhive_bricks_builder_widget_property_image_controls', $this ); } public function render() { global $property; if ( !isset($property->id) ) { return; } $root_classes[] = $this->name; $settings = $this->settings; // Add 'class' attribute to element root tag $this->set_attribute( '_root', 'class', $root_classes ); echo "