Version Description
[Menu module] Fixed menu items alignment broken on mobile devices.
=
Download this release
Release Info
Developer | nikeo |
Plugin | Nimble Page Builder |
Version | 1.8.17 |
Comparing to | |
See all releases |
Code changes from version 1.8.16 to 1.8.17
- assets/front/js/ccat-nimble-front.js +377 -393
- assets/front/js/ccat-nimble-front.min.js +1 -1
- inc/sektions/ccat-sektions.php +13 -2
- nimble-builder.php +2 -2
- readme.txt +6 -3
assets/front/js/ccat-nimble-front.js
CHANGED
@@ -1994,6 +1994,240 @@
|
|
1994 |
}
|
1995 |
});
|
1996 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1997 |
})( jQuery, window );// global sekFrontLocalized
|
1998 |
/* ===================================================
|
1999 |
* jquery.fn.parallaxBg v1.0.0
|
@@ -2145,164 +2379,7 @@
|
|
2145 |
};
|
2146 |
})( jQuery, window );// global sekFrontLocalized
|
2147 |
/* ------------------------------------------------------------------------- *
|
2148 |
-
*
|
2149 |
-
/* ------------------------------------------------------------------------- */
|
2150 |
-
jQuery(function($){
|
2151 |
-
$('[data-sek-module-type="czr_image_module"]').each( function() {
|
2152 |
-
$linkCandidate = $(this).find('.sek-link-to-img-lightbox');
|
2153 |
-
// Abort if no link candidate, or if the link href looks like :javascript:void(0) <= this can occur with the default image for example.
|
2154 |
-
if ( $linkCandidate.length < 1 || 'string' !== typeof( $linkCandidate[0].protocol ) || -1 !== $linkCandidate[0].protocol.indexOf('javascript') )
|
2155 |
-
return;
|
2156 |
-
if ( 'function' !== typeof( $.fn.magnificPopup ) )
|
2157 |
-
return;
|
2158 |
-
try { $linkCandidate.magnificPopup({
|
2159 |
-
type: 'image',
|
2160 |
-
closeOnContentClick: true,
|
2161 |
-
closeBtnInside: true,
|
2162 |
-
fixedContentPos: true,
|
2163 |
-
mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
|
2164 |
-
image: {
|
2165 |
-
verticalFit: true
|
2166 |
-
},
|
2167 |
-
zoom: {
|
2168 |
-
enabled: true,
|
2169 |
-
duration: 300 // don't foget to change the duration also in CSS
|
2170 |
-
}
|
2171 |
-
}); } catch( er ) {
|
2172 |
-
if ( typeof window.console.log === 'function' ) {
|
2173 |
-
console.log( er );
|
2174 |
-
}
|
2175 |
-
}
|
2176 |
-
});
|
2177 |
-
});
|
2178 |
-
|
2179 |
-
|
2180 |
-
/* ------------------------------------------------------------------------- *
|
2181 |
-
* SMARTLOAD
|
2182 |
-
/* ------------------------------------------------------------------------- */
|
2183 |
-
jQuery(function($){
|
2184 |
-
$('.sektion-wrapper').each( function() {
|
2185 |
-
try { $(this).nimbleLazyLoad(); } catch( er ) {
|
2186 |
-
if ( typeof window.console.log === 'function' ) {
|
2187 |
-
console.log( er );
|
2188 |
-
}
|
2189 |
-
}
|
2190 |
-
});
|
2191 |
-
});
|
2192 |
-
|
2193 |
-
|
2194 |
-
/* ------------------------------------------------------------------------- *
|
2195 |
-
* BG PARALLAX
|
2196 |
-
/* ------------------------------------------------------------------------- */
|
2197 |
-
jQuery(function($){
|
2198 |
-
$('[data-sek-bg-parallax="true"]').each( function() {
|
2199 |
-
$(this).parallaxBg( { parallaxForce : $(this).data('sek-parallax-force') } );
|
2200 |
-
});
|
2201 |
-
var _setParallaxWhenCustomizing = function() {
|
2202 |
-
$(this).parallaxBg( { parallaxForce : $(this).data('sek-parallax-force') } );
|
2203 |
-
// hack => always trigger a 'resize' event with a small delay to make sure bg positions are ok
|
2204 |
-
setTimeout( function() {
|
2205 |
-
$('body').trigger('resize');
|
2206 |
-
}, 500 );
|
2207 |
-
};
|
2208 |
-
// When previewing, react to level refresh
|
2209 |
-
// This can occur to any level. We listen to the bubbling event on 'body' tag
|
2210 |
-
// and salmon up to maybe instantiate any missing candidate
|
2211 |
-
// Example : when a preset_section is injected
|
2212 |
-
$('body').on('sek-level-refreshed sek-section-added', function( evt ){
|
2213 |
-
if ( "true" === $(this).data('sek-bg-parallax') ) {
|
2214 |
-
_setParallaxWhenCustomizing.call(this);
|
2215 |
-
} else {
|
2216 |
-
$(this).find('[data-sek-bg-parallax="true"]').each( function() {
|
2217 |
-
_setParallaxWhenCustomizing.call(this);
|
2218 |
-
});
|
2219 |
-
}
|
2220 |
-
});
|
2221 |
-
});
|
2222 |
-
|
2223 |
-
|
2224 |
-
/* ------------------------------------------------------------------------- *
|
2225 |
-
* FITTEXT
|
2226 |
-
/* ------------------------------------------------------------------------- */
|
2227 |
-
jQuery( function($){
|
2228 |
-
var doFitText = function() {
|
2229 |
-
$(".sek-module-placeholder").each( function() {
|
2230 |
-
$(this).fitText( 0.4, { minFontSize: '50px', maxFontSize: '300px' } ).data('sek-fittext-done', true );
|
2231 |
-
});
|
2232 |
-
// Delegate instantiation
|
2233 |
-
$('.sektion-wrapper').on(
|
2234 |
-
'sek-columns-refreshed sek-modules-refreshed sek-section-added sek-level-refreshed',
|
2235 |
-
'div[data-sek-level="section"]',
|
2236 |
-
function( evt ) {
|
2237 |
-
$(this).find(".sek-module-placeholder").fitText( 0.4, { minFontSize: '50px', maxFontSize: '300px' } ).data('sek-fittext-done', true );
|
2238 |
-
}
|
2239 |
-
);
|
2240 |
-
|
2241 |
-
};
|
2242 |
-
//doFitText();
|
2243 |
-
// if ( 'function' == typeof(_) && ! _utils_.isUndefined( wp.customize ) ) {
|
2244 |
-
// wp.customize.selectiveRefresh.bind('partial-content-rendered' , function() {
|
2245 |
-
// doFitText();
|
2246 |
-
// });
|
2247 |
-
// }
|
2248 |
-
|
2249 |
-
// does the same as new URL(url)
|
2250 |
-
// but support IE.
|
2251 |
-
// @see https://stackoverflow.com/questions/736513/how-do-i-parse-a-url-into-hostname-and-path-in-javascript
|
2252 |
-
// @see https://gist.github.com/acdcjunior/9820040
|
2253 |
-
// @see https://developer.mozilla.org/en-US/docs/Web/API/URL#Properties
|
2254 |
-
var parseURL = function(url) {
|
2255 |
-
var parser = document.createElement("a");
|
2256 |
-
parser.href = url;
|
2257 |
-
// IE 8 and 9 dont load the attributes "protocol" and "host" in case the source URL
|
2258 |
-
// is just a pathname, that is, "/example" and not "http://domain.com/example".
|
2259 |
-
parser.href = parser.href;
|
2260 |
-
|
2261 |
-
// copies all the properties to this object
|
2262 |
-
var properties = ['host', 'hostname', 'hash', 'href', 'port', 'protocol', 'search'];
|
2263 |
-
for (var i = 0, n = properties.length; i < n; i++) {
|
2264 |
-
this[properties[i]] = parser[properties[i]];
|
2265 |
-
}
|
2266 |
-
|
2267 |
-
// pathname is special because IE takes the "/" of the starting of pathname
|
2268 |
-
this.pathname = (parser.pathname.charAt(0) !== "/" ? "/" : "") + parser.pathname;
|
2269 |
-
};
|
2270 |
-
|
2271 |
-
var $root = $('html, body');
|
2272 |
-
var maybeScrollToAnchor = function( evt ){
|
2273 |
-
// problem to solve : users want to define anchor links that work inside a page, but also from other pages.
|
2274 |
-
// @see https://github.com/presscustomizr/nimble-builder/issues/413
|
2275 |
-
var clickedItemUrl = $(this).attr('href');
|
2276 |
-
if ( '' === clickedItemUrl || null === clickedItemUrl || 'string' !== typeof( clickedItemUrl ) || -1 === clickedItemUrl.indexOf('#') )
|
2277 |
-
return;
|
2278 |
-
|
2279 |
-
// an anchor link looks like this : http://mysite.com/contact/#anchor
|
2280 |
-
var itemURLObject = new parseURL( clickedItemUrl ),
|
2281 |
-
_currentPageUrl = new parseURL( window.document.location.href );
|
2282 |
-
|
2283 |
-
if( itemURLObject.pathname !== _currentPageUrl.pathname )
|
2284 |
-
return;
|
2285 |
-
if( 'string' !== typeof(itemURLObject.hash) || '' === itemURLObject.hash )
|
2286 |
-
return;
|
2287 |
-
var $nimbleTargetCandidate = $('[data-sek-level="location"]' ).find( '[id="' + itemURLObject.hash.replace('#','') + '"]');
|
2288 |
-
if ( 1 !== $nimbleTargetCandidate.length )
|
2289 |
-
return;
|
2290 |
-
|
2291 |
-
evt.preventDefault();
|
2292 |
-
$root.animate({ scrollTop : $nimbleTargetCandidate.offset().top - 150 }, 400 );
|
2293 |
-
};
|
2294 |
-
|
2295 |
-
// animate menu item to Nimble anchors
|
2296 |
-
$('body').find('.menu-item' ).on( 'click', 'a', maybeScrollToAnchor );
|
2297 |
-
|
2298 |
-
// animate an anchor link inside Nimble sections
|
2299 |
-
// fixes https://github.com/presscustomizr/nimble-builder/issues/443
|
2300 |
-
$('[data-sek-level="location"]' ).on( 'click', 'a', maybeScrollToAnchor );
|
2301 |
-
});
|
2302 |
-
|
2303 |
-
|
2304 |
-
/* ------------------------------------------------------------------------- *
|
2305 |
-
* MENU
|
2306 |
/* ------------------------------------------------------------------------- */
|
2307 |
jQuery( function($){
|
2308 |
//DROPDOWN
|
@@ -2658,6 +2735,9 @@ jQuery( function($){
|
|
2658 |
|
2659 |
// assign the new id to the mobile nav collapse
|
2660 |
$( '.sek-nav-collapse', '#'+_new_id+'-wrapper' ).attr( 'id', _new_id );
|
|
|
|
|
|
|
2661 |
// remove the duplicate button
|
2662 |
$( '.sek-nav-toggler', '#'+_new_id+'-wrapper' ).detach();
|
2663 |
// update the toggler button so that will now refer to the "cloned" mobile menu
|
@@ -2676,10 +2756,7 @@ jQuery( function($){
|
|
2676 |
_doMobileMenuSetup();
|
2677 |
});
|
2678 |
});
|
2679 |
-
})
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
/* ------------------------------------------------------------------------- *
|
2684 |
* ACCORDION MODULE
|
2685 |
/* ------------------------------------------------------------------------- */
|
@@ -2739,13 +2816,10 @@ jQuery( function($){
|
|
2739 |
});
|
2740 |
}
|
2741 |
});
|
2742 |
-
|
2743 |
-
|
2744 |
-
|
2745 |
-
|
2746 |
-
|
2747 |
/* ------------------------------------------------------------------------- *
|
2748 |
-
* SWIPER CAROUSEL
|
|
|
2749 |
/* ------------------------------------------------------------------------- */
|
2750 |
jQuery( function($){
|
2751 |
var mySwipers = [];
|
@@ -2931,249 +3005,159 @@ jQuery( function($){
|
|
2931 |
}
|
2932 |
});
|
2933 |
|
2934 |
-
|
2935 |
-
|
2936 |
-
|
2937 |
-
|
2938 |
-
|
2939 |
-
|
2940 |
-
|
2941 |
-
|
2942 |
-
|
2943 |
-
|
2944 |
-
|
2945 |
-
|
2946 |
-
|
2947 |
-
|
2948 |
-
|
2949 |
-
|
2950 |
-
|
2951 |
-
|
2952 |
-
|
2953 |
-
|
2954 |
-
|
2955 |
-
|
2956 |
-
|
2957 |
-
|
2958 |
-
|
2959 |
-
|
2960 |
-
|
2961 |
-
|
2962 |
-
|
2963 |
-
onInit : true,//<= shall we smartload on init or wait for a custom event, typically smartload ?
|
2964 |
-
oncustom : [],//list of event here
|
2965 |
-
$containerToListen : null,//<= we might want to listen to custom event trigger to a parent container.Should be a jQuery obj
|
2966 |
-
imgSel : 'img',
|
2967 |
-
defaultCSSVal : { width : 'auto' , height : 'auto' },
|
2968 |
-
leftAdjust : 0,
|
2969 |
-
zeroLeftAdjust : 0,
|
2970 |
-
topAdjust : 0,
|
2971 |
-
zeroTopAdjust : -2,//<= top ajustement for sek-h-centrd
|
2972 |
-
useImgAttr:false,//uses the img height and width attributes if not visible (typically used for the customizr slider hidden images)
|
2973 |
-
setOpacityWhenCentered : false,//this can be used to hide the image during the time it is centered
|
2974 |
-
addCenteredClassWithDelay : 0,//<= a small delay can be required when we rely on the sek-v-centrd or sek-h-centrd css classes to set the opacity for example
|
2975 |
-
opacity : 1
|
2976 |
-
};
|
2977 |
-
|
2978 |
-
function Plugin( element, options ) {
|
2979 |
-
var self = this;
|
2980 |
-
this.container = element;
|
2981 |
-
this.options = $.extend( {}, defaults, options) ;
|
2982 |
-
this._defaults = defaults;
|
2983 |
-
this._name = pluginName;
|
2984 |
-
this._customEvt = $.isArray(self.options.oncustom) ? self.options.oncustom : self.options.oncustom.split(' ');
|
2985 |
-
this.init();
|
2986 |
-
}
|
2987 |
-
|
2988 |
-
//can access this.element and this.option
|
2989 |
-
//@return void
|
2990 |
-
Plugin.prototype.init = function () {
|
2991 |
-
var self = this,
|
2992 |
-
_do = function( _event_ ) {
|
2993 |
-
_event_ = _event_ || 'init';
|
2994 |
-
|
2995 |
-
//parses imgs ( if any ) in current container
|
2996 |
-
var $_imgs = $( self.options.imgSel , self.container );
|
2997 |
-
|
2998 |
-
//if no images or centering is not active, only handle the golden ratio on resize event
|
2999 |
-
if ( 1 <= $_imgs.length && self.options.enableCentering ) {
|
3000 |
-
self._parse_imgs( $_imgs, _event_ );
|
3001 |
-
}
|
3002 |
-
};
|
3003 |
-
|
3004 |
-
//fire
|
3005 |
-
if ( self.options.onInit ) {
|
3006 |
-
_do();
|
3007 |
-
}
|
3008 |
-
|
3009 |
-
//bind the container element with custom events if any
|
3010 |
-
//( the images will also be bound )
|
3011 |
-
if ( $.isArray( self._customEvt ) ) {
|
3012 |
-
self._customEvt.map( function( evt ) {
|
3013 |
-
var $_containerToListen = ( self.options.$containerToListen instanceof $ && 1 < self.options.$containerToListen.length ) ? self.options.$containerToListen : $( self.container );
|
3014 |
-
$_containerToListen.bind( evt, {} , function() {
|
3015 |
-
_do( evt );
|
3016 |
-
});
|
3017 |
-
} );
|
3018 |
}
|
3019 |
-
};
|
3020 |
-
|
3021 |
|
3022 |
-
//@return void
|
3023 |
-
Plugin.prototype._parse_imgs = function( $_imgs, _event_ ) {
|
3024 |
-
var self = this;
|
3025 |
-
$_imgs.each(function ( ind, img ) {
|
3026 |
-
var $_img = $(img);
|
3027 |
-
self._pre_img_cent( $_img, _event_ );
|
3028 |
|
3029 |
-
|
3030 |
-
|
3031 |
-
|
3032 |
-
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
|
|
3036 |
}
|
3037 |
-
|
3038 |
-
});//$_imgs.each()
|
3039 |
-
|
3040 |
-
// Mainly designed to check if a container is not getting parsed too many times
|
3041 |
-
if ( $(self.container).attr('data-img-centered-in-container') ) {
|
3042 |
-
var _n = parseInt( $(self.container).attr('data-img-centered-in-container'), 10 ) + 1;
|
3043 |
-
$(self.container).attr('data-img-centered-in-container', _n );
|
3044 |
-
} else {
|
3045 |
-
$(self.container).attr('data-img-centered-in-container', 1 );
|
3046 |
}
|
3047 |
-
};
|
3048 |
-
|
3049 |
-
|
3050 |
-
|
3051 |
-
//@return void
|
3052 |
-
Plugin.prototype._pre_img_cent = function( $_img ) {
|
3053 |
-
|
3054 |
-
var _state = this._get_current_state( $_img ),
|
3055 |
-
self = this,
|
3056 |
-
_case = _state.current,
|
3057 |
-
_p = _state.prop[_case],
|
3058 |
-
_not_p = _state.prop[ 'h' == _case ? 'v' : 'h'],
|
3059 |
-
_not_p_dir_val = 'h' == _case ? ( this.options.zeroTopAdjust || 0 ) : ( this.options.zeroLeftAdjust || 0 );
|
3060 |
-
|
3061 |
-
var _centerImg = function( $_img ) {
|
3062 |
-
$_img
|
3063 |
-
.css( _p.dim.name , _p.dim.val )
|
3064 |
-
.css( _not_p.dim.name , self.options.defaultCSSVal[ _not_p.dim.name ] || 'auto' )
|
3065 |
-
.css( _p.dir.name, _p.dir.val ).css( _not_p.dir.name, _not_p_dir_val );
|
3066 |
|
3067 |
-
if ( 0 !== self.options.addCenteredClassWithDelay && _utils_.isNumber( self.options.addCenteredClassWithDelay ) ) {
|
3068 |
-
_utils_.delay( function() {
|
3069 |
-
$_img.addClass( _p._class ).removeClass( _not_p._class );
|
3070 |
-
}, self.options.addCenteredClassWithDelay );
|
3071 |
-
} else {
|
3072 |
-
$_img.addClass( _p._class ).removeClass( _not_p._class );
|
3073 |
-
}
|
3074 |
|
3075 |
-
|
3076 |
-
|
3077 |
-
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
|
3082 |
-
|
3083 |
-
};
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3088 |
} else {
|
3089 |
-
|
|
|
|
|
3090 |
}
|
3091 |
-
};
|
3092 |
-
|
3093 |
-
|
3094 |
|
3095 |
|
3096 |
-
|
3097 |
-
|
3098 |
-
|
3099 |
-
|
3100 |
-
|
3101 |
-
|
3102 |
-
|
3103 |
-
|
3104 |
-
|
3105 |
-
|
3106 |
-
|
3107 |
-
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
dim : { name : 'width', val : c_x },
|
3121 |
-
dir : { name : 'top', val : ( c_y - up_i_y ) / 2 + ( this.options.topAdjust || 0 ) },
|
3122 |
-
_class : 'sek-v-centrd'
|
3123 |
-
}
|
3124 |
-
};
|
3125 |
|
3126 |
-
|
3127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3128 |
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
3134 |
|
3135 |
-
|
3136 |
-
|
3137 |
-
|
3138 |
-
if ( 'x' == _dim ){
|
3139 |
-
var _width = $_img.originalWidth();
|
3140 |
-
return typeof _width === undefined ? 0 : _width;
|
3141 |
-
}
|
3142 |
-
if ( 'y' == _dim ){
|
3143 |
-
var _height = $_img.originalHeight();
|
3144 |
-
return typeof _height === undefined ? 0 : _height;
|
3145 |
-
}
|
3146 |
-
}
|
3147 |
-
};
|
3148 |
|
3149 |
-
|
3150 |
-
|
3151 |
-
|
3152 |
-
|
3153 |
-
|
3154 |
-
|
3155 |
-
|
3156 |
-
return true;
|
3157 |
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
|
3162 |
-
|
3163 |
-
|
3164 |
-
|
3165 |
-
return
|
3166 |
-
|
|
|
|
|
3167 |
|
|
|
|
|
|
|
3168 |
|
3169 |
-
|
3170 |
-
|
3171 |
-
return this.each(function () {
|
3172 |
-
if (!$.data(this, 'plugin_' + pluginName)) {
|
3173 |
-
$.data(this, 'plugin_' + pluginName,
|
3174 |
-
new Plugin( this, options ));
|
3175 |
-
}
|
3176 |
-
});
|
3177 |
-
};
|
3178 |
|
3179 |
-
|
|
|
|
|
|
1994 |
}
|
1995 |
});
|
1996 |
};
|
1997 |
+
})( jQuery, window );/* ===================================================
|
1998 |
+
* jquerynimbleCenterImages.js v1.0.0
|
1999 |
+
* ( inspired by Customizr theme jQuery plugin )
|
2000 |
+
* ===================================================
|
2001 |
+
* (c) 2019 Nicolas Guillaume, Nice, France
|
2002 |
+
* CenterImages plugin may be freely distributed under the terms of the GNU GPL v2.0 or later license.
|
2003 |
+
*
|
2004 |
+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
2005 |
+
*
|
2006 |
+
* Center images in a specified container
|
2007 |
+
*
|
2008 |
+
* =================================================== */
|
2009 |
+
(function ( $, window ) {
|
2010 |
+
//defaults
|
2011 |
+
var pluginName = 'nimbleCenterImages',
|
2012 |
+
defaults = {
|
2013 |
+
enableCentering : true,
|
2014 |
+
onresize : true,
|
2015 |
+
onInit : true,//<= shall we smartload on init or wait for a custom event, typically smartload ?
|
2016 |
+
oncustom : [],//list of event here
|
2017 |
+
$containerToListen : null,//<= we might want to listen to custom event trigger to a parent container.Should be a jQuery obj
|
2018 |
+
imgSel : 'img',
|
2019 |
+
defaultCSSVal : { width : 'auto' , height : 'auto' },
|
2020 |
+
leftAdjust : 0,
|
2021 |
+
zeroLeftAdjust : 0,
|
2022 |
+
topAdjust : 0,
|
2023 |
+
zeroTopAdjust : -2,//<= top ajustement for sek-h-centrd
|
2024 |
+
useImgAttr:false,//uses the img height and width attributes if not visible (typically used for the customizr slider hidden images)
|
2025 |
+
setOpacityWhenCentered : false,//this can be used to hide the image during the time it is centered
|
2026 |
+
addCenteredClassWithDelay : 0,//<= a small delay can be required when we rely on the sek-v-centrd or sek-h-centrd css classes to set the opacity for example
|
2027 |
+
opacity : 1
|
2028 |
+
};
|
2029 |
+
|
2030 |
+
function Plugin( element, options ) {
|
2031 |
+
var self = this;
|
2032 |
+
this.container = element;
|
2033 |
+
this.options = $.extend( {}, defaults, options) ;
|
2034 |
+
this._defaults = defaults;
|
2035 |
+
this._name = pluginName;
|
2036 |
+
this._customEvt = $.isArray(self.options.oncustom) ? self.options.oncustom : self.options.oncustom.split(' ');
|
2037 |
+
this.init();
|
2038 |
+
}
|
2039 |
+
|
2040 |
+
//can access this.element and this.option
|
2041 |
+
//@return void
|
2042 |
+
Plugin.prototype.init = function () {
|
2043 |
+
var self = this,
|
2044 |
+
_do = function( _event_ ) {
|
2045 |
+
_event_ = _event_ || 'init';
|
2046 |
+
|
2047 |
+
//parses imgs ( if any ) in current container
|
2048 |
+
var $_imgs = $( self.options.imgSel , self.container );
|
2049 |
+
|
2050 |
+
//if no images or centering is not active, only handle the golden ratio on resize event
|
2051 |
+
if ( 1 <= $_imgs.length && self.options.enableCentering ) {
|
2052 |
+
self._parse_imgs( $_imgs, _event_ );
|
2053 |
+
}
|
2054 |
+
};
|
2055 |
+
|
2056 |
+
//fire
|
2057 |
+
if ( self.options.onInit ) {
|
2058 |
+
_do();
|
2059 |
+
}
|
2060 |
+
|
2061 |
+
//bind the container element with custom events if any
|
2062 |
+
//( the images will also be bound )
|
2063 |
+
if ( $.isArray( self._customEvt ) ) {
|
2064 |
+
self._customEvt.map( function( evt ) {
|
2065 |
+
var $_containerToListen = ( self.options.$containerToListen instanceof $ && 1 < self.options.$containerToListen.length ) ? self.options.$containerToListen : $( self.container );
|
2066 |
+
$_containerToListen.bind( evt, {} , function() {
|
2067 |
+
_do( evt );
|
2068 |
+
});
|
2069 |
+
} );
|
2070 |
+
}
|
2071 |
+
};
|
2072 |
+
|
2073 |
+
|
2074 |
+
//@return void
|
2075 |
+
Plugin.prototype._parse_imgs = function( $_imgs, _event_ ) {
|
2076 |
+
var self = this;
|
2077 |
+
$_imgs.each(function ( ind, img ) {
|
2078 |
+
var $_img = $(img);
|
2079 |
+
self._pre_img_cent( $_img, _event_ );
|
2080 |
+
|
2081 |
+
// IMG CENTERING FN ON RESIZE ?
|
2082 |
+
// Parse Img can be fired several times, so bind once
|
2083 |
+
if ( self.options.onresize && ! $_img.data('resize-react-bound' ) ) {
|
2084 |
+
$_img.data('resize-react-bound', true );
|
2085 |
+
$(window).resize( _utils_.debounce( function() {
|
2086 |
+
self._pre_img_cent( $_img, 'resize');
|
2087 |
+
}, 100 ) );
|
2088 |
+
}
|
2089 |
+
|
2090 |
+
});//$_imgs.each()
|
2091 |
+
|
2092 |
+
// Mainly designed to check if a container is not getting parsed too many times
|
2093 |
+
if ( $(self.container).attr('data-img-centered-in-container') ) {
|
2094 |
+
var _n = parseInt( $(self.container).attr('data-img-centered-in-container'), 10 ) + 1;
|
2095 |
+
$(self.container).attr('data-img-centered-in-container', _n );
|
2096 |
+
} else {
|
2097 |
+
$(self.container).attr('data-img-centered-in-container', 1 );
|
2098 |
+
}
|
2099 |
+
};
|
2100 |
+
|
2101 |
+
|
2102 |
+
|
2103 |
+
//@return void
|
2104 |
+
Plugin.prototype._pre_img_cent = function( $_img ) {
|
2105 |
+
|
2106 |
+
var _state = this._get_current_state( $_img ),
|
2107 |
+
self = this,
|
2108 |
+
_case = _state.current,
|
2109 |
+
_p = _state.prop[_case],
|
2110 |
+
_not_p = _state.prop[ 'h' == _case ? 'v' : 'h'],
|
2111 |
+
_not_p_dir_val = 'h' == _case ? ( this.options.zeroTopAdjust || 0 ) : ( this.options.zeroLeftAdjust || 0 );
|
2112 |
+
|
2113 |
+
var _centerImg = function( $_img ) {
|
2114 |
+
$_img
|
2115 |
+
.css( _p.dim.name , _p.dim.val )
|
2116 |
+
.css( _not_p.dim.name , self.options.defaultCSSVal[ _not_p.dim.name ] || 'auto' )
|
2117 |
+
.css( _p.dir.name, _p.dir.val ).css( _not_p.dir.name, _not_p_dir_val );
|
2118 |
+
|
2119 |
+
if ( 0 !== self.options.addCenteredClassWithDelay && _utils_.isNumber( self.options.addCenteredClassWithDelay ) ) {
|
2120 |
+
_utils_.delay( function() {
|
2121 |
+
$_img.addClass( _p._class ).removeClass( _not_p._class );
|
2122 |
+
}, self.options.addCenteredClassWithDelay );
|
2123 |
+
} else {
|
2124 |
+
$_img.addClass( _p._class ).removeClass( _not_p._class );
|
2125 |
+
}
|
2126 |
+
|
2127 |
+
// Mainly designed to check if a single image is not getting parsed too many times
|
2128 |
+
if ( $_img.attr('data-img-centered') ) {
|
2129 |
+
var _n = parseInt( $_img.attr('data-img-centered'), 10 ) + 1;
|
2130 |
+
$_img.attr('data-img-centered', _n );
|
2131 |
+
} else {
|
2132 |
+
$_img.attr('data-img-centered', 1 );
|
2133 |
+
}
|
2134 |
+
return $_img;
|
2135 |
+
};
|
2136 |
+
if ( this.options.setOpacityWhenCentered ) {
|
2137 |
+
$.when( _centerImg( $_img ) ).done( function( $_img ) {
|
2138 |
+
$_img.css( 'opacity', self.options.opacity );
|
2139 |
+
});
|
2140 |
+
} else {
|
2141 |
+
_utils_.delay(function() { _centerImg( $_img ); }, 0 );
|
2142 |
+
}
|
2143 |
+
};
|
2144 |
+
|
2145 |
+
|
2146 |
+
|
2147 |
+
|
2148 |
+
/********
|
2149 |
+
* HELPERS
|
2150 |
+
*********/
|
2151 |
+
//@return object with initial conditions : { current : 'h' or 'v', prop : {} }
|
2152 |
+
Plugin.prototype._get_current_state = function( $_img ) {
|
2153 |
+
var c_x = $_img.closest(this.container).outerWidth(),
|
2154 |
+
c_y = $(this.container).outerHeight(),
|
2155 |
+
i_x = this._get_img_dim( $_img , 'x'),
|
2156 |
+
i_y = this._get_img_dim( $_img , 'y'),
|
2157 |
+
up_i_x = i_y * c_y !== 0 ? Math.round( i_x / i_y * c_y ) : c_x,
|
2158 |
+
up_i_y = i_x * c_x !== 0 ? Math.round( i_y / i_x * c_x ) : c_y,
|
2159 |
+
current = 'h';
|
2160 |
+
//avoid dividing by zero if c_x or i_x === 0
|
2161 |
+
if ( 0 !== c_x * i_x ) {
|
2162 |
+
current = ( c_y / c_x ) >= ( i_y / i_x ) ? 'h' : 'v';
|
2163 |
+
}
|
2164 |
+
|
2165 |
+
var prop = {
|
2166 |
+
h : {
|
2167 |
+
dim : { name : 'height', val : c_y },
|
2168 |
+
dir : { name : 'left', val : ( c_x - up_i_x ) / 2 + ( this.options.leftAdjust || 0 ) },
|
2169 |
+
_class : 'sek-h-centrd'
|
2170 |
+
},
|
2171 |
+
v : {
|
2172 |
+
dim : { name : 'width', val : c_x },
|
2173 |
+
dir : { name : 'top', val : ( c_y - up_i_y ) / 2 + ( this.options.topAdjust || 0 ) },
|
2174 |
+
_class : 'sek-v-centrd'
|
2175 |
+
}
|
2176 |
+
};
|
2177 |
+
|
2178 |
+
return { current : current , prop : prop };
|
2179 |
+
};
|
2180 |
+
|
2181 |
+
//@return img height or width
|
2182 |
+
//uses the img height and width if not visible and set in options
|
2183 |
+
Plugin.prototype._get_img_dim = function( $_img, _dim ) {
|
2184 |
+
if ( ! this.options.useImgAttr )
|
2185 |
+
return 'x' == _dim ? $_img.outerWidth() : $_img.outerHeight();
|
2186 |
+
|
2187 |
+
if ( $_img.is(":visible") ) {
|
2188 |
+
return 'x' == _dim ? $_img.outerWidth() : $_img.outerHeight();
|
2189 |
+
} else {
|
2190 |
+
if ( 'x' == _dim ){
|
2191 |
+
var _width = $_img.originalWidth();
|
2192 |
+
return typeof _width === undefined ? 0 : _width;
|
2193 |
+
}
|
2194 |
+
if ( 'y' == _dim ){
|
2195 |
+
var _height = $_img.originalHeight();
|
2196 |
+
return typeof _height === undefined ? 0 : _height;
|
2197 |
+
}
|
2198 |
+
}
|
2199 |
+
};
|
2200 |
+
|
2201 |
+
/*
|
2202 |
+
* @params string : ids or classes
|
2203 |
+
* @return boolean
|
2204 |
+
*/
|
2205 |
+
Plugin.prototype._is_selector_allowed = function() {
|
2206 |
+
//has requested sel ?
|
2207 |
+
if ( ! $(this.container).attr( 'class' ) )
|
2208 |
+
return true;
|
2209 |
+
|
2210 |
+
var _elSels = $(this.container).attr( 'class' ).split(' '),
|
2211 |
+
_selsToSkip = [],
|
2212 |
+
_filtered = _elSels.filter( function(classe) { return -1 != $.inArray( classe , _selsToSkip ) ;});
|
2213 |
+
|
2214 |
+
//check if the filtered selectors array with the non authorized selectors is empty or not
|
2215 |
+
//if empty => all selectors are allowed
|
2216 |
+
//if not, at least one is not allowed
|
2217 |
+
return 0 === _filtered.length;
|
2218 |
+
};
|
2219 |
+
|
2220 |
+
|
2221 |
+
// prevents against multiple instantiations
|
2222 |
+
$.fn[pluginName] = function ( options ) {
|
2223 |
+
return this.each(function () {
|
2224 |
+
if (!$.data(this, 'plugin_' + pluginName)) {
|
2225 |
+
$.data(this, 'plugin_' + pluginName,
|
2226 |
+
new Plugin( this, options ));
|
2227 |
+
}
|
2228 |
+
});
|
2229 |
+
};
|
2230 |
+
|
2231 |
})( jQuery, window );// global sekFrontLocalized
|
2232 |
/* ===================================================
|
2233 |
* jquery.fn.parallaxBg v1.0.0
|
2379 |
};
|
2380 |
})( jQuery, window );// global sekFrontLocalized
|
2381 |
/* ------------------------------------------------------------------------- *
|
2382 |
+
* MENU
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2383 |
/* ------------------------------------------------------------------------- */
|
2384 |
jQuery( function($){
|
2385 |
//DROPDOWN
|
2735 |
|
2736 |
// assign the new id to the mobile nav collapse
|
2737 |
$( '.sek-nav-collapse', '#'+_new_id+'-wrapper' ).attr( 'id', _new_id );
|
2738 |
+
// add a data attribute so we can target the mobile menu with dynamic css rules
|
2739 |
+
// @needed when coding : https://github.com/presscustomizr/nimble-builder/issues/491
|
2740 |
+
$( '.sek-nav-wrap', '#'+_new_id+'-wrapper' ).attr('data-sek-is-mobile-menu', 'yes');
|
2741 |
// remove the duplicate button
|
2742 |
$( '.sek-nav-toggler', '#'+_new_id+'-wrapper' ).detach();
|
2743 |
// update the toggler button so that will now refer to the "cloned" mobile menu
|
2756 |
_doMobileMenuSetup();
|
2757 |
});
|
2758 |
});
|
2759 |
+
});// global sekFrontLocalized
|
|
|
|
|
|
|
2760 |
/* ------------------------------------------------------------------------- *
|
2761 |
* ACCORDION MODULE
|
2762 |
/* ------------------------------------------------------------------------- */
|
2816 |
});
|
2817 |
}
|
2818 |
});
|
2819 |
+
// global sekFrontLocalized
|
|
|
|
|
|
|
|
|
2820 |
/* ------------------------------------------------------------------------- *
|
2821 |
+
* SWIPER CAROUSEL implemented for the simple slider module czr_img_slider_module
|
2822 |
+
* dependency : $.fn.nimbleCenterImages()
|
2823 |
/* ------------------------------------------------------------------------- */
|
2824 |
jQuery( function($){
|
2825 |
var mySwipers = [];
|
3005 |
}
|
3006 |
});
|
3007 |
|
3008 |
+
// global sekFrontLocalized
|
3009 |
+
/* ------------------------------------------------------------------------- *
|
3010 |
+
* LIGHT BOX WITH MAGNIFIC POPUP
|
3011 |
+
/* ------------------------------------------------------------------------- */
|
3012 |
+
jQuery(function($){
|
3013 |
+
$('[data-sek-module-type="czr_image_module"]').each( function() {
|
3014 |
+
$linkCandidate = $(this).find('.sek-link-to-img-lightbox');
|
3015 |
+
// Abort if no link candidate, or if the link href looks like :javascript:void(0) <= this can occur with the default image for example.
|
3016 |
+
if ( $linkCandidate.length < 1 || 'string' !== typeof( $linkCandidate[0].protocol ) || -1 !== $linkCandidate[0].protocol.indexOf('javascript') )
|
3017 |
+
return;
|
3018 |
+
if ( 'function' !== typeof( $.fn.magnificPopup ) )
|
3019 |
+
return;
|
3020 |
+
try { $linkCandidate.magnificPopup({
|
3021 |
+
type: 'image',
|
3022 |
+
closeOnContentClick: true,
|
3023 |
+
closeBtnInside: true,
|
3024 |
+
fixedContentPos: true,
|
3025 |
+
mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
|
3026 |
+
image: {
|
3027 |
+
verticalFit: true
|
3028 |
+
},
|
3029 |
+
zoom: {
|
3030 |
+
enabled: true,
|
3031 |
+
duration: 300 // don't foget to change the duration also in CSS
|
3032 |
+
}
|
3033 |
+
}); } catch( er ) {
|
3034 |
+
if ( typeof window.console.log === 'function' ) {
|
3035 |
+
console.log( er );
|
3036 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3037 |
}
|
3038 |
+
});
|
3039 |
+
});
|
3040 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3041 |
|
3042 |
+
/* ------------------------------------------------------------------------- *
|
3043 |
+
* SMARTLOAD
|
3044 |
+
/* ------------------------------------------------------------------------- */
|
3045 |
+
jQuery(function($){
|
3046 |
+
$('.sektion-wrapper').each( function() {
|
3047 |
+
try { $(this).nimbleLazyLoad(); } catch( er ) {
|
3048 |
+
if ( typeof window.console.log === 'function' ) {
|
3049 |
+
console.log( er );
|
3050 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3051 |
}
|
3052 |
+
});
|
3053 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3054 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3055 |
|
3056 |
+
/* ------------------------------------------------------------------------- *
|
3057 |
+
* BG PARALLAX
|
3058 |
+
/* ------------------------------------------------------------------------- */
|
3059 |
+
jQuery(function($){
|
3060 |
+
$('[data-sek-bg-parallax="true"]').each( function() {
|
3061 |
+
$(this).parallaxBg( { parallaxForce : $(this).data('sek-parallax-force') } );
|
3062 |
+
});
|
3063 |
+
var _setParallaxWhenCustomizing = function() {
|
3064 |
+
$(this).parallaxBg( { parallaxForce : $(this).data('sek-parallax-force') } );
|
3065 |
+
// hack => always trigger a 'resize' event with a small delay to make sure bg positions are ok
|
3066 |
+
setTimeout( function() {
|
3067 |
+
$('body').trigger('resize');
|
3068 |
+
}, 500 );
|
3069 |
+
};
|
3070 |
+
// When previewing, react to level refresh
|
3071 |
+
// This can occur to any level. We listen to the bubbling event on 'body' tag
|
3072 |
+
// and salmon up to maybe instantiate any missing candidate
|
3073 |
+
// Example : when a preset_section is injected
|
3074 |
+
$('body').on('sek-level-refreshed sek-section-added', function( evt ){
|
3075 |
+
if ( "true" === $(this).data('sek-bg-parallax') ) {
|
3076 |
+
_setParallaxWhenCustomizing.call(this);
|
3077 |
} else {
|
3078 |
+
$(this).find('[data-sek-bg-parallax="true"]').each( function() {
|
3079 |
+
_setParallaxWhenCustomizing.call(this);
|
3080 |
+
});
|
3081 |
}
|
3082 |
+
});
|
3083 |
+
});
|
|
|
3084 |
|
3085 |
|
3086 |
+
/* ------------------------------------------------------------------------- *
|
3087 |
+
* FITTEXT
|
3088 |
+
/* ------------------------------------------------------------------------- */
|
3089 |
+
jQuery( function($){
|
3090 |
+
var doFitText = function() {
|
3091 |
+
$(".sek-module-placeholder").each( function() {
|
3092 |
+
$(this).fitText( 0.4, { minFontSize: '50px', maxFontSize: '300px' } ).data('sek-fittext-done', true );
|
3093 |
+
});
|
3094 |
+
// Delegate instantiation
|
3095 |
+
$('.sektion-wrapper').on(
|
3096 |
+
'sek-columns-refreshed sek-modules-refreshed sek-section-added sek-level-refreshed',
|
3097 |
+
'div[data-sek-level="section"]',
|
3098 |
+
function( evt ) {
|
3099 |
+
$(this).find(".sek-module-placeholder").fitText( 0.4, { minFontSize: '50px', maxFontSize: '300px' } ).data('sek-fittext-done', true );
|
3100 |
+
}
|
3101 |
+
);
|
3102 |
|
3103 |
+
};
|
3104 |
+
//doFitText();
|
3105 |
+
// if ( 'function' == typeof(_) && ! _utils_.isUndefined( wp.customize ) ) {
|
3106 |
+
// wp.customize.selectiveRefresh.bind('partial-content-rendered' , function() {
|
3107 |
+
// doFitText();
|
3108 |
+
// });
|
3109 |
+
// }
|
|
|
|
|
|
|
|
|
|
|
3110 |
|
3111 |
+
// does the same as new URL(url)
|
3112 |
+
// but support IE.
|
3113 |
+
// @see https://stackoverflow.com/questions/736513/how-do-i-parse-a-url-into-hostname-and-path-in-javascript
|
3114 |
+
// @see https://gist.github.com/acdcjunior/9820040
|
3115 |
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/URL#Properties
|
3116 |
+
var parseURL = function(url) {
|
3117 |
+
var parser = document.createElement("a");
|
3118 |
+
parser.href = url;
|
3119 |
+
// IE 8 and 9 dont load the attributes "protocol" and "host" in case the source URL
|
3120 |
+
// is just a pathname, that is, "/example" and not "http://domain.com/example".
|
3121 |
+
parser.href = parser.href;
|
3122 |
|
3123 |
+
// copies all the properties to this object
|
3124 |
+
var properties = ['host', 'hostname', 'hash', 'href', 'port', 'protocol', 'search'];
|
3125 |
+
for (var i = 0, n = properties.length; i < n; i++) {
|
3126 |
+
this[properties[i]] = parser[properties[i]];
|
3127 |
+
}
|
3128 |
|
3129 |
+
// pathname is special because IE takes the "/" of the starting of pathname
|
3130 |
+
this.pathname = (parser.pathname.charAt(0) !== "/" ? "/" : "") + parser.pathname;
|
3131 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3132 |
|
3133 |
+
var $root = $('html, body');
|
3134 |
+
var maybeScrollToAnchor = function( evt ){
|
3135 |
+
// problem to solve : users want to define anchor links that work inside a page, but also from other pages.
|
3136 |
+
// @see https://github.com/presscustomizr/nimble-builder/issues/413
|
3137 |
+
var clickedItemUrl = $(this).attr('href');
|
3138 |
+
if ( '' === clickedItemUrl || null === clickedItemUrl || 'string' !== typeof( clickedItemUrl ) || -1 === clickedItemUrl.indexOf('#') )
|
3139 |
+
return;
|
|
|
3140 |
|
3141 |
+
// an anchor link looks like this : http://mysite.com/contact/#anchor
|
3142 |
+
var itemURLObject = new parseURL( clickedItemUrl ),
|
3143 |
+
_currentPageUrl = new parseURL( window.document.location.href );
|
3144 |
|
3145 |
+
if( itemURLObject.pathname !== _currentPageUrl.pathname )
|
3146 |
+
return;
|
3147 |
+
if( 'string' !== typeof(itemURLObject.hash) || '' === itemURLObject.hash )
|
3148 |
+
return;
|
3149 |
+
var $nimbleTargetCandidate = $('[data-sek-level="location"]' ).find( '[id="' + itemURLObject.hash.replace('#','') + '"]');
|
3150 |
+
if ( 1 !== $nimbleTargetCandidate.length )
|
3151 |
+
return;
|
3152 |
|
3153 |
+
evt.preventDefault();
|
3154 |
+
$root.animate({ scrollTop : $nimbleTargetCandidate.offset().top - 150 }, 400 );
|
3155 |
+
};
|
3156 |
|
3157 |
+
// animate menu item to Nimble anchors
|
3158 |
+
$('body').find('.menu-item' ).on( 'click', 'a', maybeScrollToAnchor );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3159 |
|
3160 |
+
// animate an anchor link inside Nimble sections
|
3161 |
+
// fixes https://github.com/presscustomizr/nimble-builder/issues/443
|
3162 |
+
$('[data-sek-level="location"]' ).on( 'click', 'a', maybeScrollToAnchor );
|
3163 |
+
});
|
assets/front/js/ccat-nimble-front.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},e=t._,r=Array.prototype,o=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,u=r.slice,d=o.toString,a=o.hasOwnProperty,n=Array.isArray,s=Object.keys,l=Object.create,c=function(){},p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"==typeof exports||exports.nodeType?t._utils_=p:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=p),exports._utils_=p),p.VERSION="1.9.1";var h,m=function(i,a,t){if(void 0===a)return i;switch(null==t?3:t){case 1:return function(t){return i.call(a,t)};case 3:return function(t,e,n){return i.call(a,t,e,n)};case 4:return function(t,e,n,r){return i.call(a,t,e,n,r)}}return function(){return i.apply(a,arguments)}},g=function(t,e,n){return p.iteratee!==h?p.iteratee(t,e):null==t?p.identity:p.isFunction(t)?m(t,e,n):p.isObject(t)&&!p.isArray(t)?p.matcher(t):p.property(t)};p.iteratee=h=function(t,e){return g(t,e,1/0)};var v=function(i,a){return a=null==a?i.length-1:+a,function(){for(var t=Math.max(arguments.length-a,0),e=Array(t),n=0;n<t;n++)e[n]=arguments[n+a];switch(a){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var r=Array(a+1);for(n=0;n<a;n++)r[n]=arguments[n];return r[a]=e,i.apply(this,r)}},y=function(t){if(!p.isObject(t))return{};if(l)return l(t);c.prototype=t;var e=new c;return c.prototype=null,e},_=function(e){return function(t){return null==t?void 0:t[e]}},k=function(t,e){return null!=t&&a.call(t,e)},b=function(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0},w=Math.pow(2,53)-1,x=_("length"),A=function(t){var e=x(t);return"number"==typeof e&&0<=e&&e<=w};p.each=p.forEach=function(t,e,n){var r,i;if(e=m(e,n),A(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var a=p.keys(t);for(r=0,i=a.length;r<i;r++)e(t[a[r]],a[r],t)}return t},p.map=p.collect=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=e(t[s],s,t)}return a};var C=function(u){return function(t,e,n,r){var i=3<=arguments.length;return function(t,e,n,r){var i=!A(t)&&p.keys(t),a=(i||t).length,o=0<u?0:a-1;for(r||(n=t[i?i[o]:o],o+=u);0<=o&&o<a;o+=u){var s=i?i[o]:o;n=e(n,t[s],s,t)}return n}(t,m(e,r,4),n,i)}};p.reduce=p.foldl=p.inject=C(1),p.reduceRight=p.foldr=C(-1),p.find=p.detect=function(t,e,n){var r=(A(t)?p.findIndex:p.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t[r]},p.filter=p.select=function(t,r,e){var i=[];return r=g(r,e),p.each(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i},p.reject=function(t,e,n){return p.filter(t,p.negate(g(e)),n)},p.every=p.all=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=0;a<i;a++){var o=r?r[a]:a;if(!e(t[o],o,t))return!1}return!0},p.some=p.any=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=0;a<i;a++){var o=r?r[a]:a;if(e(t[o],o,t))return!0}return!1},p.contains=p.includes=p.include=function(t,e,n,r){return A(t)||(t=p.values(t)),("number"!=typeof n||r)&&(n=0),0<=p.indexOf(t,e,n)},p.invoke=v(function(t,n,r){var i,a;return p.isFunction(n)?a=n:p.isArray(n)&&(i=n.slice(0,-1),n=n[n.length-1]),p.map(t,function(t){var e=a;if(!e){if(i&&i.length&&(t=b(t,i)),null==t)return;e=t[n]}return null==e?e:e.apply(t,r)})}),p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matcher(e))},p.findWhere=function(t,e){return p.find(t,p.matcher(e))},p.max=function(t,r,e){var n,i,a=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=A(t)?t:p.values(t)).length;s<u;s++)null!=(n=t[s])&&a<n&&(a=n);else r=g(r,e),p.each(t,function(t,e,n){i=r(t,e,n),(o<i||i===-1/0&&a===-1/0)&&(a=t,o=i)});return a},p.min=function(t,r,e){var n,i,a=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=A(t)?t:p.values(t)).length;s<u;s++)null!=(n=t[s])&&n<a&&(a=n);else r=g(r,e),p.each(t,function(t,e,n){((i=r(t,e,n))<o||i===1/0&&a===1/0)&&(a=t,o=i)});return a},p.shuffle=function(t){return p.sample(t,1/0)},p.sample=function(t,e,n){if(null==e||n)return A(t)||(t=p.values(t)),t[p.random(t.length-1)];var r=A(t)?p.clone(t):p.values(t),i=x(r);e=Math.max(Math.min(e,i),0);for(var a=i-1,o=0;o<e;o++){var s=p.random(o,a),u=r[o];r[o]=r[s],r[s]=u}return r.slice(0,e)},p.sortBy=function(t,r,e){var i=0;return r=g(r,e),p.pluck(p.map(t,function(t,e,n){return{value:t,index:i++,criteria:r(t,e,n)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var I=function(o,e){return function(r,i,t){var a=e?[[],[]]:{};return i=g(i,t),p.each(r,function(t,e){var n=i(t,e,r);o(a,t,n)}),a}};p.groupBy=I(function(t,e,n){k(t,n)?t[n].push(e):t[n]=[e]}),p.indexBy=I(function(t,e,n){t[n]=e}),p.countBy=I(function(t,e,n){k(t,n)?t[n]++:t[n]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(t){return t?p.isArray(t)?u.call(t):p.isString(t)?t.match(E):A(t)?p.map(t,p.identity):p.values(t):[]},p.size=function(t){return null==t?0:A(t)?t.length:p.keys(t).length},p.partition=I(function(t,e,n){t[n?0:1].push(e)},!0),p.first=p.head=p.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:p.initial(t,t.length-e)},p.initial=function(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},p.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:p.rest(t,Math.max(0,t.length-e))},p.rest=p.tail=p.drop=function(t,e,n){return u.call(t,null==e||n?1:e)},p.compact=function(t){return p.filter(t,Boolean)};var O=function(t,e,n,r){for(var i=(r=r||[]).length,a=0,o=x(t);a<o;a++){var s=t[a];if(A(s)&&(p.isArray(s)||p.isArguments(s)))if(e)for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else O(s,e,n,r),i=r.length;else n||(r[i++]=s)}return r};p.flatten=function(t,e){return O(t,e,!1)},p.without=v(function(t,e){return p.difference(t,e)}),p.uniq=p.unique=function(t,e,n,r){p.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=g(n,r));for(var i=[],a=[],o=0,s=x(t);o<s;o++){var u=t[o],l=n?n(u,o,t):u;e&&!n?(o&&a===l||i.push(u),a=l):n?p.contains(a,l)||(a.push(l),i.push(u)):p.contains(i,u)||i.push(u)}return i},p.union=v(function(t){return p.uniq(O(t,!0,!0))}),p.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=x(t);r<i;r++){var a=t[r];if(!p.contains(e,a)){var o;for(o=1;o<n&&p.contains(arguments[o],a);o++);o===n&&e.push(a)}}return e},p.difference=v(function(t,e){return e=O(e,!0,!0),p.filter(t,function(t){return!p.contains(e,t)})}),p.unzip=function(t){for(var e=t&&p.max(t,x).length||0,n=Array(e),r=0;r<e;r++)n[r]=p.pluck(t,r);return n},p.zip=v(p.unzip),p.object=function(t,e){for(var n={},r=0,i=x(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n};var j=function(a){return function(t,e,n){e=g(e,n);for(var r=x(t),i=0<a?0:r-1;0<=i&&i<r;i+=a)if(e(t[i],i,t))return i;return-1}};p.findIndex=j(1),p.findLastIndex=j(-1),p.sortedIndex=function(t,e,n,r){for(var i=(n=g(n,r,1))(e),a=0,o=x(t);a<o;){var s=Math.floor((a+o)/2);n(t[s])<i?a=s+1:o=s}return a};var S=function(a,o,s){return function(t,e,n){var r=0,i=x(t);if("number"==typeof n)0<a?r=0<=n?n:Math.max(n+i,r):i=0<=n?Math.min(n+1,i):n+i+1;else if(s&&n&&i)return t[n=s(t,e)]===e?n:-1;if(e!=e)return 0<=(n=o(u.call(t,r,i),p.isNaN))?n+r:-1;for(n=0<a?r:i-1;0<=n&&n<i;n+=a)if(t[n]===e)return n;return-1}};p.indexOf=S(1,p.findIndex,p.sortedIndex),p.lastIndexOf=S(-1,p.findLastIndex),p.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),a=0;a<r;a++,t+=n)i[a]=t;return i},p.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(u.call(t,r,r+=e));return n};var T=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var a=y(t.prototype),o=t.apply(a,i);return p.isObject(o)?o:a};p.bind=v(function(e,n,r){if(!p.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return T(e,i,n,this,r.concat(t))});return i}),p.partial=v(function(i,a){var o=p.partial.placeholder,s=function(){for(var t=0,e=a.length,n=Array(e),r=0;r<e;r++)n[r]=a[r]===o?arguments[t++]:a[r];for(;t<arguments.length;)n.push(arguments[t++]);return T(i,s,this,this,n)};return s}),(p.partial.placeholder=p).bindAll=v(function(t,e){var n=(e=O(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=p.bind(t[r],t)}}),p.memoize=function(r,i){var a=function(t){var e=a.cache,n=""+(i?i.apply(this,arguments):t);return k(e,n)||(e[n]=r.apply(this,arguments)),e[n]};return a.cache={},a},p.delay=v(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(n,r,i){var a,o,s,u,l=0;i||(i={});var c=function(){l=!1===i.leading?0:p.now(),a=null,u=n.apply(o,s),a||(o=s=null)},t=function(){var t=p.now();l||!1!==i.leading||(l=t);var e=r-(t-l);return o=this,s=arguments,e<=0||r<e?(a&&(clearTimeout(a),a=null),l=t,u=n.apply(o,s),a||(o=s=null)):a||!1===i.trailing||(a=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(a),l=0,a=o=s=null},t},p.debounce=function(n,r,i){var a,o,s=function(t,e){a=null,e&&(o=n.apply(t,e))},t=v(function(t){if(a&&clearTimeout(a),i){var e=!a;a=setTimeout(s,r),e&&(o=n.apply(this,t))}else a=p.delay(s,r,this,t);return o});return t.cancel=function(){clearTimeout(a),a=null},t},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},p.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},p.before=function(t,e){var n;return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},p.once=p.partial(p.before,2),p.restArguments=v;var z=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],P=function(t,e){var n=F.length,r=t.constructor,i=p.isFunction(r)&&r.prototype||o,a="constructor";for(k(t,a)&&!p.contains(e,a)&&e.push(a);n--;)(a=F[n])in t&&t[a]!==i[a]&&!p.contains(e,a)&&e.push(a)};p.keys=function(t){if(!p.isObject(t))return[];if(s)return s(t);var e=[];for(var n in t)k(t,n)&&e.push(n);return z&&P(t,e),e},p.allKeys=function(t){if(!p.isObject(t))return[];var e=[];for(var n in t)e.push(n);return z&&P(t,e),e},p.values=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},p.mapObject=function(t,e,n){e=g(e,n);for(var r=p.keys(t),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=e(t[s],s,t)}return a},p.pairs=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},p.invert=function(t){for(var e={},n=p.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},p.functions=p.methods=function(t){var e=[];for(var n in t)p.isFunction(t[n])&&e.push(n);return e.sort()};var D=function(u,l){return function(t){var e=arguments.length;if(l&&(t=Object(t)),e<2||null==t)return t;for(var n=1;n<e;n++)for(var r=arguments[n],i=u(r),a=i.length,o=0;o<a;o++){var s=i[o];l&&void 0!==t[s]||(t[s]=r[s])}return t}};p.extend=D(p.allKeys),p.extendOwn=p.assign=D(p.keys),p.findKey=function(t,e,n){e=g(e,n);for(var r,i=p.keys(t),a=0,o=i.length;a<o;a++)if(e(t[r=i[a]],r,t))return r};var N,M,L=function(t,e,n){return e in n};p.pick=v(function(t,e){var n={},r=e[0];if(null==t)return n;p.isFunction(r)?(1<e.length&&(r=m(r,e[1])),e=p.allKeys(t)):(r=L,e=O(e,!1,!1),t=Object(t));for(var i=0,a=e.length;i<a;i++){var o=e[i],s=t[o];r(s,o,t)&&(n[o]=s)}return n}),p.omit=v(function(t,n){var e,r=n[0];return p.isFunction(r)?(r=p.negate(r),1<n.length&&(e=n[1])):(n=p.map(O(n,!1,!1),String),r=function(t,e){return!p.contains(n,e)}),p.pick(t,r,e)}),p.defaults=D(p.allKeys,!0),p.create=function(t,e){var n=y(t);return e&&p.extendOwn(n,e),n},p.clone=function(t){return p.isObject(t)?p.isArray(t)?t.slice():p.extend({},t):t},p.tap=function(t,e){return e(t),t},p.isMatch=function(t,e){var n=p.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),a=0;a<r;a++){var o=n[a];if(e[o]!==i[o]||!(o in i))return!1}return!0},N=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&M(t,e,n,r)},M=function(t,e,n,r){t instanceof p&&(t=t._wrapped),e instanceof p&&(e=e._wrapped);var i=d.call(t);if(i!==d.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return f.valueOf.call(t)===f.valueOf.call(e)}var a="[object Array]"===i;if(!a){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,s=e.constructor;if(o!==s&&!(p.isFunction(o)&&o instanceof o&&p.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),a){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],n,r))return!1}else{var l,c=p.keys(t);if(u=c.length,p.keys(e).length!==u)return!1;for(;u--;)if(l=c[u],!k(e,l)||!N(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0},p.isEqual=function(t,e){return N(t,e)},p.isEmpty=function(t){return null==t||(A(t)&&(p.isArray(t)||p.isString(t)||p.isArguments(t))?0===t.length:0===p.keys(t).length)},p.isElement=function(t){return!(!t||1!==t.nodeType)},p.isArray=n||function(t){return"[object Array]"===d.call(t)},p.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){p["is"+e]=function(t){return d.call(t)==="[object "+e+"]"}}),p.isArguments(arguments)||(p.isArguments=function(t){return k(t,"callee")});var B=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(p.isFunction=function(t){return"function"==typeof t||!1}),p.isFinite=function(t){return!p.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},p.isNaN=function(t){return p.isNumber(t)&&isNaN(t)},p.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)},p.isNull=function(t){return null===t},p.isUndefined=function(t){return void 0===t},p.has=function(t,e){if(!p.isArray(e))return k(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!a.call(t,i))return!1;t=t[i]}return!!n},p.noConflict=function(){return t._=e,this},p.identity=function(t){return t},p.constant=function(t){return function(){return t}},p.noop=function(){},p.property=function(e){return p.isArray(e)?function(t){return b(t,e)}:_(e)},p.propertyOf=function(e){return null==e?function(){}:function(t){return p.isArray(t)?b(e,t):e[t]}},p.matcher=p.matches=function(e){return e=p.extendOwn({},e),function(t){return p.isMatch(t,e)}},p.times=function(t,e,n){var r=Array(Math.max(0,t));e=m(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},p.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},p.now=Date.now||function(){return(new Date).getTime()};var W={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=p.invert(W),U=function(e){var n=function(t){return e[t]},t="(?:"+p.keys(e).join("|")+")",r=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}};p.escape=U(W),p.unescape=U(H),p.result=function(t,e,n){p.isArray(e)||(e=[e]);var r=e.length;if(!r)return p.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var a=null==t?void 0:t[e[i]];void 0===a&&(a=n,i=r),t=p.isFunction(a)?a.call(t):a}return t};var $=0;p.uniqueId=function(t){var e=++$+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,q=function(t){return"\\"+V[t]};p.template=function(a,t,e){!t&&e&&(t=e),t=p.defaults({},t,p.templateSettings);var n,r=RegExp([(t.escape||R).source,(t.interpolate||R).source,(t.evaluate||R).source].join("|")+"|$","g"),o=0,s="__p+='";a.replace(r,function(t,e,n,r,i){return s+=a.slice(o,i).replace(Q,q),o=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return n.call(this,t,p)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},p.chain=function(t){var e=p(t);return e._chain=!0,e};var K=function(t,e){return t._chain?p(e).chain():e};p.mixin=function(n){return p.each(p.functions(n),function(t){var e=p[t]=n[t];p.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),K(this,e.apply(p,t))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=r[e];p.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],K(this,t)}}),p.each(["concat","join","slice"],function(t){var e=r[t];p.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}(),function(i){i.fn.fitText=function(t,e){var n=t||1,r=i.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},e);return this.each(function(){var t=i(this),e=function(){t.css("font-size",Math.max(Math.min(t.width()/(10*n),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};e(),i(window).on("resize.fittext orientationchange.fittext",e)})}}(jQuery),function(l,c){var n="nimbleLazyLoad",r={load_all_images_on_first_scroll:!1,excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},i="smartload-skip";function e(t,e){this.element=t,this.options=l.extend({},r,e),_utils_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+i):this.options.excludeImg=["."+i],this._defaults=r,this._name=n,this.init()}e.prototype.init=function(){var e=this,n=l("[data-sek-src]:not("+this.options.excludeImg.join()+"), [data-sek-iframe-src]",this.element);this.increment=1,this.timer=0,n.addClass(i).bind("sek_load_img",{},function(){e._load_img(this)}).bind("sek_load_iframe",{},function(){e._load_iframe(this)}),l(c).scroll(function(t){e._better_scroll_event_handler(n,t)}),l(c).resize(_utils_.debounce(function(t){e._maybe_trigger_load(n,t)},100)),this._maybe_trigger_load(n)},e.prototype._better_scroll_event_handler=function(t,e){var n=this;this.doingAnimation||(this.doingAnimation=!0,c.requestAnimationFrame(function(){n._maybe_trigger_load(t,e),n.doingAnimation=!1}))},e.prototype._maybe_trigger_load=function(t,n){var r=this;t.filter(function(t,e){return r._is_visible(e,n)}).map(function(t,e){"IFRAME"===l(e).prop("tagName")?l(e).trigger("sek_load_iframe"):l(e).trigger("sek_load_img")})},e.prototype._is_visible=function(t,e){var r=function(t){if(0<t.length&&t.is(":visible"))return t;var e=t.prev();if(0<e.length&&e.is(":visible"))return e;if(0<e.length&&!e.is(":visible"))return r(e);var n=t.parent();return 0<n.length?r(n):null},n=r(l(t));if(!n||n.length<1)return!1;var i=l(c).scrollTop(),a=i+l(c).height(),o=n.offset().top,s=o+n.height(),u=this.options.threshold;return!(!e||"scroll"!=e.type||!this.options.load_all_images_on_first_scroll)||i-u<=s&&o<=a+u},e.prototype._load_img=function(t){var e=l(t),n=e.attr("data-sek-src"),r=e.attr("data-sek-srcset"),i=e.attr("data-sek-sizes"),a=l("<img />",{src:n});e.addClass("lazy-loading"),e.unbind("sek_load_img"),a.load(function(){e.removeAttr(["data-sek-src","data-sek-srcset","data-sek-sizes"].join(" ")),e.data("sek-lazy-bg")?e.css("backgroundImage","url("+n+")"):(e.attr("src",n),r&&e.attr("srcset",r),i&&e.attr("sizes",i)),e.hasClass("sek-lazy-loaded")||e.addClass("sek-lazy-loaded"),e.trigger("smartload"),e.data("sek-lazy-loaded",!0)}),a[0].complete&&a.load(),e.removeClass("lazy-loading")},e.prototype._load_iframe=function(t){var e=l(t);e.unbind("sek_load_iframe"),e.attr("src",function(){var t=l(this).attr("data-sek-iframe-src");return l(this).removeAttr("data-sek-iframe-src"),e.data("sek-lazy-loaded",!0),e.trigger("smartload"),e.hasClass("sek-lazy-loaded")||e.addClass("sek-lazy-loaded"),t})},l.fn[n]=function(t){return this.each(function(){l.data(this,"plugin_"+n)||l.data(this,"plugin_"+n,new e(this,t))})}}(jQuery,window),function(n,s){var r="parallaxBg",i={parallaxForce:40,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function e(t,e){this.element=n(t),this.options=n.extend({},i,e,this.parseElementDataOptions()),this._defaults=i,this._name=r,this.init()}e.prototype.parseElementDataOptions=function(){return this.element.data()},e.prototype.init=function(){var e=this;this.$_window=n(s),this.doingAnimation=!1,this.isVisible=!1,this.isBefore=!1,this.isAfter=!0,("number"!=typeof e.options.parallaxForce||e.options.parallaxForce<0)&&(sekFrontLocalized.isDevMode&&console.log("parallaxBg => the provided parallaxForce is invalid => "+e.options.parallaxForce),e.options.parallaxForce=this._defaults.parallaxForce),100<e.options.parallaxForce&&(e.options.parallaxForce=100),this.$_window.scroll(function(t){e.maybeParallaxMe(t)}),this.$_window.resize(_utils_.debounce(function(t){e.maybeParallaxMe(t)},100)),this.checkIfIsVisibleAndCacheProperties(),this.setTopPositionAndBackgroundSize()},e.prototype.setTopPositionAndBackgroundSize=function(){if(_utils_.isFunction(s.matchMedia)&&matchMedia(this.options.matchMedia).matches)this.element.css({"background-position-y":"","background-attachment":""});else{var t=this.element,e=(t.outerHeight(),this.$_window.height()),n=t.offset().top,r=this.$_window.scrollTop(),i=100;this.isVisible?i=(n-r)/e:this.isBefore?i=1:this.isAfter&&(i=-1);var a=0<this.options.parallaxForce?e*(100-this.options.parallaxForce)/100:e,o=Math.round(i*a);this.element.css({"background-position-y":["calc(50% ",0<o?"+ ":"- ",Math.abs(o)+"px)"].join("")})}},e.prototype.checkIfIsVisibleAndCacheProperties=function(t){var e=this.element;if(!e.is(":visible"))return!1;var n=this.$_window.scrollTop(),r=n+this.$_window.height(),i=e.offset().top,a=i+e.outerHeight();return this.isVisible=n<=a&&i<=r,this.isBefore=r<i,this.isAfter=a<n,this.isVisible},e.prototype.maybeParallaxMe=function(t){var e=this;this.checkIfIsVisibleAndCacheProperties()&&(this.doingAnimation||(this.doingAnimation=!0,s.requestAnimationFrame(function(){e.setTopPositionAndBackgroundSize(),e.doingAnimation=!1})))},n.fn[r]=function(t){return this.each(function(){n.data(this,"plugin_"+r)||n.data(this,"plugin_"+r,new e(this,t))})}}(jQuery,window),jQuery(function(t){t('[data-sek-module-type="czr_image_module"]').each(function(){if($linkCandidate=t(this).find(".sek-link-to-img-lightbox"),!($linkCandidate.length<1||"string"!=typeof $linkCandidate[0].protocol||-1!==$linkCandidate[0].protocol.indexOf("javascript"))&&"function"==typeof t.fn.magnificPopup)try{$linkCandidate.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!0,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0},zoom:{enabled:!0,duration:300}})}catch(t){"function"==typeof window.console.log&&console.log(t)}})}),jQuery(function(t){t(".sektion-wrapper").each(function(){try{t(this).nimbleLazyLoad()}catch(t){"function"==typeof window.console.log&&console.log(t)}})}),jQuery(function(e){e('[data-sek-bg-parallax="true"]').each(function(){e(this).parallaxBg({parallaxForce:e(this).data("sek-parallax-force")})});var n=function(){e(this).parallaxBg({parallaxForce:e(this).data("sek-parallax-force")}),setTimeout(function(){e("body").trigger("resize")},500)};e("body").on("sek-level-refreshed sek-section-added",function(t){"true"===e(this).data("sek-bg-parallax")?n.call(this):e(this).find('[data-sek-bg-parallax="true"]').each(function(){n.call(this)})})}),jQuery(function(a){var o=function(t){var e=document.createElement("a");e.href=t,e.href=e.href;for(var n=["host","hostname","hash","href","port","protocol","search"],r=0,i=n.length;r<i;r++)this[n[r]]=e[n[r]];this.pathname=("/"!==e.pathname.charAt(0)?"/":"")+e.pathname},s=a("html, body"),t=function(t){var e=a(this).attr("href");if(""!==e&&null!==e&&"string"==typeof e&&-1!==e.indexOf("#")){var n=new o(e),r=new o(window.document.location.href);if(n.pathname===r.pathname&&"string"==typeof n.hash&&""!==n.hash){var i=a('[data-sek-level="location"]').find('[id="'+n.hash.replace("#","")+'"]');1===i.length&&(t.preventDefault(),s.animate({scrollTop:i.offset().top-150},400))}}};a("body").find(".menu-item").on("click","a",t),a('[data-sek-level="location"]').on("click","a",t)}),jQuery(function(p){var t,a,o,s,u,l;!function(){var l="sek.sekDropdown",t="."+l,n={PLACE_ME:"placeme"+t,PLACE_ALL:"placeall"+t,SHOWN:"shown"+t,SHOW:"show"+t,HIDDEN:"hidden"+t,HIDE:"hide"+t,CLICK:"click"+t,TAP:"tap"+t},c="sek-dropdown-menu",e="sek-dropdown-submenu",r="show",i="menu-item-has-children",a='[data-toggle="sek-dropdown"]',o=".sek-nav-wrap .menu-item-has-children",s=".sek-nav-wrap .menu-item-has-children";p(".sek-nav .children, .sek-nav .sub-menu").addClass(c),p(".sek-nav-wrap .page_item_has_children").addClass(i),p(".sek-nav ."+c+" ."+i).addClass(e);var u,f,d;u=o,p(document).on("mouseenter",u,function(){var e=p(this);_utils_.debounce(function(){if("static"==e.find("."+c).css("position"))return!1;if(!e.hasClass(r)){e.trigger(n.SHOW).addClass(r).trigger(n.SHOWN);var t=e.children(a);t.length&&t[0].setAttribute("aria-expanded","true")}},30)()}).on("mouseleave",u,function(){var e=p(this);_utils_.debounce(function(){if(e.find("ul li:hover").length<1&&!e.closest("ul").find("li:hover").is(e)){e.trigger(n.HIDE).removeClass(r).trigger(n.HIDDEN);var t=e.children(a);t.length&&t[0].setAttribute("aria-expanded","false")}},30)()}),f="rtl"===p("html").attr("dir"),d=!1,p(window).on("resize",function(){d||(d=!0,window.requestAnimationFrame(function(){p(s+"."+r).trigger(n.PLACE_ME),d=!1}))}),p(document).on(n.PLACE_ALL,function(){p(s).trigger(n.PLACE_ME)}).on(n.SHOWN+" "+n.PLACE_ME,s,function(t){t.stopPropagation(),function(t,e){if(e&&e.namespace&&l===e.namespace){var n,r,i,a,o,s,u=t.children("."+c);u.length&&(t.css("overflow","hidden"),u.css({zIndex:"-100",display:"block"}),r=t,i=f?{_DEFAULT:"left",_OPPOSITE:"right"}:{_DEFAULT:"right",_OPPOSITE:"left"},a={OPEN_PREFIX:"open-",DD_SUBMENU:"sek-dropdown-submenu",CARET_TITLE_FLIP:"sek-menu-link__row-reverse",DROPDOWN:"sek-dropdown-menu"},o=function(t,n,e){p.each(t,function(){var t=p(this),e=t.find("a").first();1==e.length&&e.toggleClass(a.CARET_TITLE_FLIP,n==i._OPPOSITE)})},s=function(t){var e=t==i._OPPOSITE?i._DEFAULT:i._OPPOSITE;n.removeClass(a.OPEN_PREFIX+e).addClass(a.OPEN_PREFIX+t),r.hasClass(a.DD_SUBMENU)&&(o(r,t,e),o(n.children("."+a.DD_SUBMENU),t,e))},(n=u).parent().closest("."+a.DROPDOWN).hasClass(a.OPEN_PREFIX+i._OPPOSITE)?s(i._OPPOSITE):s(i._DEFAULT),n.offset().left+n.width()>p(window).width()?s("left"):n.offset().left<0&&s("right"),u.css({zIndex:"",display:""}),t.css("overflow",""))}}(p(this),t)})}(),a={SHOW:"show"+(t=".sek.sekCollapse"),SHOWN:"shown"+t,HIDE:"hide"+t,HIDDEN:"hidden"+t,CLICK_DATA_API:"click"+t+".data-api"},o="show",s="sek-collapse",u="sek-collapsing",l="sek-collapsed",p(document).on(a.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=p(this),n=e.data("target");p(n).each(function(){var r=p(this),i=r.hasClass(o);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(u).trigger(i?a.HIDE:a.SHOW),i?e.addClass(l).attr("aria-expanded","false"):e.removeClass(l).attr("aria-expanded","true")},complete:function(){var t,e,n;i?(t=o,e=s,n=a.HIDDEN):(t=s,e=o,n=a.SHOWN),r.removeClass(u+" "+t).addClass(e).trigger(n),function(t){(t=t||p(this)).css({display:"",paddingTop:"",marginTop:"",paddingBottom:"",marginBottom:"",height:""})}(r)}})})}),p(document).on("mouseenter",".sek-nav-toggler",function(){p(this).addClass("hovering")}).on("mouseleave",".sek-nav-toggler",function(){p(this).removeClass("hovering")}).on("show.sek.sekCollapse hide.sek.sekCollapse",".sek-nav-collapse",function(){p("[data-target=#"+p(this).attr("id")+"]").removeClass("hovering"),p(window).trigger("scroll")}),p(document).on("ready",function(){var e=function(){p('[data-sek-module-type="czr_menu_module"]').find('[data-sek-expand-below="yes"]').each(function(){if(!0!==p(this).data("sek-setup-menu-mobile-expanded-below-done")){var t=p(this).closest('[data-sek-module-type="czr_menu_module"]').clone(!0),e=p(".sek-nav-collapse",this).attr("id")+"-mobile";t.appendTo(p(this).closest(".sek-sektion-inner")).wrap('<div class="sek-col-base sek-mobile-menu-expanded-below" id="'+e+'-wrapper"></div>'),p(".sek-nav-collapse","#"+e+"-wrapper").attr("id",e),p(".sek-nav-toggler","#"+e+"-wrapper").detach(),p(".sek-nav-toggler",this).data("target","#"+e).attr("aria-controls",e),p(this).data("sek-setup-menu-mobile-expanded-below-done",!0)}})};e(),p("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",function(t){p(".sek-mobile-menu-expanded-below").remove(),e()})})}),jQuery(function(r){r("body").on("click sek-expand-accord-item",".sek-accord-item > .sek-accord-title",function(t){var e=r(this).closest(".sek-accord-item"),n=r(this).closest(".sek-accord-wrapper");"true"==n.data("sek-one-expanded")+""&&n.find(".sek-accord-item").not(e).each(function(){var t=r(this);t.find(".sek-accord-content").stop(!0,!0).slideUp({duration:200,start:function(){"true"==t.attr("data-sek-expanded")+""&&t.find(".sek-accord-content").css("display","block"),t.attr("data-sek-expanded","false")}})}),"sek-expand-accord-item"===t.type&&"true"==e.attr("data-sek-expanded")+""||e.find(".sek-accord-content").stop(!0,!0).slideToggle({duration:200,start:function(){"true"==e.attr("data-sek-expanded")+""&&e.find(".sek-accord-content").css("display","block"),e.attr("data-sek-expanded","false"==e.attr("data-sek-expanded")+""?"true":"false"),e.trigger("true"==e.attr("data-sek-expanded")?"sek-accordion-expanded":"sek-accordion-collapsed")}})}),_utils_.isUndefined(wp.customize)||wp.customize.preview.bind("sek-item-focus",function(t){var e=r('[data-sek-item-id="'+t.item_id+'"]',".sek-accord-wrapper").first();e.length<1||e.find(".sek-accord-title").trigger("sek-expand-accord-item")})}),jQuery(function(a){var r=[],t=function(){var t=a(this),e="sek-swiper"+t.data("sek-swiper-id"),n={loop:!0===t.data("sek-loop")&&!0===t.data("sek-is-multislide"),grabCursor:!0===t.data("sek-is-multislide"),on:{init:function(){"nimble-wizard"===t.data("sek-image-layout")&&t.find(".sek-carousel-img").each(function(){var e=a(this).nimbleCenterImages({enableCentering:1,zeroTopAdjust:0,setOpacityWhenCentered:!1,oncustom:["simple_load","smartload","sek-nimble-refreshed"]}).find('img:not([src^="data"])');_utils_.delay(function(){var t;0!==(t=e).length&&t.map(function(t,e){a(e).load(function(){a(e).trigger("simple_load")}),a(e)[0]&&a(e)[0].complete&&a(e).load()})},10)})}}};!0===t.data("sek-autoplay")?a.extend(n,{autoplay:{delay:t.data("sek-autoplay-delay"),disableOnInteraction:t.data("sek-pause-on-hover")}}):a.extend(n,{autoplay:{delay:999999999}}),!0===t.data("sek-is-multislide")&&(_utils_.contains(["arrows_dots","arrows"],t.data("sek-navtype"))&&a.extend(n,{navigation:{nextEl:".sek-swiper-next"+t.data("sek-swiper-id"),prevEl:".sek-swiper-prev"+t.data("sek-swiper-id")}}),_utils_.contains(["arrows_dots","dots"],t.data("sek-navtype"))&&a.extend(n,{pagination:{el:".swiper-pagination"+t.data("sek-swiper-id"),clickable:!0}})),r.push(new Swiper("."+e,n))},e=function(){a(".sektion-wrapper").find("[data-sek-swiper-id]").each(function(){t.call(a(this))})};a("body").on("sek-columns-refreshed sek-modules-refreshed sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(){_utils_.isEmpty(r)||_utils_.each(r,function(t){t.destroy()}),r=[],e(),a(this).find(".swiper-container img").each(function(){a(this).trigger("sek-nimble-refreshed")})}),a("body").on("sek-stylesheet-refreshed",'[data-sek-module-type="czr_img_slider_module"]',function(){a(this).find(".swiper-container img").each(function(){a(this).trigger("sek-nimble-refreshed")})}),a(".sektion-wrapper").find(".swiper-container").each(function(){e()}),a(".swiper-slide").on("mouseover mouseout",function(t){var e=a(this).closest(".swiper-container")[0].swiper;if(!_utils_.isUndefined(e)&&!0===e.params.autoplay.disableOnInteraction)switch(t.type){case"mouseover":e.autoplay.stop();break;case"mouseout":e.autoplay.start()}}),_utils_.isUndefined(wp.customize)||wp.customize.preview.bind("sek-item-focus",function(t){var e=a('[data-sek-item-id="'+t.item_id+'"]',".swiper-container").first();if(!(e.length<1)){var n=e.closest(".swiper-container");if(!(n.length<1)){var r=e.closest(".swiper-container")[0].swiper;if(!_utils_.isUndefined(r)){var i=a(".swiper-slide",n).index(e);r.slideTo(i,100)}}}})}),function(u,a){var n="nimbleCenterImages",r={enableCentering:!0,onresize:!0,onInit:!0,oncustom:[],$containerToListen:null,imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,useImgAttr:!1,setOpacityWhenCentered:!1,addCenteredClassWithDelay:0,opacity:1};function e(t,e){this.container=t,this.options=u.extend({},r,e),this._defaults=r,this._name=n,this._customEvt=u.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" "),this.init()}e.prototype.init=function(){var n=this,e=function(t){t=t||"init";var e=u(n.options.imgSel,n.container);1<=e.length&&n.options.enableCentering&&n._parse_imgs(e,t)};n.options.onInit&&e(),u.isArray(n._customEvt)&&n._customEvt.map(function(t){(n.options.$containerToListen instanceof u&&1<n.options.$containerToListen.length?n.options.$containerToListen:u(n.container)).bind(t,{},function(){e(t)})})},e.prototype._parse_imgs=function(t,r){var i=this;if(t.each(function(t,e){var n=u(e);i._pre_img_cent(n,r),i.options.onresize&&!n.data("resize-react-bound")&&(n.data("resize-react-bound",!0),u(a).resize(_utils_.debounce(function(){i._pre_img_cent(n,"resize")},100)))}),u(i.container).attr("data-img-centered-in-container")){var e=parseInt(u(i.container).attr("data-img-centered-in-container"),10)+1;u(i.container).attr("data-img-centered-in-container",e)}else u(i.container).attr("data-img-centered-in-container",1)},e.prototype._pre_img_cent=function(t){var e=this._get_current_state(t),n=this,r=e.current,i=e.prop[r],a=e.prop["h"==r?"v":"h"],o="h"==r?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,s=function(t){if(t.css(i.dim.name,i.dim.val).css(a.dim.name,n.options.defaultCSSVal[a.dim.name]||"auto").css(i.dir.name,i.dir.val).css(a.dir.name,o),0!==n.options.addCenteredClassWithDelay&&_utils_.isNumber(n.options.addCenteredClassWithDelay)?_utils_.delay(function(){t.addClass(i._class).removeClass(a._class)},n.options.addCenteredClassWithDelay):t.addClass(i._class).removeClass(a._class),t.attr("data-img-centered")){var e=parseInt(t.attr("data-img-centered"),10)+1;t.attr("data-img-centered",e)}else t.attr("data-img-centered",1);return t};this.options.setOpacityWhenCentered?u.when(s(t)).done(function(t){t.css("opacity",n.options.opacity)}):_utils_.delay(function(){s(t)},0)},e.prototype._get_current_state=function(t){var e=t.closest(this.container).outerWidth(),n=u(this.container).outerHeight(),r=this._get_img_dim(t,"x"),i=this._get_img_dim(t,"y"),a=i*n!=0?Math.round(r/i*n):e,o=r*e!=0?Math.round(i/r*e):n,s="h";return 0!=e*r&&(s=i/r<=n/e?"h":"v"),{current:s,prop:{h:{dim:{name:"height",val:n},dir:{name:"left",val:(e-a)/2+(this.options.leftAdjust||0)},_class:"sek-h-centrd"},v:{dim:{name:"width",val:e},dir:{name:"top",val:(n-o)/2+(this.options.topAdjust||0)},_class:"sek-v-centrd"}}}},e.prototype._get_img_dim=function(t,e){if(!this.options.useImgAttr)return"x"==e?t.outerWidth():t.outerHeight();if(t.is(":visible"))return"x"==e?t.outerWidth():t.outerHeight();if("x"==e){var n=t.originalWidth();return void 0===typeof n?0:n}if("y"==e){var r=t.originalHeight();return void 0===typeof r?0:r}},e.prototype._is_selector_allowed=function(){if(!u(this.container).attr("class"))return!0;var t=u(this.container).attr("class").split(" "),e=[];return 0===t.filter(function(t){return-1!=u.inArray(t,e)}).length},u.fn[n]=function(t){return this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new e(this,t))})}}(jQuery,window);
|
1 |
+
!function(){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},e=t._,r=Array.prototype,o=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,u=r.slice,d=o.toString,a=o.hasOwnProperty,n=Array.isArray,s=Object.keys,l=Object.create,c=function(){},p=function(t){return t instanceof p?t:this instanceof p?void(this._wrapped=t):new p(t)};"undefined"==typeof exports||exports.nodeType?t._utils_=p:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=p),exports._utils_=p),p.VERSION="1.9.1";var h,m=function(i,a,t){if(void 0===a)return i;switch(null==t?3:t){case 1:return function(t){return i.call(a,t)};case 3:return function(t,e,n){return i.call(a,t,e,n)};case 4:return function(t,e,n,r){return i.call(a,t,e,n,r)}}return function(){return i.apply(a,arguments)}},g=function(t,e,n){return p.iteratee!==h?p.iteratee(t,e):null==t?p.identity:p.isFunction(t)?m(t,e,n):p.isObject(t)&&!p.isArray(t)?p.matcher(t):p.property(t)};p.iteratee=h=function(t,e){return g(t,e,1/0)};var v=function(i,a){return a=null==a?i.length-1:+a,function(){for(var t=Math.max(arguments.length-a,0),e=Array(t),n=0;n<t;n++)e[n]=arguments[n+a];switch(a){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e);case 2:return i.call(this,arguments[0],arguments[1],e)}var r=Array(a+1);for(n=0;n<a;n++)r[n]=arguments[n];return r[a]=e,i.apply(this,r)}},y=function(t){if(!p.isObject(t))return{};if(l)return l(t);c.prototype=t;var e=new c;return c.prototype=null,e},_=function(e){return function(t){return null==t?void 0:t[e]}},k=function(t,e){return null!=t&&a.call(t,e)},b=function(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0},w=Math.pow(2,53)-1,x=_("length"),A=function(t){var e=x(t);return"number"==typeof e&&0<=e&&e<=w};p.each=p.forEach=function(t,e,n){var r,i;if(e=m(e,n),A(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var a=p.keys(t);for(r=0,i=a.length;r<i;r++)e(t[a[r]],a[r],t)}return t},p.map=p.collect=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=e(t[s],s,t)}return a};var C=function(u){return function(t,e,n,r){var i=3<=arguments.length;return function(t,e,n,r){var i=!A(t)&&p.keys(t),a=(i||t).length,o=0<u?0:a-1;for(r||(n=t[i?i[o]:o],o+=u);0<=o&&o<a;o+=u){var s=i?i[o]:o;n=e(n,t[s],s,t)}return n}(t,m(e,r,4),n,i)}};p.reduce=p.foldl=p.inject=C(1),p.reduceRight=p.foldr=C(-1),p.find=p.detect=function(t,e,n){var r=(A(t)?p.findIndex:p.findKey)(t,e,n);if(void 0!==r&&-1!==r)return t[r]},p.filter=p.select=function(t,r,e){var i=[];return r=g(r,e),p.each(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i},p.reject=function(t,e,n){return p.filter(t,p.negate(g(e)),n)},p.every=p.all=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=0;a<i;a++){var o=r?r[a]:a;if(!e(t[o],o,t))return!1}return!0},p.some=p.any=function(t,e,n){e=g(e,n);for(var r=!A(t)&&p.keys(t),i=(r||t).length,a=0;a<i;a++){var o=r?r[a]:a;if(e(t[o],o,t))return!0}return!1},p.contains=p.includes=p.include=function(t,e,n,r){return A(t)||(t=p.values(t)),("number"!=typeof n||r)&&(n=0),0<=p.indexOf(t,e,n)},p.invoke=v(function(t,n,r){var i,a;return p.isFunction(n)?a=n:p.isArray(n)&&(i=n.slice(0,-1),n=n[n.length-1]),p.map(t,function(t){var e=a;if(!e){if(i&&i.length&&(t=b(t,i)),null==t)return;e=t[n]}return null==e?e:e.apply(t,r)})}),p.pluck=function(t,e){return p.map(t,p.property(e))},p.where=function(t,e){return p.filter(t,p.matcher(e))},p.findWhere=function(t,e){return p.find(t,p.matcher(e))},p.max=function(t,r,e){var n,i,a=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=A(t)?t:p.values(t)).length;s<u;s++)null!=(n=t[s])&&a<n&&(a=n);else r=g(r,e),p.each(t,function(t,e,n){i=r(t,e,n),(o<i||i===-1/0&&a===-1/0)&&(a=t,o=i)});return a},p.min=function(t,r,e){var n,i,a=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=A(t)?t:p.values(t)).length;s<u;s++)null!=(n=t[s])&&n<a&&(a=n);else r=g(r,e),p.each(t,function(t,e,n){((i=r(t,e,n))<o||i===1/0&&a===1/0)&&(a=t,o=i)});return a},p.shuffle=function(t){return p.sample(t,1/0)},p.sample=function(t,e,n){if(null==e||n)return A(t)||(t=p.values(t)),t[p.random(t.length-1)];var r=A(t)?p.clone(t):p.values(t),i=x(r);e=Math.max(Math.min(e,i),0);for(var a=i-1,o=0;o<e;o++){var s=p.random(o,a),u=r[o];r[o]=r[s],r[s]=u}return r.slice(0,e)},p.sortBy=function(t,r,e){var i=0;return r=g(r,e),p.pluck(p.map(t,function(t,e,n){return{value:t,index:i++,criteria:r(t,e,n)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var I=function(o,e){return function(r,i,t){var a=e?[[],[]]:{};return i=g(i,t),p.each(r,function(t,e){var n=i(t,e,r);o(a,t,n)}),a}};p.groupBy=I(function(t,e,n){k(t,n)?t[n].push(e):t[n]=[e]}),p.indexBy=I(function(t,e,n){t[n]=e}),p.countBy=I(function(t,e,n){k(t,n)?t[n]++:t[n]=1});var E=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(t){return t?p.isArray(t)?u.call(t):p.isString(t)?t.match(E):A(t)?p.map(t,p.identity):p.values(t):[]},p.size=function(t){return null==t?0:A(t)?t.length:p.keys(t).length},p.partition=I(function(t,e,n){t[n?0:1].push(e)},!0),p.first=p.head=p.take=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[0]:p.initial(t,t.length-e)},p.initial=function(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},p.last=function(t,e,n){return null==t||t.length<1?null==e?void 0:[]:null==e||n?t[t.length-1]:p.rest(t,Math.max(0,t.length-e))},p.rest=p.tail=p.drop=function(t,e,n){return u.call(t,null==e||n?1:e)},p.compact=function(t){return p.filter(t,Boolean)};var O=function(t,e,n,r){for(var i=(r=r||[]).length,a=0,o=x(t);a<o;a++){var s=t[a];if(A(s)&&(p.isArray(s)||p.isArguments(s)))if(e)for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else O(s,e,n,r),i=r.length;else n||(r[i++]=s)}return r};p.flatten=function(t,e){return O(t,e,!1)},p.without=v(function(t,e){return p.difference(t,e)}),p.uniq=p.unique=function(t,e,n,r){p.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=g(n,r));for(var i=[],a=[],o=0,s=x(t);o<s;o++){var u=t[o],l=n?n(u,o,t):u;e&&!n?(o&&a===l||i.push(u),a=l):n?p.contains(a,l)||(a.push(l),i.push(u)):p.contains(i,u)||i.push(u)}return i},p.union=v(function(t){return p.uniq(O(t,!0,!0))}),p.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=x(t);r<i;r++){var a=t[r];if(!p.contains(e,a)){var o;for(o=1;o<n&&p.contains(arguments[o],a);o++);o===n&&e.push(a)}}return e},p.difference=v(function(t,e){return e=O(e,!0,!0),p.filter(t,function(t){return!p.contains(e,t)})}),p.unzip=function(t){for(var e=t&&p.max(t,x).length||0,n=Array(e),r=0;r<e;r++)n[r]=p.pluck(t,r);return n},p.zip=v(p.unzip),p.object=function(t,e){for(var n={},r=0,i=x(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n};var j=function(a){return function(t,e,n){e=g(e,n);for(var r=x(t),i=0<a?0:r-1;0<=i&&i<r;i+=a)if(e(t[i],i,t))return i;return-1}};p.findIndex=j(1),p.findLastIndex=j(-1),p.sortedIndex=function(t,e,n,r){for(var i=(n=g(n,r,1))(e),a=0,o=x(t);a<o;){var s=Math.floor((a+o)/2);n(t[s])<i?a=s+1:o=s}return a};var S=function(a,o,s){return function(t,e,n){var r=0,i=x(t);if("number"==typeof n)0<a?r=0<=n?n:Math.max(n+i,r):i=0<=n?Math.min(n+1,i):n+i+1;else if(s&&n&&i)return t[n=s(t,e)]===e?n:-1;if(e!=e)return 0<=(n=o(u.call(t,r,i),p.isNaN))?n+r:-1;for(n=0<a?r:i-1;0<=n&&n<i;n+=a)if(t[n]===e)return n;return-1}};p.indexOf=S(1,p.findIndex,p.sortedIndex),p.lastIndexOf=S(-1,p.findLastIndex),p.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),a=0;a<r;a++,t+=n)i[a]=t;return i},p.chunk=function(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(u.call(t,r,r+=e));return n};var T=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var a=y(t.prototype),o=t.apply(a,i);return p.isObject(o)?o:a};p.bind=v(function(e,n,r){if(!p.isFunction(e))throw new TypeError("Bind must be called on a function");var i=v(function(t){return T(e,i,n,this,r.concat(t))});return i}),p.partial=v(function(i,a){var o=p.partial.placeholder,s=function(){for(var t=0,e=a.length,n=Array(e),r=0;r<e;r++)n[r]=a[r]===o?arguments[t++]:a[r];for(;t<arguments.length;)n.push(arguments[t++]);return T(i,s,this,this,n)};return s}),(p.partial.placeholder=p).bindAll=v(function(t,e){var n=(e=O(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=p.bind(t[r],t)}}),p.memoize=function(r,i){var a=function(t){var e=a.cache,n=""+(i?i.apply(this,arguments):t);return k(e,n)||(e[n]=r.apply(this,arguments)),e[n]};return a.cache={},a},p.delay=v(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(n,r,i){var a,o,s,u,l=0;i||(i={});var c=function(){l=!1===i.leading?0:p.now(),a=null,u=n.apply(o,s),a||(o=s=null)},t=function(){var t=p.now();l||!1!==i.leading||(l=t);var e=r-(t-l);return o=this,s=arguments,e<=0||r<e?(a&&(clearTimeout(a),a=null),l=t,u=n.apply(o,s),a||(o=s=null)):a||!1===i.trailing||(a=setTimeout(c,e)),u};return t.cancel=function(){clearTimeout(a),l=0,a=o=s=null},t},p.debounce=function(n,r,i){var a,o,s=function(t,e){a=null,e&&(o=n.apply(t,e))},t=v(function(t){if(a&&clearTimeout(a),i){var e=!a;a=setTimeout(s,r),e&&(o=n.apply(this,t))}else a=p.delay(s,r,this,t);return o});return t.cancel=function(){clearTimeout(a),a=null},t},p.wrap=function(t,e){return p.partial(e,t)},p.negate=function(t){return function(){return!t.apply(this,arguments)}},p.compose=function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},p.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},p.before=function(t,e){var n;return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},p.once=p.partial(p.before,2),p.restArguments=v;var z=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],P=function(t,e){var n=F.length,r=t.constructor,i=p.isFunction(r)&&r.prototype||o,a="constructor";for(k(t,a)&&!p.contains(e,a)&&e.push(a);n--;)(a=F[n])in t&&t[a]!==i[a]&&!p.contains(e,a)&&e.push(a)};p.keys=function(t){if(!p.isObject(t))return[];if(s)return s(t);var e=[];for(var n in t)k(t,n)&&e.push(n);return z&&P(t,e),e},p.allKeys=function(t){if(!p.isObject(t))return[];var e=[];for(var n in t)e.push(n);return z&&P(t,e),e},p.values=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},p.mapObject=function(t,e,n){e=g(e,n);for(var r=p.keys(t),i=r.length,a={},o=0;o<i;o++){var s=r[o];a[s]=e(t[s],s,t)}return a},p.pairs=function(t){for(var e=p.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},p.invert=function(t){for(var e={},n=p.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},p.functions=p.methods=function(t){var e=[];for(var n in t)p.isFunction(t[n])&&e.push(n);return e.sort()};var D=function(u,l){return function(t){var e=arguments.length;if(l&&(t=Object(t)),e<2||null==t)return t;for(var n=1;n<e;n++)for(var r=arguments[n],i=u(r),a=i.length,o=0;o<a;o++){var s=i[o];l&&void 0!==t[s]||(t[s]=r[s])}return t}};p.extend=D(p.allKeys),p.extendOwn=p.assign=D(p.keys),p.findKey=function(t,e,n){e=g(e,n);for(var r,i=p.keys(t),a=0,o=i.length;a<o;a++)if(e(t[r=i[a]],r,t))return r};var N,M,L=function(t,e,n){return e in n};p.pick=v(function(t,e){var n={},r=e[0];if(null==t)return n;p.isFunction(r)?(1<e.length&&(r=m(r,e[1])),e=p.allKeys(t)):(r=L,e=O(e,!1,!1),t=Object(t));for(var i=0,a=e.length;i<a;i++){var o=e[i],s=t[o];r(s,o,t)&&(n[o]=s)}return n}),p.omit=v(function(t,n){var e,r=n[0];return p.isFunction(r)?(r=p.negate(r),1<n.length&&(e=n[1])):(n=p.map(O(n,!1,!1),String),r=function(t,e){return!p.contains(n,e)}),p.pick(t,r,e)}),p.defaults=D(p.allKeys,!0),p.create=function(t,e){var n=y(t);return e&&p.extendOwn(n,e),n},p.clone=function(t){return p.isObject(t)?p.isArray(t)?t.slice():p.extend({},t):t},p.tap=function(t,e){return e(t),t},p.isMatch=function(t,e){var n=p.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),a=0;a<r;a++){var o=n[a];if(e[o]!==i[o]||!(o in i))return!1}return!0},N=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&M(t,e,n,r)},M=function(t,e,n,r){t instanceof p&&(t=t._wrapped),e instanceof p&&(e=e._wrapped);var i=d.call(t);if(i!==d.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return f.valueOf.call(t)===f.valueOf.call(e)}var a="[object Array]"===i;if(!a){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,s=e.constructor;if(o!==s&&!(p.isFunction(o)&&o instanceof o&&p.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),a){if((u=t.length)!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],n,r))return!1}else{var l,c=p.keys(t);if(u=c.length,p.keys(e).length!==u)return!1;for(;u--;)if(l=c[u],!k(e,l)||!N(t[l],e[l],n,r))return!1}return n.pop(),r.pop(),!0},p.isEqual=function(t,e){return N(t,e)},p.isEmpty=function(t){return null==t||(A(t)&&(p.isArray(t)||p.isString(t)||p.isArguments(t))?0===t.length:0===p.keys(t).length)},p.isElement=function(t){return!(!t||1!==t.nodeType)},p.isArray=n||function(t){return"[object Array]"===d.call(t)},p.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){p["is"+e]=function(t){return d.call(t)==="[object "+e+"]"}}),p.isArguments(arguments)||(p.isArguments=function(t){return k(t,"callee")});var B=t.document&&t.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(p.isFunction=function(t){return"function"==typeof t||!1}),p.isFinite=function(t){return!p.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},p.isNaN=function(t){return p.isNumber(t)&&isNaN(t)},p.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)},p.isNull=function(t){return null===t},p.isUndefined=function(t){return void 0===t},p.has=function(t,e){if(!p.isArray(e))return k(t,e);for(var n=e.length,r=0;r<n;r++){var i=e[r];if(null==t||!a.call(t,i))return!1;t=t[i]}return!!n},p.noConflict=function(){return t._=e,this},p.identity=function(t){return t},p.constant=function(t){return function(){return t}},p.noop=function(){},p.property=function(e){return p.isArray(e)?function(t){return b(t,e)}:_(e)},p.propertyOf=function(e){return null==e?function(){}:function(t){return p.isArray(t)?b(e,t):e[t]}},p.matcher=p.matches=function(e){return e=p.extendOwn({},e),function(t){return p.isMatch(t,e)}},p.times=function(t,e,n){var r=Array(Math.max(0,t));e=m(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},p.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},p.now=Date.now||function(){return(new Date).getTime()};var W={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},H=p.invert(W),U=function(e){var n=function(t){return e[t]},t="(?:"+p.keys(e).join("|")+")",r=RegExp(t),i=RegExp(t,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,n):t}};p.escape=U(W),p.unescape=U(H),p.result=function(t,e,n){p.isArray(e)||(e=[e]);var r=e.length;if(!r)return p.isFunction(n)?n.call(t):n;for(var i=0;i<r;i++){var a=null==t?void 0:t[e[i]];void 0===a&&(a=n,i=r),t=p.isFunction(a)?a.call(t):a}return t};var $=0;p.uniqueId=function(t){var e=++$+"";return t?t+e:e},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,q=function(t){return"\\"+V[t]};p.template=function(a,t,e){!t&&e&&(t=e),t=p.defaults({},t,p.templateSettings);var n,r=RegExp([(t.escape||R).source,(t.interpolate||R).source,(t.evaluate||R).source].join("|")+"|$","g"),o=0,s="__p+='";a.replace(r,function(t,e,n,r,i){return s+=a.slice(o,i).replace(Q,q),o=i+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}var i=function(t){return n.call(this,t,p)},u=t.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},p.chain=function(t){var e=p(t);return e._chain=!0,e};var K=function(t,e){return t._chain?p(e).chain():e};p.mixin=function(n){return p.each(p.functions(n),function(t){var e=p[t]=n[t];p.prototype[t]=function(){var t=[this._wrapped];return i.apply(t,arguments),K(this,e.apply(p,t))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=r[e];p.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],K(this,t)}}),p.each(["concat","join","slice"],function(t){var e=r[t];p.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return p})}(),function(i){i.fn.fitText=function(t,e){var n=t||1,r=i.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},e);return this.each(function(){var t=i(this),e=function(){t.css("font-size",Math.max(Math.min(t.width()/(10*n),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};e(),i(window).on("resize.fittext orientationchange.fittext",e)})}}(jQuery),function(l,c){var n="nimbleLazyLoad",r={load_all_images_on_first_scroll:!1,excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},i="smartload-skip";function e(t,e){this.element=t,this.options=l.extend({},r,e),_utils_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+i):this.options.excludeImg=["."+i],this._defaults=r,this._name=n,this.init()}e.prototype.init=function(){var e=this,n=l("[data-sek-src]:not("+this.options.excludeImg.join()+"), [data-sek-iframe-src]",this.element);this.increment=1,this.timer=0,n.addClass(i).bind("sek_load_img",{},function(){e._load_img(this)}).bind("sek_load_iframe",{},function(){e._load_iframe(this)}),l(c).scroll(function(t){e._better_scroll_event_handler(n,t)}),l(c).resize(_utils_.debounce(function(t){e._maybe_trigger_load(n,t)},100)),this._maybe_trigger_load(n)},e.prototype._better_scroll_event_handler=function(t,e){var n=this;this.doingAnimation||(this.doingAnimation=!0,c.requestAnimationFrame(function(){n._maybe_trigger_load(t,e),n.doingAnimation=!1}))},e.prototype._maybe_trigger_load=function(t,n){var r=this;t.filter(function(t,e){return r._is_visible(e,n)}).map(function(t,e){"IFRAME"===l(e).prop("tagName")?l(e).trigger("sek_load_iframe"):l(e).trigger("sek_load_img")})},e.prototype._is_visible=function(t,e){var r=function(t){if(0<t.length&&t.is(":visible"))return t;var e=t.prev();if(0<e.length&&e.is(":visible"))return e;if(0<e.length&&!e.is(":visible"))return r(e);var n=t.parent();return 0<n.length?r(n):null},n=r(l(t));if(!n||n.length<1)return!1;var i=l(c).scrollTop(),a=i+l(c).height(),o=n.offset().top,s=o+n.height(),u=this.options.threshold;return!(!e||"scroll"!=e.type||!this.options.load_all_images_on_first_scroll)||i-u<=s&&o<=a+u},e.prototype._load_img=function(t){var e=l(t),n=e.attr("data-sek-src"),r=e.attr("data-sek-srcset"),i=e.attr("data-sek-sizes"),a=l("<img />",{src:n});e.addClass("lazy-loading"),e.unbind("sek_load_img"),a.load(function(){e.removeAttr(["data-sek-src","data-sek-srcset","data-sek-sizes"].join(" ")),e.data("sek-lazy-bg")?e.css("backgroundImage","url("+n+")"):(e.attr("src",n),r&&e.attr("srcset",r),i&&e.attr("sizes",i)),e.hasClass("sek-lazy-loaded")||e.addClass("sek-lazy-loaded"),e.trigger("smartload"),e.data("sek-lazy-loaded",!0)}),a[0].complete&&a.load(),e.removeClass("lazy-loading")},e.prototype._load_iframe=function(t){var e=l(t);e.unbind("sek_load_iframe"),e.attr("src",function(){var t=l(this).attr("data-sek-iframe-src");return l(this).removeAttr("data-sek-iframe-src"),e.data("sek-lazy-loaded",!0),e.trigger("smartload"),e.hasClass("sek-lazy-loaded")||e.addClass("sek-lazy-loaded"),t})},l.fn[n]=function(t){return this.each(function(){l.data(this,"plugin_"+n)||l.data(this,"plugin_"+n,new e(this,t))})}}(jQuery,window),function(u,a){var n="nimbleCenterImages",r={enableCentering:!0,onresize:!0,onInit:!0,oncustom:[],$containerToListen:null,imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,useImgAttr:!1,setOpacityWhenCentered:!1,addCenteredClassWithDelay:0,opacity:1};function e(t,e){this.container=t,this.options=u.extend({},r,e),this._defaults=r,this._name=n,this._customEvt=u.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" "),this.init()}e.prototype.init=function(){var n=this,e=function(t){t=t||"init";var e=u(n.options.imgSel,n.container);1<=e.length&&n.options.enableCentering&&n._parse_imgs(e,t)};n.options.onInit&&e(),u.isArray(n._customEvt)&&n._customEvt.map(function(t){(n.options.$containerToListen instanceof u&&1<n.options.$containerToListen.length?n.options.$containerToListen:u(n.container)).bind(t,{},function(){e(t)})})},e.prototype._parse_imgs=function(t,r){var i=this;if(t.each(function(t,e){var n=u(e);i._pre_img_cent(n,r),i.options.onresize&&!n.data("resize-react-bound")&&(n.data("resize-react-bound",!0),u(a).resize(_utils_.debounce(function(){i._pre_img_cent(n,"resize")},100)))}),u(i.container).attr("data-img-centered-in-container")){var e=parseInt(u(i.container).attr("data-img-centered-in-container"),10)+1;u(i.container).attr("data-img-centered-in-container",e)}else u(i.container).attr("data-img-centered-in-container",1)},e.prototype._pre_img_cent=function(t){var e=this._get_current_state(t),n=this,r=e.current,i=e.prop[r],a=e.prop["h"==r?"v":"h"],o="h"==r?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,s=function(t){if(t.css(i.dim.name,i.dim.val).css(a.dim.name,n.options.defaultCSSVal[a.dim.name]||"auto").css(i.dir.name,i.dir.val).css(a.dir.name,o),0!==n.options.addCenteredClassWithDelay&&_utils_.isNumber(n.options.addCenteredClassWithDelay)?_utils_.delay(function(){t.addClass(i._class).removeClass(a._class)},n.options.addCenteredClassWithDelay):t.addClass(i._class).removeClass(a._class),t.attr("data-img-centered")){var e=parseInt(t.attr("data-img-centered"),10)+1;t.attr("data-img-centered",e)}else t.attr("data-img-centered",1);return t};this.options.setOpacityWhenCentered?u.when(s(t)).done(function(t){t.css("opacity",n.options.opacity)}):_utils_.delay(function(){s(t)},0)},e.prototype._get_current_state=function(t){var e=t.closest(this.container).outerWidth(),n=u(this.container).outerHeight(),r=this._get_img_dim(t,"x"),i=this._get_img_dim(t,"y"),a=i*n!=0?Math.round(r/i*n):e,o=r*e!=0?Math.round(i/r*e):n,s="h";return 0!=e*r&&(s=i/r<=n/e?"h":"v"),{current:s,prop:{h:{dim:{name:"height",val:n},dir:{name:"left",val:(e-a)/2+(this.options.leftAdjust||0)},_class:"sek-h-centrd"},v:{dim:{name:"width",val:e},dir:{name:"top",val:(n-o)/2+(this.options.topAdjust||0)},_class:"sek-v-centrd"}}}},e.prototype._get_img_dim=function(t,e){if(!this.options.useImgAttr)return"x"==e?t.outerWidth():t.outerHeight();if(t.is(":visible"))return"x"==e?t.outerWidth():t.outerHeight();if("x"==e){var n=t.originalWidth();return void 0===typeof n?0:n}if("y"==e){var r=t.originalHeight();return void 0===typeof r?0:r}},e.prototype._is_selector_allowed=function(){if(!u(this.container).attr("class"))return!0;var t=u(this.container).attr("class").split(" "),e=[];return 0===t.filter(function(t){return-1!=u.inArray(t,e)}).length},u.fn[n]=function(t){return this.each(function(){u.data(this,"plugin_"+n)||u.data(this,"plugin_"+n,new e(this,t))})}}(jQuery,window),function(n,s){var r="parallaxBg",i={parallaxForce:40,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function e(t,e){this.element=n(t),this.options=n.extend({},i,e,this.parseElementDataOptions()),this._defaults=i,this._name=r,this.init()}e.prototype.parseElementDataOptions=function(){return this.element.data()},e.prototype.init=function(){var e=this;this.$_window=n(s),this.doingAnimation=!1,this.isVisible=!1,this.isBefore=!1,this.isAfter=!0,("number"!=typeof e.options.parallaxForce||e.options.parallaxForce<0)&&(sekFrontLocalized.isDevMode&&console.log("parallaxBg => the provided parallaxForce is invalid => "+e.options.parallaxForce),e.options.parallaxForce=this._defaults.parallaxForce),100<e.options.parallaxForce&&(e.options.parallaxForce=100),this.$_window.scroll(function(t){e.maybeParallaxMe(t)}),this.$_window.resize(_utils_.debounce(function(t){e.maybeParallaxMe(t)},100)),this.checkIfIsVisibleAndCacheProperties(),this.setTopPositionAndBackgroundSize()},e.prototype.setTopPositionAndBackgroundSize=function(){if(_utils_.isFunction(s.matchMedia)&&matchMedia(this.options.matchMedia).matches)this.element.css({"background-position-y":"","background-attachment":""});else{var t=this.element,e=(t.outerHeight(),this.$_window.height()),n=t.offset().top,r=this.$_window.scrollTop(),i=100;this.isVisible?i=(n-r)/e:this.isBefore?i=1:this.isAfter&&(i=-1);var a=0<this.options.parallaxForce?e*(100-this.options.parallaxForce)/100:e,o=Math.round(i*a);this.element.css({"background-position-y":["calc(50% ",0<o?"+ ":"- ",Math.abs(o)+"px)"].join("")})}},e.prototype.checkIfIsVisibleAndCacheProperties=function(t){var e=this.element;if(!e.is(":visible"))return!1;var n=this.$_window.scrollTop(),r=n+this.$_window.height(),i=e.offset().top,a=i+e.outerHeight();return this.isVisible=n<=a&&i<=r,this.isBefore=r<i,this.isAfter=a<n,this.isVisible},e.prototype.maybeParallaxMe=function(t){var e=this;this.checkIfIsVisibleAndCacheProperties()&&(this.doingAnimation||(this.doingAnimation=!0,s.requestAnimationFrame(function(){e.setTopPositionAndBackgroundSize(),e.doingAnimation=!1})))},n.fn[r]=function(t){return this.each(function(){n.data(this,"plugin_"+r)||n.data(this,"plugin_"+r,new e(this,t))})}}(jQuery,window),jQuery(function(p){var t,a,o,s,u,l;!function(){var l="sek.sekDropdown",t="."+l,n={PLACE_ME:"placeme"+t,PLACE_ALL:"placeall"+t,SHOWN:"shown"+t,SHOW:"show"+t,HIDDEN:"hidden"+t,HIDE:"hide"+t,CLICK:"click"+t,TAP:"tap"+t},c="sek-dropdown-menu",e="sek-dropdown-submenu",r="show",i="menu-item-has-children",a='[data-toggle="sek-dropdown"]',o=".sek-nav-wrap .menu-item-has-children",s=".sek-nav-wrap .menu-item-has-children";p(".sek-nav .children, .sek-nav .sub-menu").addClass(c),p(".sek-nav-wrap .page_item_has_children").addClass(i),p(".sek-nav ."+c+" ."+i).addClass(e);var u,f,d;u=o,p(document).on("mouseenter",u,function(){var e=p(this);_utils_.debounce(function(){if("static"==e.find("."+c).css("position"))return!1;if(!e.hasClass(r)){e.trigger(n.SHOW).addClass(r).trigger(n.SHOWN);var t=e.children(a);t.length&&t[0].setAttribute("aria-expanded","true")}},30)()}).on("mouseleave",u,function(){var e=p(this);_utils_.debounce(function(){if(e.find("ul li:hover").length<1&&!e.closest("ul").find("li:hover").is(e)){e.trigger(n.HIDE).removeClass(r).trigger(n.HIDDEN);var t=e.children(a);t.length&&t[0].setAttribute("aria-expanded","false")}},30)()}),f="rtl"===p("html").attr("dir"),d=!1,p(window).on("resize",function(){d||(d=!0,window.requestAnimationFrame(function(){p(s+"."+r).trigger(n.PLACE_ME),d=!1}))}),p(document).on(n.PLACE_ALL,function(){p(s).trigger(n.PLACE_ME)}).on(n.SHOWN+" "+n.PLACE_ME,s,function(t){t.stopPropagation(),function(t,e){if(e&&e.namespace&&l===e.namespace){var n,r,i,a,o,s,u=t.children("."+c);u.length&&(t.css("overflow","hidden"),u.css({zIndex:"-100",display:"block"}),r=t,i=f?{_DEFAULT:"left",_OPPOSITE:"right"}:{_DEFAULT:"right",_OPPOSITE:"left"},a={OPEN_PREFIX:"open-",DD_SUBMENU:"sek-dropdown-submenu",CARET_TITLE_FLIP:"sek-menu-link__row-reverse",DROPDOWN:"sek-dropdown-menu"},o=function(t,n,e){p.each(t,function(){var t=p(this),e=t.find("a").first();1==e.length&&e.toggleClass(a.CARET_TITLE_FLIP,n==i._OPPOSITE)})},s=function(t){var e=t==i._OPPOSITE?i._DEFAULT:i._OPPOSITE;n.removeClass(a.OPEN_PREFIX+e).addClass(a.OPEN_PREFIX+t),r.hasClass(a.DD_SUBMENU)&&(o(r,t,e),o(n.children("."+a.DD_SUBMENU),t,e))},(n=u).parent().closest("."+a.DROPDOWN).hasClass(a.OPEN_PREFIX+i._OPPOSITE)?s(i._OPPOSITE):s(i._DEFAULT),n.offset().left+n.width()>p(window).width()?s("left"):n.offset().left<0&&s("right"),u.css({zIndex:"",display:""}),t.css("overflow",""))}}(p(this),t)})}(),a={SHOW:"show"+(t=".sek.sekCollapse"),SHOWN:"shown"+t,HIDE:"hide"+t,HIDDEN:"hidden"+t,CLICK_DATA_API:"click"+t+".data-api"},o="show",s="sek-collapse",u="sek-collapsing",l="sek-collapsed",p(document).on(a.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=p(this),n=e.data("target");p(n).each(function(){var r=p(this),i=r.hasClass(o);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(u).trigger(i?a.HIDE:a.SHOW),i?e.addClass(l).attr("aria-expanded","false"):e.removeClass(l).attr("aria-expanded","true")},complete:function(){var t,e,n;i?(t=o,e=s,n=a.HIDDEN):(t=s,e=o,n=a.SHOWN),r.removeClass(u+" "+t).addClass(e).trigger(n),function(t){(t=t||p(this)).css({display:"",paddingTop:"",marginTop:"",paddingBottom:"",marginBottom:"",height:""})}(r)}})})}),p(document).on("mouseenter",".sek-nav-toggler",function(){p(this).addClass("hovering")}).on("mouseleave",".sek-nav-toggler",function(){p(this).removeClass("hovering")}).on("show.sek.sekCollapse hide.sek.sekCollapse",".sek-nav-collapse",function(){p("[data-target=#"+p(this).attr("id")+"]").removeClass("hovering"),p(window).trigger("scroll")}),p(document).on("ready",function(){var e=function(){p('[data-sek-module-type="czr_menu_module"]').find('[data-sek-expand-below="yes"]').each(function(){if(!0!==p(this).data("sek-setup-menu-mobile-expanded-below-done")){var t=p(this).closest('[data-sek-module-type="czr_menu_module"]').clone(!0),e=p(".sek-nav-collapse",this).attr("id")+"-mobile";t.appendTo(p(this).closest(".sek-sektion-inner")).wrap('<div class="sek-col-base sek-mobile-menu-expanded-below" id="'+e+'-wrapper"></div>'),p(".sek-nav-collapse","#"+e+"-wrapper").attr("id",e),p(".sek-nav-wrap","#"+e+"-wrapper").attr("data-sek-is-mobile-menu","yes"),p(".sek-nav-toggler","#"+e+"-wrapper").detach(),p(".sek-nav-toggler",this).data("target","#"+e).attr("aria-controls",e),p(this).data("sek-setup-menu-mobile-expanded-below-done",!0)}})};e(),p("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",function(t){p(".sek-mobile-menu-expanded-below").remove(),e()})})}),jQuery(function(r){r("body").on("click sek-expand-accord-item",".sek-accord-item > .sek-accord-title",function(t){var e=r(this).closest(".sek-accord-item"),n=r(this).closest(".sek-accord-wrapper");"true"==n.data("sek-one-expanded")+""&&n.find(".sek-accord-item").not(e).each(function(){var t=r(this);t.find(".sek-accord-content").stop(!0,!0).slideUp({duration:200,start:function(){"true"==t.attr("data-sek-expanded")+""&&t.find(".sek-accord-content").css("display","block"),t.attr("data-sek-expanded","false")}})}),"sek-expand-accord-item"===t.type&&"true"==e.attr("data-sek-expanded")+""||e.find(".sek-accord-content").stop(!0,!0).slideToggle({duration:200,start:function(){"true"==e.attr("data-sek-expanded")+""&&e.find(".sek-accord-content").css("display","block"),e.attr("data-sek-expanded","false"==e.attr("data-sek-expanded")+""?"true":"false"),e.trigger("true"==e.attr("data-sek-expanded")?"sek-accordion-expanded":"sek-accordion-collapsed")}})}),_utils_.isUndefined(wp.customize)||wp.customize.preview.bind("sek-item-focus",function(t){var e=r('[data-sek-item-id="'+t.item_id+'"]',".sek-accord-wrapper").first();e.length<1||e.find(".sek-accord-title").trigger("sek-expand-accord-item")})}),jQuery(function(a){var r=[],t=function(){var t=a(this),e="sek-swiper"+t.data("sek-swiper-id"),n={loop:!0===t.data("sek-loop")&&!0===t.data("sek-is-multislide"),grabCursor:!0===t.data("sek-is-multislide"),on:{init:function(){"nimble-wizard"===t.data("sek-image-layout")&&t.find(".sek-carousel-img").each(function(){var e=a(this).nimbleCenterImages({enableCentering:1,zeroTopAdjust:0,setOpacityWhenCentered:!1,oncustom:["simple_load","smartload","sek-nimble-refreshed"]}).find('img:not([src^="data"])');_utils_.delay(function(){var t;0!==(t=e).length&&t.map(function(t,e){a(e).load(function(){a(e).trigger("simple_load")}),a(e)[0]&&a(e)[0].complete&&a(e).load()})},10)})}}};!0===t.data("sek-autoplay")?a.extend(n,{autoplay:{delay:t.data("sek-autoplay-delay"),disableOnInteraction:t.data("sek-pause-on-hover")}}):a.extend(n,{autoplay:{delay:999999999}}),!0===t.data("sek-is-multislide")&&(_utils_.contains(["arrows_dots","arrows"],t.data("sek-navtype"))&&a.extend(n,{navigation:{nextEl:".sek-swiper-next"+t.data("sek-swiper-id"),prevEl:".sek-swiper-prev"+t.data("sek-swiper-id")}}),_utils_.contains(["arrows_dots","dots"],t.data("sek-navtype"))&&a.extend(n,{pagination:{el:".swiper-pagination"+t.data("sek-swiper-id"),clickable:!0}})),r.push(new Swiper("."+e,n))},e=function(){a(".sektion-wrapper").find("[data-sek-swiper-id]").each(function(){t.call(a(this))})};a("body").on("sek-columns-refreshed sek-modules-refreshed sek-section-added sek-level-refreshed",'[data-sek-level="location"]',function(){_utils_.isEmpty(r)||_utils_.each(r,function(t){t.destroy()}),r=[],e(),a(this).find(".swiper-container img").each(function(){a(this).trigger("sek-nimble-refreshed")})}),a("body").on("sek-stylesheet-refreshed",'[data-sek-module-type="czr_img_slider_module"]',function(){a(this).find(".swiper-container img").each(function(){a(this).trigger("sek-nimble-refreshed")})}),a(".sektion-wrapper").find(".swiper-container").each(function(){e()}),a(".swiper-slide").on("mouseover mouseout",function(t){var e=a(this).closest(".swiper-container")[0].swiper;if(!_utils_.isUndefined(e)&&!0===e.params.autoplay.disableOnInteraction)switch(t.type){case"mouseover":e.autoplay.stop();break;case"mouseout":e.autoplay.start()}}),_utils_.isUndefined(wp.customize)||wp.customize.preview.bind("sek-item-focus",function(t){var e=a('[data-sek-item-id="'+t.item_id+'"]',".swiper-container").first();if(!(e.length<1)){var n=e.closest(".swiper-container");if(!(n.length<1)){var r=e.closest(".swiper-container")[0].swiper;if(!_utils_.isUndefined(r)){var i=a(".swiper-slide",n).index(e);r.slideTo(i,100)}}}})}),jQuery(function(t){t('[data-sek-module-type="czr_image_module"]').each(function(){if($linkCandidate=t(this).find(".sek-link-to-img-lightbox"),!($linkCandidate.length<1||"string"!=typeof $linkCandidate[0].protocol||-1!==$linkCandidate[0].protocol.indexOf("javascript"))&&"function"==typeof t.fn.magnificPopup)try{$linkCandidate.magnificPopup({type:"image",closeOnContentClick:!0,closeBtnInside:!0,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0},zoom:{enabled:!0,duration:300}})}catch(t){"function"==typeof window.console.log&&console.log(t)}})}),jQuery(function(t){t(".sektion-wrapper").each(function(){try{t(this).nimbleLazyLoad()}catch(t){"function"==typeof window.console.log&&console.log(t)}})}),jQuery(function(e){e('[data-sek-bg-parallax="true"]').each(function(){e(this).parallaxBg({parallaxForce:e(this).data("sek-parallax-force")})});var n=function(){e(this).parallaxBg({parallaxForce:e(this).data("sek-parallax-force")}),setTimeout(function(){e("body").trigger("resize")},500)};e("body").on("sek-level-refreshed sek-section-added",function(t){"true"===e(this).data("sek-bg-parallax")?n.call(this):e(this).find('[data-sek-bg-parallax="true"]').each(function(){n.call(this)})})}),jQuery(function(a){var o=function(t){var e=document.createElement("a");e.href=t,e.href=e.href;for(var n=["host","hostname","hash","href","port","protocol","search"],r=0,i=n.length;r<i;r++)this[n[r]]=e[n[r]];this.pathname=("/"!==e.pathname.charAt(0)?"/":"")+e.pathname},s=a("html, body"),t=function(t){var e=a(this).attr("href");if(""!==e&&null!==e&&"string"==typeof e&&-1!==e.indexOf("#")){var n=new o(e),r=new o(window.document.location.href);if(n.pathname===r.pathname&&"string"==typeof n.hash&&""!==n.hash){var i=a('[data-sek-level="location"]').find('[id="'+n.hash.replace("#","")+'"]');1===i.length&&(t.preventDefault(),s.animate({scrollTop:i.offset().top-150},400))}}};a("body").find(".menu-item").on("click","a",t),a('[data-sek-level="location"]').on("click","a",t)});
|
inc/sektions/ccat-sektions.php
CHANGED
@@ -11626,12 +11626,23 @@ function sek_get_module_params_for_czr_menu_content_child() {
|
|
11626 |
),
|
11627 |
'h_alignment_css' => array(
|
11628 |
'input_type' => 'horizAlignmentWithDeviceSwitcher',
|
11629 |
-
'title' => __('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11630 |
'default' => array( 'desktop' => 'center' ),
|
11631 |
'refresh_markup' => false,
|
11632 |
'refresh_stylesheet' => true,
|
11633 |
'css_identifier' => 'h_flex_alignment',
|
11634 |
-
'css_selectors' => array( '.sek-nav-
|
11635 |
'title_width' => 'width-100',
|
11636 |
'width-100' => true,
|
11637 |
),
|
11626 |
),
|
11627 |
'h_alignment_css' => array(
|
11628 |
'input_type' => 'horizAlignmentWithDeviceSwitcher',
|
11629 |
+
'title' => __('Menu items alignment', 'nimble-builder'),
|
11630 |
+
'default' => array( 'desktop' => 'center' ),
|
11631 |
+
'refresh_markup' => false,
|
11632 |
+
'refresh_stylesheet' => true,
|
11633 |
+
'css_identifier' => 'h_flex_alignment',
|
11634 |
+
'css_selectors' => array( '.sek-nav-collapse', '[data-sek-is-mobile-menu="yes"] .sek-nav li a' ),
|
11635 |
+
'title_width' => 'width-100',
|
11636 |
+
'width-100' => true,
|
11637 |
+
),
|
11638 |
+
'hamb_h_alignment_css' => array(
|
11639 |
+
'input_type' => 'horizAlignmentWithDeviceSwitcher',
|
11640 |
+
'title' => __('Hamburger button alignment', 'nimble-builder'),
|
11641 |
'default' => array( 'desktop' => 'center' ),
|
11642 |
'refresh_markup' => false,
|
11643 |
'refresh_stylesheet' => true,
|
11644 |
'css_identifier' => 'h_flex_alignment',
|
11645 |
+
'css_selectors' => array( '.sek-nav-wrap' ),
|
11646 |
'title_width' => 'width-100',
|
11647 |
'width-100' => true,
|
11648 |
),
|
nimble-builder.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Description: Powerful drag and drop page builder using the native WordPress customizer.
|
5 |
-
* Version: 1.8.
|
6 |
* Text Domain: nimble-builder
|
7 |
* Author: Press Customizr
|
8 |
* Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
|
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
/* ------------------------------------------------------------------------- *
|
14 |
* CONSTANTS
|
15 |
/* ------------------------------------------------------------------------- */
|
16 |
-
$current_version = "1.8.
|
17 |
|
18 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
19 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
2 |
/**
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Description: Powerful drag and drop page builder using the native WordPress customizer.
|
5 |
+
* Version: 1.8.17
|
6 |
* Text Domain: nimble-builder
|
7 |
* Author: Press Customizr
|
8 |
* Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
|
13 |
/* ------------------------------------------------------------------------- *
|
14 |
* CONSTANTS
|
15 |
/* ------------------------------------------------------------------------- */
|
16 |
+
$current_version = "1.8.17";
|
17 |
|
18 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
19 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, visual editor, customizer, drag and drop, header, footer, la
|
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
Tested up to: 5.2.2
|
9 |
-
Stable tag: 1.8.
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
|
@@ -120,10 +120,13 @@ We have also published a detailed [troubleshooting guide for Nimble Builder](htt
|
|
120 |
If you can't troubleshoot your issue, please open a new thread in [Nimble Builder support forum](https://wordpress.org/support/plugin/nimble-builder/).
|
121 |
|
122 |
== Upgrade Notice ==
|
123 |
-
= 1.8.
|
124 |
-
|
125 |
|
126 |
== Changelog ==
|
|
|
|
|
|
|
127 |
= 1.8.16 : July 29th 2019 =
|
128 |
* fixed : Google fonts not updated when injecting a pre-build section in a new nested section
|
129 |
* fixed : preview level ui => overlapping problem => the ui of column with a nested section can not be accessed easily
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
Tested up to: 5.2.2
|
9 |
+
Stable tag: 1.8.17
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
|
120 |
If you can't troubleshoot your issue, please open a new thread in [Nimble Builder support forum](https://wordpress.org/support/plugin/nimble-builder/).
|
121 |
|
122 |
== Upgrade Notice ==
|
123 |
+
= 1.8.17 =
|
124 |
+
[Menu module] Fixed menu items alignment broken on mobile devices.
|
125 |
|
126 |
== Changelog ==
|
127 |
+
= 1.8.17 : August 29th 2019 =
|
128 |
+
* fixed : [Menu module] menu items alignment broken on mobile devices.
|
129 |
+
|
130 |
= 1.8.16 : July 29th 2019 =
|
131 |
* fixed : Google fonts not updated when injecting a pre-build section in a new nested section
|
132 |
* fixed : preview level ui => overlapping problem => the ui of column with a nested section can not be accessed easily
|