plugin_url() ) . '/assets/'; if ( get_option('propertyhive_maps_provider') == 'osm' ) { } else { $api_key = get_option('propertyhive_google_maps_api_key'); wp_register_script('googlemaps', '//maps.googleapis.com/maps/api/js?' . ( ( $api_key != '' && $api_key !== FALSE ) ? 'key=' . $api_key : '' ), false, '3', true ); wp_enqueue_script('googlemaps'); } } public function set_control_groups() { /*$this->control_groups['form'] = [ 'title' => esc_html__( 'Form', 'propertyhive' ), 'tab' => 'content', // content / style ];*/ } public function set_controls() { $this->controls['height'] = [ 'tab' => 'content', //'group' => 'settings', 'label' => esc_html__( 'Height', 'propertyhive' ), 'type' => 'number', 'default' => 400 ]; } public function render() { global $property; if ( !isset($property->id) ) { return; } if ( $property->latitude == '' || $property->longitude == '' || $property->latitude == '0' || $property->longitude == '0' ) { return; } if ( get_option('propertyhive_maps_provider') == 'osm' ) { return; } $root_classes[] = $this->name; // Add 'class' attribute to element root tag $this->set_attribute( '_root', 'class', $root_classes ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks serializes registered attributes through its documented render_attributes() API. echo "