From 8ba56efa8798682e163993eb73c35e0e3f7dccd4 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 25 Jul 2016 12:28:10 -0400 Subject: [PATCH] adding rec hall and pavilion etc to image map, fixing loop number to alpha conversion conditionals --- campground-map.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/campground-map.php b/campground-map.php index 0dfe3a9..4a45d3c 100644 --- a/campground-map.php +++ b/campground-map.php @@ -195,7 +195,10 @@ $js_categories = json_encode($categories); cabin-d cabin-f cabin-5 - cabin-4 + cabin-4 + recreation-hall + pavilion + bathhouse bottom-map @@ -254,7 +257,7 @@ $js_categories = json_encode($categories); site_name_text = site_array[site]['post_title']; } - if(site_meta[site]){ + if( site_meta[site] && site_meta[site]['petosega_loop'][0] !== "" ){ site_loop = site_meta[site]['petosega_loop']; site_loop = site_loop.join(); switch (site_loop) { @@ -274,6 +277,8 @@ $js_categories = json_encode($categories); site_loop_alpha = 'E'; break; } + } else { + site_loop_alpha = "None"; } if(site_meta[site]){ -- 2.17.1