483b4e35 by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 59c9a3a1
......@@ -45,7 +45,7 @@ $carousel_style = get_field('carousel_style');
<?php $page = get_sub_field('page'); ?>
<div class="swiper-slide">
<div class="carousel-content">
<?php $image = get_sub_field('image'); ?>
<div class="row">
<div class="col-lg-4 col-md-12 promo-image" >
<?php $image = get_the_post_thumbnail_url( $page->ID, 'medium' );
......@@ -55,7 +55,7 @@ $carousel_style = get_field('carousel_style');
$img_alt = get_the_title($thumbnail_id);
}
?>
<img src="<?php echo $image; ?>" alt="<?php echo $img_alt ?>" loading="eager">
<img src="<?php echo $image; ?>" alt="<?php echo $img_alt ?>" loading="eager">
</div>
<div class="col-lg-8 col-md-12">
<div class="promo-text"><?php echo get_the_excerpt($page->ID); ?> <a class="understrap-read-more-link" href="<?php echo get_permalink($page->ID);?>">READ MORE</a></div>
......
......@@ -117,13 +117,13 @@ function megamenu_override_default_theme($value) {
add_action( 'wp_enqueue_scripts', 'fixUlisting', 100 );
add_filter( 'get_custom_logo_image_attributes', function(
$custom_logo_attr, $custom_logo_id, $blog_id )
{
$custom_logo_attr['class'] = ' no-lazy-load lazyloaded';
$custom_logo_attr['loading'] = 'eager';
$custom_logo_attr['decoding'] = 'async';
return $custom_logo_attr;
} ,10,3);
// add_filter( 'get_custom_logo_image_attributes', function(
// $custom_logo_attr, $custom_logo_id, $blog_id )
// {
// $custom_logo_attr['class'] = ' no-lazy-load lazyloaded';
// $custom_logo_attr['loading'] = 'eager';
// $custom_logo_attr['decoding'] = 'async';
// return $custom_logo_attr;
// } ,10,3);
\ No newline at end of file
......
......@@ -20732,6 +20732,11 @@
$(this).closest('.searchandfilter')[0].reset();
return false;
});
$(document).on("click", ".search-filter-reset", function (e) {
e.preventDefault();
$('.searchandfilter')[0].reset();
return false;
});
$(document).on("click", '#advance-search-modal [name="_sf_submit"]', function (e) {
$('#advance-search-modal .searchandfilter').hide();
$('[data-sf-form-id="399"]').trigger("submit");
......@@ -26177,7 +26182,8 @@
spaceBetween: space,
slidesPerGroup: SlidesPerGroup,
centeredSlides: true,
loop: true,
loop: false,
lazy: true,
pagination: {
el: ".swiper-pagination",
type: 'bullets',
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -47,7 +47,8 @@ jQuery(document).ready(function($) {
spaceBetween: space,
slidesPerGroup: SlidesPerGroup ,
centeredSlides: true,
loop: true,
loop: false,
lazy: true,
pagination: {
el: ".swiper-pagination",
type: 'bullets',
......
......@@ -16,6 +16,12 @@ var Search = (function($) {
return false;
});
$(document).on("click", ".search-filter-reset", function(e){
e.preventDefault();
$('.searchandfilter')[0].reset();
return false;
});
$(document).on("click", '#advance-search-modal [name="_sf_submit"]', function(e){
$('#advance-search-modal .searchandfilter').hide();
......
......@@ -54,7 +54,6 @@ jQuery(document).ready(function($) {
(function() {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
......
......@@ -2,6 +2,6 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.481
Version: 1.0.482
*/
......