linking the wine tours topbar nav to the francejourneys wine and culinary product tag
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Nov 2016 17:08:33 +0000 (12:08 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 11 Nov 2016 17:08:33 +0000 (12:08 -0500)
js/vmap/dist/jqvmap.css
parts/micro-map-dropdown.php
regions-map.php

index 202243b..724310b 100644 (file)
@@ -12,7 +12,7 @@
     width: 34%;
     z-index: 99;
 }*/
-#mapRegionData {
+#mapRegionData, #page-mapRegionData{
   background: white none repeat scroll 0 0;
   border-radius: 3px;
   bottom: 60px;
     overflow: hidden;
     right: -323px !important;
 }
-#interactive-map #map {
+#interactive-map #map{
     float: left;
     width: 66%;
     height: 560px;
     margin-top: -20px;
     margin-left: -10px;
 }
+#page-map{
+    float: left;
+    width: 66%;
+    height: 560px;
+  
+}
 .jqvmap-pin {
     pointer-events:none;
     color: white;
index e2dba68..8d48c8c 100644 (file)
@@ -1,6 +1,6 @@
 <ul id="micro-map-dropdown">
     <li class="drop-centered menu-item menu-item-object-page menu-item-has-children has-dropdown drop-left not-click">
-        <a href="<?php echo get_permalink(155); ?>">Wine Tours</a>
+        <a href="http://francejourneys.gaslightmedia.com/product-tag/culinary-and-wine/">Wine Tours</a>
         <ul class="dropdown">
             <div id="micro-map">
                  <div class="row wine-map-container">
index 936c909..3615330 100644 (file)
@@ -6,45 +6,6 @@
  * @subpackage Twenty_Fourteen
  * @since Twenty Fourteen 1.0
  */
-$partners_blocks = fetch_all_glm_blocks(1348);
-
-foreach ($partners_blocks as $id=>$block){
-
-    $categories[$block->post_name] = $block->url;
-
-}
-
-$js_categories = json_encode($categories);
-
 get_header(); ?>
-<div class="row">
-   <div class="small-12 medium-8 columns region-map-container">
-   <?php get_template_part('parts/wine-map'); ?>
-<!--        <img src="<?php echo get_bloginfo('template_directory'); ?>/assets/convert.svg" alt="" width="650px"height="768px" class="micro-regions" usemap="#map"/>-->
-        <map name="map">
-            <area class="loire" onclick="site_info(this);get_pos(event);" shape="poly" coords="130,290,135,287,143,280,167,267,221,252,272,245,291,240,342,236,350,241,331,288,331,305,295,304,283,294,278,306,248,308,235,317,220,320,211,309,196,292,189,289,174,310,159,318,155,317" alt="loire"  nohref="nohref" />
-        </map>
-    </div>
-    <div class="small-12 medium-4 columns region-info-container">
-       test
-        <div class="wine-image"></div>
-        <div class="wine-title"></div>
-        <div class="wine-content"></div>
-    </div>
-</div>
 
-<?php get_footer(); ?>
-<script>
-    var categories = <?php echo $js_categories ?>;
-    var regions = ['alsace','burgundy', 'champagne', 'loire-valley', 'bordeaux', "rhone-valley", 'languedoc', 'provence', 'corsica', 'beaujolais', 'south-west' ];
-    console.log(categories);
-    jQuery.each(regions, function(index, value){
-        jQuery("."+ value).mouseover( function(){
-            jQuery("."+ value).css({opacity: 0.9});
-            console.log( categories[jQuery(this).attr('class')] );
-        });
-        jQuery("."+ value).mouseout( function(){
-            jQuery("."+ value).css({opacity: 0.4});
-        });
-    });
-</script>
\ No newline at end of file
+<?php get_footer(); ?>
\ No newline at end of file