HEX
Server: Apache
System: Linux p3plzcpnl505785.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xuvi7odgswsg (6947073)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //home/xuvi7odgswsg/www/wp-content/plugins/bbpowerpack/classes/wpml/class-wpml-pp-google-map.php
<?php

class WPML_PP_Google_Map extends WPML_Beaver_Builder_Module_With_Items {

	public function &get_items( $settings ) {
		return $settings->pp_gmap_addresses;
	}

	public function get_fields() {
		return array( 'map_name', 'map_latitude', 'map_longitude', 'info_window_text' );
	}

	protected function get_title( $field ) {
		switch ( $field ) {
			case 'map_name':
				return esc_html__( 'Google Map - Map Name', 'bb-powerpack' );

			case 'map_latitude':
				return esc_html__( 'Google Map - Map Latitude', 'bb-powerpack' );

			case 'map_longitude':
				return esc_html__( 'Google Map - Map Longitude', 'bb-powerpack' );

			case 'info_window_text':
				return esc_html__( 'Google Map - Map Info Text', 'bb-powerpack' );

			default:
				return '';
		}
	}

	protected function get_editor_type( $field ) {
		switch ( $field ) {
			case 'map_name':
				return 'LINE';

			case 'map_latitude':
				return 'LINE';

			case 'map_longitude':
				return 'LINE';

			case 'info_window_text':
				return 'VISUAL';

			default:
				return '';
		}
	}

}