Skip to content

Commit

Permalink
v3.5.3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeo committed Mar 27, 2020
1 parent d8a71f8 commit ab11a4c
Show file tree
Hide file tree
Showing 29 changed files with 2,206 additions and 2,640 deletions.
4 changes: 4 additions & 0 deletions assets/front/css/dev-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.site-description { font-size: 1em; font-style: italic; color: #fff; color: rgba(255,255,255,0.5); float: left; margin-left: 20px; line-height: 60px; padding: 10px 0; }
.site-image { display: block; margin: 0 auto; max-height: 400px; width: auto;}

/* new-site-image + #header-image-wrap height introduced March 2020 for https://github.com/presscustomizr/hueman/issues/852 */
#header-image-wrap { max-height: 400px;}
.new-site-image { display: block; margin: 0 auto; width: 100%;}

/* Header Widget Zone Common */
#header-widgets{ display: none;}
/*#header-widgets h3 { display: none; }*/
Expand Down
4 changes: 4 additions & 0 deletions assets/front/css/main-not-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.site-description { font-size: 1em; font-style: italic; color: #fff; color: rgba(255,255,255,0.5); float: left; margin-left: 20px; line-height: 60px; padding: 10px 0; }
.site-image { display: block; margin: 0 auto; max-height: 400px; width: auto;}

/* new-site-image + #header-image-wrap height introduced March 2020 for https://github.com/presscustomizr/hueman/issues/852 */
#header-image-wrap { max-height: 400px;}
.new-site-image { display: block; margin: 0 auto; width: 100%;}

/* Header Widget Zone Common */
#header-widgets{ display: none;}
/*#header-widgets h3 { display: none; }*/
Expand Down
2 changes: 1 addition & 1 deletion assets/front/css/main-not-responsive.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions assets/front/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,10 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.site-description { font-size: 1em; font-style: italic; color: #fff; color: rgba(255,255,255,0.5); float: left; margin-left: 20px; line-height: 60px; padding: 10px 0; }
.site-image { display: block; margin: 0 auto; max-height: 400px; width: auto;}

/* new-site-image + #header-image-wrap height introduced March 2020 for https://github.com/presscustomizr/hueman/issues/852 */
#header-image-wrap { max-height: 400px;}
.new-site-image { display: block; margin: 0 auto; width: 100%;}

/* Header Widget Zone Common */
#header-widgets{ display: none;}
/*#header-widgets h3 { display: none; }*/
Expand Down
2 changes: 1 addition & 1 deletion assets/front/css/main.min.css

Large diffs are not rendered by default.

105 changes: 96 additions & 9 deletions assets/front/js/_parts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,11 @@ var czrapp = czrapp || {};
$( mobMenu.container )
.on( 'mouseup', '.menu-item a', function(evt) {
if ( ! czrapp.userXP._isMobileScreenSize() )
return;
return;
// Hack to fix the issue => [mobile menu] clicking on an anchor link that has child submenu should unfold the submenu
// see https://github.com/presscustomizr/hueman/issues/857
if ( '#' === $(this).attr('href') )
return;
evt.preventDefault();
evt.stopPropagation();
mobMenu( 'collapsed');
Expand Down Expand Up @@ -1542,7 +1546,7 @@ var czrapp = czrapp || {};
//when clicking on a menu item whose href is just a "#", let's emulate a click on the caret dropdown
.on( Event.CLICK, 'a[href="#"]', function(evt) {
if ( ! czrapp.userXP._isMobileScreenSize() )
return;
return;

evt.preventDefault();
evt.stopPropagation();
Expand Down Expand Up @@ -3001,11 +3005,12 @@ var czrapp = czrapp || {};
tcOutline();
},

//SMOOTH SCROLL
smoothScroll: function() {
if ( HUParams.SmoothScroll && HUParams.SmoothScroll.Enabled )
smoothScroll( HUParams.SmoothScroll.Options );
},
// Removed in march 2020
// //SMOOTH SCROLL
// smoothScroll: function() {
// if ( HUParams.SmoothScroll && HUParams.SmoothScroll.Enabled )
// smoothScroll( HUParams.SmoothScroll.Options );
// },


/* Toggle topnav expand
Expand Down Expand Up @@ -3470,6 +3475,87 @@ var czrapp = czrapp || {};
document.getElementsByTagName('head')[0].appendChild(link);
}
});
},
// can be fired for for featured posts on home and for gallery post formats
// March 2020 introduced for https://github.com/presscustomizr/hueman/issues/869
maybeFireFlexSlider : function() {
if ( !HUParams.flexSliderNeeded )
return;
var _fireWhenFlexReady = function() {
// Check if first slider image is loaded, and load flexslider on document ready

// FEATURED POSTS ON HOME
var $flexForFeaturedPosts = $('#flexslider-featured');
if ( $flexForFeaturedPosts.length > 0 ) {
var $_firstImage = $flexForFeaturedPosts.find('img').filter(':first'),
checkforloaded = setInterval(function() {
if ( $_firstImage.length < 1 )
return;
var image = $_firstImage.get(0);
if ( image.complete || image.readyState == 'complete' || image.readyState == 4 ) {
clearInterval(checkforloaded);

$.when( $flexForFeaturedPosts.flexslider({
animation: "slide",
useCSS: false, // Fix iPad flickering issue
directionNav: true,
controlNav: true,
pauseOnHover: true,
animationSpeed: 400,
smoothHeight: true,
rtl: HUParams.flexSliderOptions.is_rtl,
touch: HUParams.flexSliderOptions.has_touch_support,
slideshow: HUParams.flexSliderOptions.is_slideshow,
slideshowSpeed: HUParams.flexSliderOptions.slideshow_speed
}) ).done( function() {
var $_self = $(this);
_trigger = function( $_self ) {
$_self.trigger('featured-slider-ready');
};
_trigger = _.debounce( _trigger, 100 );
_trigger( $_self );
});
}
}, 20);
}

// GALLERY POST FORMAT
var $flexForGalleryPostFormat = $('[id*="flexslider-for-gallery-post-format-"]');
var $firstImage = $flexForGalleryPostFormat.find('img').filter(':first'),
_checkforloaded = setInterval(function() {
if ( $firstImage.length < 1 )
return;

var image = $firstImage.get(0);
if ( image.complete || image.readyState == 'complete' || image.readyState == 4 ) {
clearInterval(_checkforloaded);
$flexForGalleryPostFormat.flexslider({
animation: HUParams.isWPMobile ? 'slide' : 'fade',
rtl: HUParams.flexSliderOptions.is_rtl,
slideshow: true,
directionNav: true,
controlNav: true,
pauseOnHover: true,
slideshowSpeed: 7000,
animationSpeed: 600,
smoothHeight: true,
touch: HUParams.flexSliderOptions.has_touch_support
});
}
}, 20);

};//_fireWhenFlexReady


// jquery.flexslider.js is loaded "defer", so let's make sure it's ready before firing it
// jQuery('body').trigger('hu-flexslider-parsed'); is hardcoded at the bottom of jquery.flexslider.js
jQuery(function($){
if ( 'function' === typeof $.fn.flexslider ) {
_fireWhenFlexReady();
} else {
czrapp.$_window.on('hu-flexslider-parsed', _fireWhenFlexReady );
}
});//jQuery(function($){})
}

};//_methods{}
Expand Down Expand Up @@ -3771,7 +3857,7 @@ var czrapp = czrapp || {};
'fittext',
'stickify',
'outline',
'smoothScroll',
//'smoothScroll',// <=Removed in march 2020
'headerSearchToLife',
'scrollToTop',
'widgetTabs',
Expand All @@ -3784,7 +3870,8 @@ var czrapp = czrapp || {};
'gutenbergAlignfull',
'mayBePrintWelcomeNote',
'triggerResizeEventsToAjustHeaderHeightOnInit', // for https://github.com/presscustomizr/hueman/issues/839
'mayBeLoadFontAwesome'
'mayBeLoadFontAwesome',
'maybeFireFlexSlider'//<= for featured posts on home and for gallery post formats
]
}
};//map
Expand Down
2 changes: 1 addition & 1 deletion assets/front/js/libs/jquery.flexslider.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit ab11a4c

Please sign in to comment.