/**
  *
  *	Assets
  *
  *	@since 1.0
  */
 function scripts()
 {
     wp_enqueue_script('jquery-form');
     wp_enqueue_style('fo-style', FO_THEME_URL . '/assets/css/style.css');
     wp_enqueue_script('fo-scripts', FO_THEME_URL . '/assets/js/scripts.js', array('jquery'), FO_THEME_VERSION, true);
     $location = fo_get_hike_gps_location();
     $lat = isset($location['0']) ? $location['0'] : false;
     $long = isset($location['1']) ? $location['1'] : false;
     $nonces = array('bookmark' => wp_create_nonce('process_bookmark'), 'delete_bookmark' => wp_create_nonce('process_delete_bookmarks'));
     wp_localize_script('fo-scripts', 'fo_local_vars', array('loggedin' => is_user_logged_in() ? 'true' : false, 'ajaxurl' => admin_url('admin-ajax.php'), 'nonces' => $nonces, 'dashboard_url' => site_url('dashboard'), 'hike_lat' => $lat, 'hike_long' => $long, 'favs_empty_state' => fo_empty_state('favorites', true)));
     if (is_singular() && comments_open() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
 }
<?php

/**
*	Displays a map for trail location or TLDR; for a product review
*
*/
?>
<div class="object-summary">

	<div class="container">

		<?php 
if (('hikes' == get_post_type() || 'activities' == get_post_type()) && is_single()) {
    $location = fo_get_hike_gps_location();
    $lat = isset($location['0']) ? $location['0'] : false;
    $long = isset($location['1']) ? $location['1'] : false;
    ?>
			<div class="object-summary--lt">
				<h3>Get There</h3>
				<?php 
    echo apply_filters('the_content', fo_get_hike_location_description());
    ?>
				<a id="hike-map--directions" href="#" class="btn btn-primary btn-xs">Get Directions</a>
			</div>
			<div class="object-summary--rt">
				<div id="hike-map" style="height:400px;width:100%;"></div>
				 <script>

					var map;
					function initMap() {