</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
<?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>
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);