| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/bb-plugin/modules/map/includes/ |
Upload File : |
<?php
$class = 'fl-map';
if ( ! empty( $settings->height_responsive ) ) {
$class .= ' fl-map-auto-responsive-disabled';
}
/**
* Allow users to filter map args, perhaps to change location based on language or to use their own keys.
* @since 2.2
* @see fl_builder_map_args
*/
$params = apply_filters( 'fl_builder_map_args', array(
'q' => empty( $settings->address ) ? 'United Kingdom' : urlencode( do_shortcode( $settings->address ) ),
'key' => 'AIzaSyD09zQ9PNDNNy9TadMuzRV_UsPUoWKntt8',
), $settings );
$url = add_query_arg( $params, 'https://www.google.com/maps/embed/v1/place' );
// ACF Google map passes back an iframe so we need to sanitize it.
if ( false !== strpos( do_shortcode( $settings->address ), 'iframe' ) ) {
$iframe = preg_replace( '#\s?style=\'.+\'#', '', do_shortcode( $settings->address ) );
} else {
$title = '' !== $settings->map_title_attribute ? ' title="' . $settings->map_title_attribute . '"' : '';
$iframe = sprintf( '<iframe src="%s" aria-hidden="true"%s></iframe>', $url, $title );
}
?>
<div class="<?php echo $class; ?>">
<?php echo $iframe; ?>
</div>