This file contains hidden or 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
// Specify array value so only the image for that row is printed. Also need to define URL as image field returns array of options. | |
jQuery(document).ready(function($){ | |
$('.ti--modal-image').zoom({url: '<?php echo $ti_modal_image['0']['url']; ?>'}); | |
}); |
This file contains hidden or 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
.slick-dots { | |
> li { | |
display: inline-block; | |
} | |
> li:only-child { | |
display: none; | |
} | |
} |
This file contains hidden or 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
// Also make sure to remove # value form href="" attribute | |
.ua-mobile .modal-open { | |
position: relative !important; | |
} |
This file contains hidden or 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
// On click focus element, integrated with the funcitonality to render hidden slick slider. | |
$('a[data-toggle="tab"]').click(function () { | |
setTimeout(function () { | |
$('.grid--map-mobile-slider').slick('setPosition'); | |
}, 200); | |
$(this).first().focus(); |
This file contains hidden or 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
input[type=radio] label { | |
position: relative; | |
cursor: pointer; | |
} | |
input[type=radio] + label:before { | |
content: ''; | |
display: inline-block; | |
width: 34px; | |
height: 34px; |
This file contains hidden or 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
// This was originally for a bootstrap modal | |
$(document).ready(function(){ | |
$('.modal').each(function(){ | |
var src = $(this).find('iframe').attr('src'); | |
$(this).on('click', function(){ | |
$(this).find('iframe').attr('src', ''); |
This file contains hidden or 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
var mq = window.matchMedia( "(max-width: 570px)" ); | |
if (mq.matches) { | |
// window width is at less than 570px | |
} |
This file contains hidden or 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
$( 'a[data-toggle="tab"]' ).click(function() { | |
setTimeout(function(){ | |
$('.grid--map-mobile-slider').slick('setPosition'); | |
},200); | |
}); |
This file contains hidden or 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
if ($("body").hasClass("page-id-3421")) { | |
if (document.location.search.length) { | |
document.getElementById('impactMap').src = 'https://www.abodo.com/search-widget?' + window.location.search; | |
} else { | |
document.getElementById('impactMap').src = 'https://www.abodo.com/search-widget'; | |
} | |
} |
This file contains hidden or 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 | |
// debug | |
echo '<h3>Array of $terms (debug)</h3>'; | |
print '<pre>'; | |
print_r($terms); | |
print '</pre>'; | |
?> |