</div>
</div>
</footer>
-
+
<div class="jvectormap-tip" style="display: none; left: 849px; top: 677px;">Languedoc-Roussillon-Midi-Pyrénées</div>
<div id="copyright">
<span>Copyright © <?php echo date('Y');?> </span>
<span class="bullet"> • </span>
- <span> Produced by <a target="_blank" href="http://www.gaslightmedia.com">Gaslight Media</a></span>
+ <span> Produced by <a target="_blank" href="https://www.gaslightmedia.com">Gaslight Media</a></span>
<span class="bullet"> • </span>
<span> All Rights Reserved.</span>
</div>
</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="http://w.sharethis.com/button/buttons.js"></script>
+<script charset="utf-8" type="text/javascript" src="https://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>
<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="http://francejourneys.com/product-tag/wine-tours/">Wine Tours</a>
+ <a href="https://www.francejourneys.com/product-tag/wine-tours/">Wine Tours</a>
<ul class="dropdown">
<div id="micro-map">
<div class="row wine-map-container">
</div>
<div class="small-12 large-4 columns region-info-container show-for-large-up">
<?php
- $default_block = get_post(1608);
+ $default_block = get_post(1608);
$default_image = wp_get_attachment_image_src(get_post_thumbnail_id(1608),'glm-block-image'); ?>
<div class="wine-image"><img class="wine-img" src="<?php echo $default_image[0];?>"></div>
<div class="wine-title"><?php echo $default_block->post_title;?></div>
$partners_blocks = fetch_all_glm_blocks(1595);
foreach ($partners_blocks as $id=>$block){
if ( has_post_thumbnail($block) ) {
- $map_image = wp_get_attachment_image_src(get_post_thumbnail_id($block->ID),'glm-block-image');
+ $map_image = wp_get_attachment_image_src(get_post_thumbnail_id($block->ID),'glm-block-image');
$categories[$block->post_name] = array('title' => $block->post_title,'url'=>$block->url, 'content'=>$block->post_content, 'image'=>$map_image[0], 'id'=>$block->ID);
} else {
$default_image = get_template_directory_uri().'/assets/tours-default.jpg';
}
$image = $block->thumbnail;
$image_url = wp_get_attachment_url($block->ID);
-
+
}
$js_categories = json_encode($categories);
?>
<script>
jQuery(document).ready( function ($) {
var page = jQuery('body');
-
+
var map = <?php echo $js_categories ?>;
var regions = ['jura','alsace','burgundy', 'champagne', 'loire-valley', 'bordeaux', "rhone-valley", 'languedoc-roussillon', 'provence', 'corsica', 'beaujolais', 'south-west','savoie','cognac'];
var map_content = page.find( jQuery('.wine-content')),
map_image_container = page.find( jQuery('.wine-image')),
map_title = page.find( jQuery('.wine-title')),
map_image = page.find( jQuery('.wine-img'));
-
-
+
+
jQuery.each(regions, function(index, value){
-
+
// region click page re-direction
jQuery("." + value).on("click", function(){
window.location.href = map[value]['url'];
});
-
+
// hover effects
jQuery("." + value).mouseover( function(){
jQuery("." + value).css({opacity: 0.9, cursor: 'pointer'});
});
});
});
-</script>
\ No newline at end of file
+</script>