Map default location coded, and sharethis code removed from footer
authorLaury GvR <laury@gaslightmedia.com>
Thu, 16 Aug 2018 20:56:26 +0000 (16:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 16 Aug 2018 20:56:26 +0000 (16:56 -0400)
index.php
parts/map-section.php

index 9ed1d47..b3c38db 100644 (file)
--- a/index.php
+++ b/index.php
@@ -37,8 +37,5 @@
             </div><!--End of inner-wrap-->
         </div><!--End of off-canvas-->
         <?php wp_footer();?>
-        <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
-        <script charset="utf-8" type="text/javascript" src="//ws.sharethis.com/button/buttons.js"></script>
-        <script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});var st_type="wordpress4.3.1";</script>
     </body>
 </html>
\ No newline at end of file
index a9464e6..35192be 100644 (file)
@@ -6,7 +6,7 @@
     <?php
         $pages = [  'ocqueoc-falls-bicentennial-pathway', 'thompsons-harbor-state-park', 'leer-road-sinkholes','old-new-presque-isle-lighthouses', 
                     'rockport-state-recreation-area','middle-island-lighthouse','little-red-lighthouse','thunder-bay-island-lighthouse', 'norway-ridge-pathway',
-                    'thunder-bay-national-marine-sanctuary', 'chippewa-hills-pathway', 'negwegon-state-park', 'sturgeon-point-lighthouse'];
+                    'thunder-bay-national-marine-sanctuary', 'chippewa-hills-pathway', 'negwegon-state-park', 'sturgeon-point-lighthouse', 'visit-alpena'];
         $locations = array();
         foreach($pages as $page){
             $args = array(
         <?php include 'svg-map.php'; ?>
         <!-- CITY INFO -->
         <div class="location-info-wrapper">
-            <div class="location-img" style="background-image: url(<?php echo $locations['communities']['image']; ?>);"></div>
-            <h2 class="location-title"> <?php echo $locations['communities']['title']; ?> </h2>
-            <div class="location-content"><?php echo $locations['communities']['content']; ?> </div>
+            <div class="location-img" style="background-image: url(<?php echo $locations['visit-alpena']['image']; ?>);"></div>
+            <h2 class="location-title"> <?php echo $locations['visit-alpena']['title']; ?> </h2>
+            <div class="location-content"><?php echo $locations['visit-alpena']['content']; ?> </div>
             <div class="location-info-button">
-                <a class="location-link" href="<?php echo $locations['communities']['url']; ?> ">Find out more...</a>
+                <a class="location-link" href="<?php echo $locations['visit-alpena']['url']; ?> ">Find out more...</a>
             </div>
         </div>
         
@@ -81,7 +81,7 @@
             var region_bg, text_paths, origin_text_color, original_bg_color;
             //console.log(locations);
             // hover elements TODO::Create a function that removes the duplicate code for title,content and img in the hover callbacks
-            
+
             location_text.hover(function(){
                 var region_id   = $(this).attr("data-text");
                 //console.log(region_id);