PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
propertyhive / includes / elementor-widgets / property-negotiator-photo.php

property-negotiator-photo.php in Property Hive 2.4.0, at includes/elementor-widgets/property-negotiator-photo.php

61 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Elementor Property Negotiator Photo Widget.
4 *
5 * @since 1.0.0
6 */
7 class Elementor_Property_Negotiator_Photo_Widget extends \Elementor\Widget_Base {
8
9 public function get_name() {
10 return 'property-negotiator-photo';
11 }
12
13 public function get_title() {
14 return __( 'Negotiator Photo', 'propertyhive' );
15 }
16
17 public function get_icon() {
18 return 'eicon-person';
19 }
20
21 public function get_categories() {
22 return [ 'property-hive' ];
23 }
24
25 public function get_keywords() {
26 return [ 'property hive', 'propertyhive', 'property', 'negotiator' ];
27 }
28
29 protected function register_controls() {
30
31 $this->start_controls_section(
32 'style_section',
33 [
34 'label' => __( 'Negotiator Photo', 'propertyhive' ),
35 'tab' => \Elementor\Controls_Manager::TAB_STYLE,
36 ]
37 );
38
39 $this->end_controls_section();
40
41 }
42
43 protected function render() {
44
45 global $property;
46
47 $settings = $this->get_settings_for_display();
48
49 if ( !isset($property->id) ) {
50 return;
51 }
52
53 if ( $property->negotiator_photo != '' )
54 {
55 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- WordPress generates attachment image HTML through wp_get_attachment_image().
56 echo $property->negotiator_photo;
57 }
58
59 }
60
61 }