# propertyhive/2.4.0/includes/elementor-widgets/property-price-qualifier.php

Property Hive, version 2.4.0. 113 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.4.0/code/includes/elementor-widgets/property-price-qualifier.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.4.0/raw/includes/elementor-widgets/property-price-qualifier.php
- Modified: 2025-05-13T08:38:24+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/elementor-widgets/property-price-qualifier.php#L10-L20`.

```php
<?php
/**
 * Elementor Property Price Qualifier Widget.
 *
 * @since 1.0.0
 */
class Elementor_Property_Price_Qualifier_Widget extends \Elementor\Widget_Base {

	public function get_name() {
		return 'property-price-qualifier';
	}

	public function get_title() {
		return __( 'Price Qualifier', 'propertyhive' );
	}

	public function get_icon() {
		return 'eicon-meta-data';
	}

	public function get_categories() {
		return [ 'property-hive' ];
	}

	public function get_keywords() {
		return [ 'property hive', 'propertyhive', 'property', 'qualifier', 'price qualifier' ];
	}

	protected function register_controls() {

		$this->start_controls_section(
			'style_section',
			[
				'label' => __( 'Price Qualifier', 'propertyhive' ),
				'tab' => \Elementor\Controls_Manager::TAB_STYLE,
			]
		);

		$this->add_group_control(
			\Elementor\Group_Control_Typography::get_type(),
			[
				'name' => 'typography',
				'label' => __( 'Typography', 'propertyhive' ),
				'global' => [
					'default' => \Elementor\Core\Kits\Documents\Tabs\Global_Typography::TYPOGRAPHY_PRIMARY,
				],
				'selector' => '{{WRAPPER}} .elementor-widget-property-price-qualifier',
			]
		);

		$this->add_control(
			'color',
			[
				'label' => __( 'Colour', 'propertyhive' ),
				'type' => \Elementor\Controls_Manager::COLOR,
				'global' => [
				    'default' => \Elementor\Core\Kits\Documents\Tabs\Global_Colors::COLOR_PRIMARY,
				],
				'selectors' => [
					'{{WRAPPER}} .elementor-widget-property-price-qualifier' => 'color: {{VALUE}}',
				],
			]
		);

		$this->add_control(
			'text_align',
			[
				'label' => __( 'Alignment', 'propertyhive' ),
				'type' => \Elementor\Controls_Manager::CHOOSE,
				'options' => [
					'left' => [
						'title' => __( 'Left', 'propertyhive' ),
						'icon' => 'eicon-text-align-left',
					],
					'center' => [
						'title' => __( 'Center', 'propertyhive' ),
						'icon' => 'eicon-text-align-center',
					],
					'right' => [
						'title' => __( 'Right', 'propertyhive' ),
						'icon' => 'eicon-text-align-right',
					],
				],
				'default' => 'left',
				'toggle' => true,
				'selectors' => [
					'{{WRAPPER}} .elementor-widget-property-price-qualifier' => 'text-align: {{VALUE}}',
				],
			]
		);

		$this->end_controls_section();

	}

	protected function render() {

		global $property;

		$settings = $this->get_settings_for_display();

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

        if ( $property->price_qualifier != '' )
		{
	        echo '<div class="elementor-widget-property-price-qualifier">' . esc_html($property->price_qualifier) . '</div>';
	    }

	}

}
```
