From: Anthony Talarico Date: Mon, 25 Jul 2016 16:28:10 +0000 (-0400) Subject: adding rec hall and pavilion etc to image map, fixing loop number to alpha conversion... X-Git-Tag: v1.0.25^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8ba56efa8798682e163993eb73c35e0e3f7dccd4;p=WP-Themes%2Fcamppetosega.git adding rec hall and pavilion etc to image map, fixing loop number to alpha conversion conditionals --- 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]){