| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | return __( 'Map', 'propertyhive' ); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function get_icon() { |
| 18 | - return 'fa fa-map-marked-alt'; | |
| 18 | + return 'eicon-google-maps'; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function get_categories() { |
| 22 | 22 | return [ 'property-hive' ]; |
| @@ -25,15 +25,15 @@ | ||
| 25 | 25 | public function get_keywords() { |
| 26 | 26 | return [ 'property hive', 'propertyhive', 'property', 'map', 'location', 'google map' ]; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - protected function _register_controls() { | |
| 29 | + protected function register_controls() { | |
| 30 | 30 | |
| 31 | 31 | $this->start_controls_section( |
| 32 | 32 | 'settings_section', |
| 33 | 33 | [ |
| 34 | 34 | 'label' => __( 'Map Settings', 'propertyhive' ), |
| 35 | - 'tab' => \Elementor\Controls_Manager::TAB_SETTINGS, | |
| 35 | + 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, | |
| 36 | 36 | ] |
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | $this->add_control( |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | |
| 39 | 39 | $this->add_control( |
| 40 | 40 | 'height', |
| 41 | 41 | [ |
| 42 | - 'label' => __( 'Map Height', 'propertyhive' ), | |
| 42 | + 'label' => __( 'Map Height', 'propertyhive' ) . ' (px)', | |
| 43 | 43 | 'type' => \Elementor\Controls_Manager::TEXT, |
| 44 | 44 | 'input_type' => 'number', |
| 45 | 45 | 'default' => 400 |
| 46 | 46 | ] |
| @@ -48,9 +48,9 @@ | ||
| 48 | 48 | |
| 49 | 49 | $this->add_control( |
| 50 | 50 | 'zoom', |
| 51 | 51 | [ |
| 52 | - 'label' => __( 'Zoom', 'elementor' ), | |
| 52 | + 'label' => __( 'Zoom', 'propertyhive' ), | |
| 53 | 53 | 'type' => \Elementor\Controls_Manager::SLIDER, |
| 54 | 54 | 'default' => [ |
| 55 | 55 | 'size' => 14, |
| 56 | 56 | ], |
| @@ -75,9 +75,9 @@ | ||
| 75 | 75 | 'false' => __( 'False', 'propertyhive' ), |
| 76 | 76 | ), |
| 77 | 77 | 'separator' => 'before', |
| 78 | 78 | ] |
| 79 | - ); | |
| 79 | + ); | |
| 80 | 80 | |
| 81 | 81 | $this->end_controls_section(); |
| 82 | 82 | |
| 83 | 83 | } |
| @@ -104,8 +104,10 @@ | ||
| 104 | 104 | if ( isset($settings['scrollwheel']) && $settings['scrollwheel'] != '' ) |
| 105 | 105 | { |
| 106 | 106 | $attributes['scrollwheel'] = $settings['scrollwheel']; |
| 107 | 107 | } |
| 108 | + | |
| 109 | + $attributes = apply_filters( 'propertyhive_elementor_property_map_attributes', $attributes ); | |
| 108 | 110 | |
| 109 | 111 | get_property_map($attributes); |
| 110 | 112 | |
| 111 | 113 | } |