HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/stratum/includes/templates/advanced-google-map.php
<?php

$class = 'stratum-advanced-google-map';
$out = "";

//Get Api Key
$stratum_api = get_option( 'stratum_api', [] );
$api_key = isset( $stratum_api['google_api_key'] ) ? $stratum_api['google_api_key'] : '';

//If Empty Key
if ( empty( $api_key ) ) {
	if ( current_user_can( 'manage_options' ) ) {
		?>
		<div class="<?php echo esc_attr( $class ); ?>">
            <div class="<?php echo esc_attr( $class. '__notice' ); ?>">
                <p><?php echo esc_html__( 'Whoops! It seems like you didn\'t set Google Map API key. You can set it from Stratum > Settings > API > Google Api Key', 'stratum' ); ?></p>
            </div>
        </div>
		<?php
	} else {
		return '';
	}
}

$options = [
    'center' => [
        'mapLat' => esc_attr( $settings[ 'map_lat' ] ),
        'mapLng' => esc_attr( $settings[ 'map_lng' ] )
    ],
    'controls' => [
        'streetViewControl' => !empty( $settings[ 'street_view_control' ] ) ? true : false,
        'mapTypeControl'    => !empty( $settings[ 'map_type_control' ] )    ? true : false,
        'zoomControl'       => !empty( $settings[ 'zoom_control' ] )        ? true : false,
        'fullscreenControl' => !empty( $settings[ 'fullscreen_control' ] )  ? true : false
    ],
    'zoomLevel'       => $settings[ 'zoom_level' ],
    'markerTypeSetup' => $settings[ 'marker_type_setup' ],
    'mapTypeSetup'    => $settings[ 'map_type_setup' ],
    'interaction'     => $settings[ 'interaction' ],

    'markers'  => $this->get_markers_options( $settings ),
    'mapTheme' => $this->set_map_theme_style( $settings )
];

$map_options = json_encode( $options );
?>
<div class="<?php echo esc_attr( $class ) ?>" data-map-options="<?php echo esc_attr( $map_options ); ?>">
    <div class="<?php echo esc_attr( $class.'__container' ) ;?>"></div>
</div>