</div>
</div>
<?php get_footer(); ?>
-
-<?php
- $args = array(
- 'post_type' => 'page',
- 'post__in' => array(276,275,274,273,983,981,985),
- 'posts_per_page' => -1,
- 'numberposts' => -1
-// 'post__in' => array(69,71,73,75, 77, 79)
-);
-
-$posts = get_posts($args);
-
-foreach ($posts as $p){
- $sites[$p->ID] = get_permalink($p->ID);
-}
- $js_sites = json_encode($sites);
-?>
-
-<script type="text/javascript">
- imageMapResize();
- var site_array = <?php echo $js_sites ?>;
- var id;
-
- function get_id(el){
-// console.log(el.getAttribute("data-id"));
- id = el.getAttribute("data-id");
- window.location.href = site_array[el.getAttribute("data-id")];
-// console.log(site_array[el.getAttribute("data-id")]);
- }
-
-</script>
c0,6.876,5.342,12.49,12.1,12.955V77.2h52.677v-0.008C300.392,77.104,306.126,71.324,306.126,64.2z"/>
<text data-id="983" class="region-hover-text content-shape" transform="matrix(1 0 0 1 240.7426 67.919)" fill="#FFFFFF" font-family="'OpenSans-Bold'" font-size="13.19px">Alanson</text>
</svg>
+
+
\ No newline at end of file
console.log(site_array);
$(region).on("click", function (){
window.location.href = site_array[$(this).attr("data-id")];
- // window.location.href = 'https://www.google.com';
+// window.location.href = 'https://www.google.com';
});
});