From f76dea729090c320c0f7379bbec8def79a2205aa Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 11 Aug 2016 10:23:59 -0400 Subject: [PATCH] adding php code to get array of page urls for each of the regions --- front-page.php | 31 ------------------------------- parts/community-map-svg.php | 2 ++ parts/community-map.php | 2 +- 3 files changed, 3 insertions(+), 32 deletions(-) diff --git a/front-page.php b/front-page.php index 1bd0d7b..22c31b1 100644 --- a/front-page.php +++ b/front-page.php @@ -68,34 +68,3 @@ - - '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); -?> - - diff --git a/parts/community-map-svg.php b/parts/community-map-svg.php index 3a0d944..6a464f9 100644 --- a/parts/community-map-svg.php +++ b/parts/community-map-svg.php @@ -708,4 +708,6 @@ 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"/> Alanson + + \ No newline at end of file diff --git a/parts/community-map.php b/parts/community-map.php index 2317cc1..eaec7bd 100644 --- a/parts/community-map.php +++ b/parts/community-map.php @@ -76,7 +76,7 @@ foreach ($nav_posts as $p){ 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'; }); }); -- 2.17.1