Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Start buffer
- ob_start();
- ?>
- <!-- Location -->
- <div id="listing-location" class="listing-section">
- <h3 class="listing-desc-headline margin-top-60 margin-bottom-30"><?php esc_html_e('Location','listeo_core'); ?></h3>
- <div id="singleListingMap-container" class="<?php if($disable_address) { echo 'circle-point'; } ?> " >
- <div id="singleListingMap" data-latitude="<?php echo esc_attr($latitude); ?>" data-longitude="<?php echo esc_attr($longitude); ?>" data-map-icon="<?php echo esc_attr($icon); ?>" <?php if(isset($icon_svg)) { ?> data-map-icon-svg="<?php echo esc_attr($icon_svg); ?>"<?php } ?>></div>
- <?php if(get_option('listeo_map_provider') == 'google_not_valid_anymore') { ?><a href="#" id="streetView"><?php esc_html_e('Street View','listeo_core'); ?></a> <?php } ?>
- <?php if(!$disable_address) { ?>
- <a target="_blank" href="https://www.google.com/maps/dir/?api=1&destination=<?php echo esc_attr($latitude.','.$longitude); ?>" id="getDirection"><?php esc_html_e('Get Direction','listeo_core'); ?></a>
- <?php }?>
- </div>
- </div>
- <?php
- // Get buffer
- $htmlLocationCode = ob_get_contents();
- // End buffer
- ob_end_clean();
- // Output blocked code and Content Blocker preview
- echo do_shortcode('[borlabs-cookie type="content-blocker" id="googlemaps" title="Google Maps"]' . $htmlLocationCode . '[/borlabs-cookie]');
Add Comment
Please, Sign In to add comment