<?php if (is_single()) { the_title('<h1 class="entry-title">', '</h1>'); } else { the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>'); } ?> </header><!-- .entry-header --> <div class="entry-content"> <?php the_content(sprintf(wp_kses(__('Continue reading %s <span class="meta-nav">→</span>', 'xmaps'), array('span' => array('class' => array()))), the_title('<span class="screen-reader-text">"', '"</span>', false))); the_meta(); wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'xmaps'), 'after' => '</div>')); $locations = XMapsDatabase::get_map_object_locations(get_the_ID(), 'map-object'); $locations = array_merge($locations, XMapsDatabase::get_map_object_comment_locations(get_the_ID())); ?> <div id="xmaps-map" style="height: 480px;"></div> <script> jQuery( function( $ ) { var conf = { "center": new google.maps.LatLng(0, 0), "streetViewControl": false, "zoom": 1, "minZoom": 1, "maxZoom": 20, "mapTypeId": google.maps.MapTypeId.TERRAIN, "panControl": true, "mapTypeControl": true }; var map_div = $("#xmaps-map");