HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/public_html/wp-content/themes/rehub-theme/inc/specification/map_line.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php 
$map_line_location = !empty( $row['map_line_location'] ) ? $row['map_line_location'] : '';
$map_line_longitude = !empty( $row['map_line_longitude'] ) ? $row['map_line_longitude'] : '';
$map_line_latitude = !empty( $row['map_line_latitude'] ) ? $row['map_line_latitude'] : '';
$map_line_key = !empty( $row['map_line_key'] ) ? ' key="'. $row['map_line_key'] .'"' : '';
$map_line_zoom = !empty( $row['map_line_zoom'] ) ? $row['map_line_zoom'] : 10;
?>

<?php if ($map_line_location || $map_line_longitude):?>
    <?php if($map_line_location):?>
    <div class="wpsm_spec_map_row mt20 mb20">
        <?php $location = get_post_meta($postID, $map_line_location, true);?>
        <?php echo do_shortcode('[wpsm_googlemap zoom="'. $map_line_zoom .'" location="'. $location .'"'. $map_line_key .']');?>
    </div>
    <?php elseif($map_line_longitude && $map_line_latitude):?>
        <?php $lat = get_post_meta($postID, $map_line_latitude, true);?>
        <?php $lng = get_post_meta($postID, $map_line_longitude, true);?>        
        <?php echo do_shortcode('[wpsm_googlemap zoom="'. $map_line_zoom .'" lat="'.$lat.'" lng="'.$lng.'"'. $map_line_key .']');?>  
    <?php endif;?>
<?php endif;?>