View script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('.igm_entries_list') | |
.forEach(function(list) { | |
list.setAttribute('data-map-id','3492969'); // change to your base map ID | |
var clone = list.cloneNode(true); | |
iMapsActions.buildLists(clone); | |
list.replaceWith(clone); | |
}); |
View style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (min-width:780px) { | |
.imapsZoomControl-group { display:none; } | |
} |
View style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
height: initial !important; | |
} | |
/* to override height:100% which caused the issue */ |
View filter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function(){ | |
var thishash = window.location.href.slice(window.location.href.indexOf('#') + 1); | |
var menuitem = 'ul#tts-filter-nav li:contains("'+thishash+'")'; | |
if(thishash.length && menuitem.length){ | |
jQuery(menuitem).click(); | |
} | |
}); |
View style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Incorrect */ | |
.advq_question_container:has(li.quiz_incorrect_answer) .advq_answer_commentary { background:red !important; color:#fff !important; } | |
/* Correct */ | |
.advq_question_container:has(li.quiz_correct_answer) .advq_answer_commentary { background:green !important; color:#fff !important; } |
View styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.imapsCircle { | |
paint-order: stroke; | |
stroke-opacity:1; | |
stroke: #dd9933; /* change with the stroke color you want */ | |
animation: pulse-me 1s linear infinite; | |
} | |
/* or target by colour */ | |
.imapsCircle-group[fill="#1e73be"] .imapsCircle { |
View front.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace this function in your front.php to give customers more share buttons. | |
function advq_get_after_results_content($id,$data,$options) { | |
$html = ''; | |
if(isset($data['code_after_results']) && $data['code_after_results'] != ''){ | |
$html .= '<div class="advq_integration_after_results">'; | |
if( $options['render_shortcodes_integration'] ){ |
View pan.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace with your map ID. | |
let mapID = 877; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].map.maxPanOut = 10; | |
}); |
View reset.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace 55677 with your map ID | |
document.addEventListener('input', function (event) { | |
if (event.target.id !== 'igm-live-filter-55677') return; | |
iMapsActions.resetActions(55677); | |
}); |
View igm-custom-solution.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Interactive Geo Maps Custom Solution | |
* | |
* @wordpress-plugin | |
* Plugin Name: Interactive Geo Maps Custom Solution | |
* Plugin URI: https://interactivegeomaps.com | |
* Description: Reads from custom meta fields | |
* Version: 1.0.0 | |
* Author: Carlos Moreira |
NewerOlder