adding rec hall and pavilion etc to image map, fixing loop number to alpha conversion...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 25 Jul 2016 16:28:10 +0000 (12:28 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 25 Jul 2016 16:28:10 +0000 (12:28 -0400)
campground-map.php

index 0dfe3a9..4a45d3c 100644 (file)
@@ -195,7 +195,10 @@ $js_categories = json_encode($categories);
                                 <area class="tooltip_hover show-for-medium-up" shape="poly" coords="406,269,414,256,424,263,416,276" alt="cabin-d" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />
                                 <area class="tooltip_hover show-for-medium-up" shape="poly" coords="359,287,373,286,373,302,360,302" alt="cabin-f" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />
                                 <area class="tooltip_hover show-for-medium-up" shape="poly" coords="216,524,227,527,220,547,210,543,209,542" alt="cabin-5" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />
-                                <area class="tooltip_hover show-for-medium-up" shape="poly" coords="262,15,278,13,274,34,264,32" alt="cabin-4" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />  
+                                <area class="tooltip_hover show-for-medium-up" shape="poly" coords="262,15,278,13,274,34,264,32" alt="cabin-4" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" /> 
+                                <area class="tooltip_hover show-for-medium-up" shape="poly" coords="343,153,351,146,356,154,362,148,367,154,364,157,370,164,357,172,343,155" alt="recreation-hall" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />
+                                <area class="tooltip_hover show-for-medium-up" shape="poly" coords="316,319,315,328,341,330,341,320" alt="pavilion" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />
+                                <area class="tooltip_hover show-for-medium-up" shape="poly" coords="364,328,377,325,380,337,368,336" alt="bathhouse" onmouseover="site_info(this);get_pos(event); "   onclick="full_content_tool_tip(this)" nohref="nohref" />  
                           </map>
                           <img src="<?php echo get_template_directory_uri(); ?>/assets/cabins-map.jpg" alt="bottom-map" usemap="#cabins-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]){