Version Description
Now pages and posts that have Nimble sections are included in the search results when a match is found with the textual content created with Nimble Builder.
=
Download this release
Release Info
Developer | nikeo |
Plugin | Nimble Page Builder |
Version | 1.7.4 |
Comparing to | |
See all releases |
Code changes from version 1.7.3 to 1.7.4
- assets/front/js/ccat-nimble-front.js +12 -6
- assets/front/js/ccat-nimble-front.min.js +1 -1
- inc/sektions/ccat-sektions.php +49 -0
- nimble-builder.php +5 -5
- readme.txt +9 -4
- tmpl/header/nimble_header_tmpl.php +7 -0
assets/front/js/ccat-nimble-front.js
CHANGED
@@ -2269,16 +2269,15 @@ jQuery( function($){
|
|
2269 |
};
|
2270 |
|
2271 |
var $root = $('html, body');
|
2272 |
-
|
2273 |
-
$('body').find('.menu-item' ).on( 'click', 'a', function( evt ){
|
2274 |
// problem to solve : users want to define anchor links that work inside a page, but also from other pages.
|
2275 |
// @see https://github.com/presscustomizr/nimble-builder/issues/413
|
2276 |
-
var
|
2277 |
-
if ( '' ===
|
2278 |
return;
|
2279 |
|
2280 |
// an anchor link looks like this : http://mysite.com/contact/#anchor
|
2281 |
-
var itemURLObject = new parseURL(
|
2282 |
_currentPageUrl = new parseURL( window.document.location.href );
|
2283 |
|
2284 |
if( itemURLObject.pathname !== _currentPageUrl.pathname )
|
@@ -2291,7 +2290,14 @@ jQuery( function($){
|
|
2291 |
|
2292 |
evt.preventDefault();
|
2293 |
$root.animate({ scrollTop : $nimbleTargetCandidate.offset().top - 150 }, 400 );
|
2294 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2295 |
});
|
2296 |
|
2297 |
|
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 )
|
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 |
|
assets/front/js/ccat-nimble-front.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var n="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},t=n._,r=Array.prototype,a=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,s=r.slice,d=a.toString,o=a.hasOwnProperty,e=Array.isArray,u=Object.keys,l=Object.create,c=function(){},p=function(n){return n instanceof p?n:this instanceof p?void(this._wrapped=n):new p(n)};"undefined"==typeof exports||exports.nodeType?n._utils_=p:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=p),exports._utils_=p),p.VERSION="1.9.1";var h,v=function(i,o,n){if(void 0===o)return i;switch(null==n?3:n){case 1:return function(n){return i.call(o,n)};case 3:return function(n,t,e){return i.call(o,n,t,e)};case 4:return function(n,t,e,r){return i.call(o,n,t,e,r)}}return function(){return i.apply(o,arguments)}},m=function(n,t,e){return p.iteratee!==h?p.iteratee(n,t):null==n?p.identity:p.isFunction(n)?v(n,t,e):p.isObject(n)&&!p.isArray(n)?p.matcher(n):p.property(n)};p.iteratee=h=function(n,t){return m(n,t,1/0)};var g=function(i,o){return o=null==o?i.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),e=0;e<n;e++)t[e]=arguments[e+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var r=Array(o+1);for(e=0;e<o;e++)r[e]=arguments[e];return r[o]=t,i.apply(this,r)}},y=function(n){if(!p.isObject(n))return{};if(l)return l(n);c.prototype=n;var t=new c;return c.prototype=null,t},_=function(t){return function(n){return null==n?void 0:n[t]}},b=function(n,t){return null!=n&&o.call(n,t)},k=function(n,t){for(var e=t.length,r=0;r<e;r++){if(null==n)return;n=n[t[r]]}return e?n:void 0},w=Math.pow(2,53)-1,x=_("length"),A=function(n){var t=x(n);return"number"==typeof t&&0<=t&&t<=w};p.each=p.forEach=function(n,t,e){var r,i;if(t=v(t,e),A(n))for(r=0,i=n.length;r<i;r++)t(n[r],r,n);else{var o=p.keys(n);for(r=0,i=o.length;r<i;r++)t(n[o[r]],o[r],n)}return n},p.map=p.collect=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=t(n[u],u,n)}return o};var E=function(s){return function(n,t,e,r){var i=3<=arguments.length;return function(n,t,e,r){var i=!A(n)&&p.keys(n),o=(i||n).length,a=0<s?0:o-1;for(r||(e=n[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;e=t(e,n[u],u,n)}return e}(n,v(t,r,4),e,i)}};p.reduce=p.foldl=p.inject=E(1),p.reduceRight=p.foldr=E(-1),p.find=p.detect=function(n,t,e){var r=(A(n)?p.findIndex:p.findKey)(n,t,e);if(void 0!==r&&-1!==r)return n[r]},p.filter=p.select=function(n,r,t){var i=[];return r=m(r,t),p.each(n,function(n,t,e){r(n,t,e)&&i.push(n)}),i},p.reject=function(n,t,e){return p.filter(n,p.negate(m(t)),e)},p.every=p.all=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(n[a],a,n))return!1}return!0},p.some=p.any=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(n[a],a,n))return!0}return!1},p.contains=p.includes=p.include=function(n,t,e,r){return A(n)||(n=p.values(n)),("number"!=typeof e||r)&&(e=0),0<=p.indexOf(n,t,e)},p.invoke=g(function(n,e,r){var i,o;return p.isFunction(e)?o=e:p.isArray(e)&&(i=e.slice(0,-1),e=e[e.length-1]),p.map(n,function(n){var t=o;if(!t){if(i&&i.length&&(n=k(n,i)),null==n)return;t=n[e]}return null==t?t:t.apply(n,r)})}),p.pluck=function(n,t){return p.map(n,p.property(t))},p.where=function(n,t){return p.filter(n,p.matcher(t))},p.findWhere=function(n,t){return p.find(n,p.matcher(t))},p.max=function(n,r,t){var e,i,o=-1/0,a=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var u=0,s=(n=A(n)?n:p.values(n)).length;u<s;u++)null!=(e=n[u])&&o<e&&(o=e);else r=m(r,t),p.each(n,function(n,t,e){i=r(n,t,e),(a<i||i===-1/0&&o===-1/0)&&(o=n,a=i)});return o},p.min=function(n,r,t){var e,i,o=1/0,a=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var u=0,s=(n=A(n)?n:p.values(n)).length;u<s;u++)null!=(e=n[u])&&e<o&&(o=e);else r=m(r,t),p.each(n,function(n,t,e){((i=r(n,t,e))<a||i===1/0&&o===1/0)&&(o=n,a=i)});return o},p.shuffle=function(n){return p.sample(n,1/0)},p.sample=function(n,t,e){if(null==t||e)return A(n)||(n=p.values(n)),n[p.random(n.length-1)];var r=A(n)?p.clone(n):p.values(n),i=x(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=p.random(a,o),s=r[a];r[a]=r[u],r[u]=s}return r.slice(0,t)},p.sortBy=function(n,r,t){var i=0;return r=m(r,t),p.pluck(p.map(n,function(n,t,e){return{value:n,index:i++,criteria:r(n,t,e)}}).sort(function(n,t){var e=n.criteria,r=t.criteria;if(e!==r){if(r<e||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),"value")};var I=function(a,t){return function(r,i,n){var o=t?[[],[]]:{};return i=m(i,n),p.each(r,function(n,t){var e=i(n,t,r);a(o,n,e)}),o}};p.groupBy=I(function(n,t,e){b(n,e)?n[e].push(t):n[e]=[t]}),p.indexBy=I(function(n,t,e){n[e]=t}),p.countBy=I(function(n,t,e){b(n,e)?n[e]++:n[e]=1});var O=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(n){return n?p.isArray(n)?s.call(n):p.isString(n)?n.match(O):A(n)?p.map(n,p.identity):p.values(n):[]},p.size=function(n){return null==n?0:A(n)?n.length:p.keys(n).length},p.partition=I(function(n,t,e){n[e?0:1].push(t)},!0),p.first=p.head=p.take=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[0]:p.initial(n,n.length-t)},p.initial=function(n,t,e){return s.call(n,0,Math.max(0,n.length-(null==t||e?1:t)))},p.last=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[n.length-1]:p.rest(n,Math.max(0,n.length-t))},p.rest=p.tail=p.drop=function(n,t,e){return s.call(n,null==t||e?1:t)},p.compact=function(n){return p.filter(n,Boolean)};var j=function(n,t,e,r){for(var i=(r=r||[]).length,o=0,a=x(n);o<a;o++){var u=n[o];if(A(u)&&(p.isArray(u)||p.isArguments(u)))if(t)for(var s=0,l=u.length;s<l;)r[i++]=u[s++];else j(u,t,e,r),i=r.length;else e||(r[i++]=u)}return r};p.flatten=function(n,t){return j(n,t,!1)},p.without=g(function(n,t){return p.difference(n,t)}),p.uniq=p.unique=function(n,t,e,r){p.isBoolean(t)||(r=e,e=t,t=!1),null!=e&&(e=m(e,r));for(var i=[],o=[],a=0,u=x(n);a<u;a++){var s=n[a],l=e?e(s,a,n):s;t&&!e?(a&&o===l||i.push(s),o=l):e?p.contains(o,l)||(o.push(l),i.push(s)):p.contains(i,s)||i.push(s)}return i},p.union=g(function(n){return p.uniq(j(n,!0,!0))}),p.intersection=function(n){for(var t=[],e=arguments.length,r=0,i=x(n);r<i;r++){var o=n[r];if(!p.contains(t,o)){var a;for(a=1;a<e&&p.contains(arguments[a],o);a++);a===e&&t.push(o)}}return t},p.difference=g(function(n,t){return t=j(t,!0,!0),p.filter(n,function(n){return!p.contains(t,n)})}),p.unzip=function(n){for(var t=n&&p.max(n,x).length||0,e=Array(t),r=0;r<t;r++)e[r]=p.pluck(n,r);return e},p.zip=g(p.unzip),p.object=function(n,t){for(var e={},r=0,i=x(n);r<i;r++)t?e[n[r]]=t[r]:e[n[r][0]]=n[r][1];return e};var C=function(o){return function(n,t,e){t=m(t,e);for(var r=x(n),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(n[i],i,n))return i;return-1}};p.findIndex=C(1),p.findLastIndex=C(-1),p.sortedIndex=function(n,t,e,r){for(var i=(e=m(e,r,1))(t),o=0,a=x(n);o<a;){var u=Math.floor((o+a)/2);e(n[u])<i?o=u+1:a=u}return o};var F=function(o,a,u){return function(n,t,e){var r=0,i=x(n);if("number"==typeof e)0<o?r=0<=e?e:Math.max(e+i,r):i=0<=e?Math.min(e+1,i):e+i+1;else if(u&&e&&i)return n[e=u(n,t)]===t?e:-1;if(t!=t)return 0<=(e=a(s.call(n,r,i),p.isNaN))?e+r:-1;for(e=0<o?r:i-1;0<=e&&e<i;e+=o)if(n[e]===t)return e;return-1}};p.indexOf=F(1,p.findIndex,p.sortedIndex),p.lastIndexOf=F(-1,p.findLastIndex),p.range=function(n,t,e){null==t&&(t=n||0,n=0),e||(e=t<n?-1:1);for(var r=Math.max(Math.ceil((t-n)/e),0),i=Array(r),o=0;o<r;o++,n+=e)i[o]=n;return i},p.chunk=function(n,t){if(null==t||t<1)return[];for(var e=[],r=0,i=n.length;r<i;)e.push(s.call(n,r,r+=t));return e};var S=function(n,t,e,r,i){if(!(r instanceof t))return n.apply(e,i);var o=y(n.prototype),a=n.apply(o,i);return p.isObject(a)?a:o};p.bind=g(function(t,e,r){if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");var i=g(function(n){return S(t,i,e,this,r.concat(n))});return i}),p.partial=g(function(i,o){var a=p.partial.placeholder,u=function(){for(var n=0,t=o.length,e=Array(t),r=0;r<t;r++)e[r]=o[r]===a?arguments[n++]:o[r];for(;n<arguments.length;)e.push(arguments[n++]);return S(i,u,this,this,e)};return u}),(p.partial.placeholder=p).bindAll=g(function(n,t){var e=(t=j(t,!1,!1)).length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var r=t[e];n[r]=p.bind(n[r],n)}}),p.memoize=function(r,i){var o=function(n){var t=o.cache,e=""+(i?i.apply(this,arguments):n);return b(t,e)||(t[e]=r.apply(this,arguments)),t[e]};return o.cache={},o},p.delay=g(function(n,t,e){return setTimeout(function(){return n.apply(null,e)},t)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(e,r,i){var o,a,u,s,l=0;i||(i={});var c=function(){l=!1===i.leading?0:p.now(),o=null,s=e.apply(a,u),o||(a=u=null)},n=function(){var n=p.now();l||!1!==i.leading||(l=n);var t=r-(n-l);return a=this,u=arguments,t<=0||r<t?(o&&(clearTimeout(o),o=null),l=n,s=e.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(c,t)),s};return n.cancel=function(){clearTimeout(o),l=0,o=a=u=null},n},p.debounce=function(e,r,i){var o,a,u=function(n,t){o=null,t&&(a=e.apply(n,t))},n=g(function(n){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(u,r),t&&(a=e.apply(this,n))}else o=p.delay(u,r,this,n);return a});return n.cancel=function(){clearTimeout(o),o=null},n},p.wrap=function(n,t){return p.partial(t,n)},p.negate=function(n){return function(){return!n.apply(this,arguments)}},p.compose=function(){var e=arguments,r=e.length-1;return function(){for(var n=r,t=e[r].apply(this,arguments);n--;)t=e[n].call(this,t);return t}},p.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},p.before=function(n,t){var e;return function(){return 0<--n&&(e=t.apply(this,arguments)),n<=1&&(t=null),e}},p.once=p.partial(p.before,2),p.restArguments=g;var P=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(n,t){var e=T.length,r=n.constructor,i=p.isFunction(r)&&r.prototype||a,o="constructor";for(b(n,o)&&!p.contains(t,o)&&t.push(o);e--;)(o=T[e])in n&&n[o]!==i[o]&&!p.contains(t,o)&&t.push(o)};p.keys=function(n){if(!p.isObject(n))return[];if(u)return u(n);var t=[];for(var e in n)b(n,e)&&t.push(e);return P&&N(n,t),t},p.allKeys=function(n){if(!p.isObject(n))return[];var t=[];for(var e in n)t.push(e);return P&&N(n,t),t},p.values=function(n){for(var t=p.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=n[t[i]];return r},p.mapObject=function(n,t,e){t=m(t,e);for(var r=p.keys(n),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(n[u],u,n)}return o},p.pairs=function(n){for(var t=p.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=[t[i],n[t[i]]];return r},p.invert=function(n){for(var t={},e=p.keys(n),r=0,i=e.length;r<i;r++)t[n[e[r]]]=e[r];return t},p.functions=p.methods=function(n){var t=[];for(var e in n)p.isFunction(n[e])&&t.push(e);return t.sort()};var z=function(s,l){return function(n){var t=arguments.length;if(l&&(n=Object(n)),t<2||null==n)return n;for(var e=1;e<t;e++)for(var r=arguments[e],i=s(r),o=i.length,a=0;a<o;a++){var u=i[a];l&&void 0!==n[u]||(n[u]=r[u])}return n}};p.extend=z(p.allKeys),p.extendOwn=p.assign=z(p.keys),p.findKey=function(n,t,e){t=m(t,e);for(var r,i=p.keys(n),o=0,a=i.length;o<a;o++)if(t(n[r=i[o]],r,n))return r};var D,M,L=function(n,t,e){return t in e};p.pick=g(function(n,t){var e={},r=t[0];if(null==n)return e;p.isFunction(r)?(1<t.length&&(r=v(r,t[1])),t=p.allKeys(n)):(r=L,t=j(t,!1,!1),n=Object(n));for(var i=0,o=t.length;i<o;i++){var a=t[i],u=n[a];r(u,a,n)&&(e[a]=u)}return e}),p.omit=g(function(n,e){var t,r=e[0];return p.isFunction(r)?(r=p.negate(r),1<e.length&&(t=e[1])):(e=p.map(j(e,!1,!1),String),r=function(n,t){return!p.contains(e,t)}),p.pick(n,r,t)}),p.defaults=z(p.allKeys,!0),p.create=function(n,t){var e=y(n);return t&&p.extendOwn(e,t),e},p.clone=function(n){return p.isObject(n)?p.isArray(n)?n.slice():p.extend({},n):n},p.tap=function(n,t){return t(n),n},p.isMatch=function(n,t){var e=p.keys(t),r=e.length;if(null==n)return!r;for(var i=Object(n),o=0;o<r;o++){var a=e[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},D=function(n,t,e,r){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return!1;if(n!=n)return t!=t;var i=typeof n;return("function"===i||"object"===i||"object"==typeof t)&&M(n,t,e,r)},M=function(n,t,e,r){n instanceof p&&(n=n._wrapped),t instanceof p&&(t=t._wrapped);var i=d.call(n);if(i!==d.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object Symbol]":return f.valueOf.call(n)===f.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof n||"object"!=typeof t)return!1;var a=n.constructor,u=t.constructor;if(a!==u&&!(p.isFunction(a)&&a instanceof a&&p.isFunction(u)&&u instanceof u)&&"constructor"in n&&"constructor"in t)return!1}r=r||[];for(var s=(e=e||[]).length;s--;)if(e[s]===n)return r[s]===t;if(e.push(n),r.push(t),o){if((s=n.length)!==t.length)return!1;for(;s--;)if(!D(n[s],t[s],e,r))return!1}else{var l,c=p.keys(n);if(s=c.length,p.keys(t).length!==s)return!1;for(;s--;)if(l=c[s],!b(t,l)||!D(n[l],t[l],e,r))return!1}return e.pop(),r.pop(),!0},p.isEqual=function(n,t){return D(n,t)},p.isEmpty=function(n){return null==n||(A(n)&&(p.isArray(n)||p.isString(n)||p.isArguments(n))?0===n.length:0===p.keys(n).length)},p.isElement=function(n){return!(!n||1!==n.nodeType)},p.isArray=e||function(n){return"[object Array]"===d.call(n)},p.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){p["is"+t]=function(n){return d.call(n)==="[object "+t+"]"}}),p.isArguments(arguments)||(p.isArguments=function(n){return b(n,"callee")});var B=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(p.isFunction=function(n){return"function"==typeof n||!1}),p.isFinite=function(n){return!p.isSymbol(n)&&isFinite(n)&&!isNaN(parseFloat(n))},p.isNaN=function(n){return p.isNumber(n)&&isNaN(n)},p.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===d.call(n)},p.isNull=function(n){return null===n},p.isUndefined=function(n){return void 0===n},p.has=function(n,t){if(!p.isArray(t))return b(n,t);for(var e=t.length,r=0;r<e;r++){var i=t[r];if(null==n||!o.call(n,i))return!1;n=n[i]}return!!e},p.noConflict=function(){return n._=t,this},p.identity=function(n){return n},p.constant=function(n){return function(){return n}},p.noop=function(){},p.property=function(t){return p.isArray(t)?function(n){return k(n,t)}:_(t)},p.propertyOf=function(t){return null==t?function(){}:function(n){return p.isArray(n)?k(t,n):t[n]}},p.matcher=p.matches=function(t){return t=p.extendOwn({},t),function(n){return p.isMatch(n,t)}},p.times=function(n,t,e){var r=Array(Math.max(0,n));t=v(t,e,1);for(var i=0;i<n;i++)r[i]=t(i);return r},p.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},p.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=p.invert(H),W=function(t){var e=function(n){return t[n]},n="(?:"+p.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(n){return n=null==n?"":""+n,r.test(n)?n.replace(i,e):n}};p.escape=W(H),p.unescape=W(R),p.result=function(n,t,e){p.isArray(t)||(t=[t]);var r=t.length;if(!r)return p.isFunction(e)?e.call(n):e;for(var i=0;i<r;i++){var o=null==n?void 0:n[t[i]];void 0===o&&(o=e,i=r),n=p.isFunction(o)?o.call(n):o}return n};var $=0;p.uniqueId=function(n){var t=++$+"";return n?n+t:t},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var U=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,K=function(n){return"\\"+V[n]};p.template=function(o,n,t){!n&&t&&(n=t),n=p.defaults({},n,p.templateSettings);var e,r=RegExp([(n.escape||U).source,(n.interpolate||U).source,(n.evaluate||U).source].join("|")+"|$","g"),a=0,u="__p+='";o.replace(r,function(n,t,e,r,i){return u+=o.slice(a,i).replace(q,K),a=i+n.length,t?u+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?u+="'+\n((__t=("+e+"))==null?'':__t)+\n'":r&&(u+="';\n"+r+"\n__p+='"),n}),u+="';\n",n.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{e=new Function(n.variable||"obj","_",u)}catch(n){throw n.source=u,n}var i=function(n){return e.call(this,n,p)},s=n.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},p.chain=function(n){var t=p(n);return t._chain=!0,t};var Q=function(n,t){return n._chain?p(t).chain():t};p.mixin=function(e){return p.each(p.functions(e),function(n){var t=p[n]=e[n];p.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),Q(this,t.apply(p,n))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];p.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],Q(this,n)}}),p.each(["concat","join","slice"],function(n){var t=r[n];p.prototype[n]=function(){return Q(this,t.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(n,t){var e=n||1,r=i.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},t);return this.each(function(){var n=i(this),t=function(){n.css("font-size",Math.max(Math.min(n.width()/(10*e),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};t(),i(window).on("resize.fittext orientationchange.fittext",t)})}}(jQuery),function(l,c){var e="nimbleLazyLoad",r={load_all_images_on_first_scroll:!1,excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},i="smartload-skip";function t(n,t){this.element=n,this.options=l.extend({},r,t),_utils_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+i):this.options.excludeImg=["."+i],this._defaults=r,this._name=e,this.init()}t.prototype.init=function(){var t=this,e=l("[data-sek-src]:not("+this.options.excludeImg.join()+"), [data-sek-iframe-src]",this.element);this.increment=1,this.timer=0,e.addClass(i).bind("sek_load_img",{},function(){t._load_img(this)}).bind("sek_load_iframe",{},function(){t._load_iframe(this)}),l(c).scroll(function(n){t._better_scroll_event_handler(e,n)}),l(c).resize(_utils_.debounce(function(n){t._maybe_trigger_load(e,n)},100)),this._maybe_trigger_load(e)},t.prototype._better_scroll_event_handler=function(n,t){var e=this;this.doingAnimation||(this.doingAnimation=!0,c.requestAnimationFrame(function(){e._maybe_trigger_load(n,t),e.doingAnimation=!1}))},t.prototype._maybe_trigger_load=function(n,e){var r=this;n.filter(function(n,t){return r._is_visible(t,e)}).map(function(n,t){"IFRAME"===l(t).prop("tagName")?l(t).trigger("sek_load_iframe"):l(t).trigger("sek_load_img")})},t.prototype._is_visible=function(n,t){var r=function(n){if(0<n.length&&n.is(":visible"))return n;var t=n.prev();if(0<t.length&&t.is(":visible"))return t;if(0<t.length&&!t.is(":visible"))return r(t);var e=n.parent();return 0<e.length?r(e):null},e=r(l(n));if(!e||e.length<1)return!1;var i=l(c).scrollTop(),o=i+l(c).height(),a=e.offset().top,u=a+e.height(),s=this.options.threshold;return!(!t||"scroll"!=t.type||!this.options.load_all_images_on_first_scroll)||i-s<=u&&a<=o+s},t.prototype._load_img=function(n){var t=l(n),e=t.attr("data-sek-src"),r=t.attr("data-sek-srcset"),i=t.attr("data-sek-sizes"),o=l("<img />",{src:e});t.addClass("lazy-loading"),t.unbind("sek_load_img"),o.load(function(){t.removeAttr(["data-sek-src","data-sek-srcset","data-sek-sizes"].join(" ")),t.data("sek-lazy-bg")?t.css("backgroundImage","url("+e+")"):(t.attr("src",e),r&&t.attr("srcset",r),i&&t.attr("sizes",i)),t.hasClass("sek-lazy-loaded")||t.addClass("sek-lazy-loaded"),t.trigger("smartload"),t.data("sek-lazy-loaded",!0)}),o[0].complete&&o.load(),t.removeClass("lazy-loading")},t.prototype._load_iframe=function(n){var t=l(n);t.unbind("sek_load_iframe"),t.attr("src",function(){var n=l(this).attr("data-sek-iframe-src");return l(this).removeAttr("data-sek-iframe-src"),t.data("sek-lazy-loaded",!0),t.trigger("smartload"),t.hasClass("sek-lazy-loaded")||t.addClass("sek-lazy-loaded"),n})},l.fn[e]=function(n){return this.each(function(){l.data(this,"plugin_"+e)||l.data(this,"plugin_"+e,new t(this,n))})}}(jQuery,window),function(e,u){var r="parallaxBg",i={parallaxForce:40,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function t(n,t){this.element=e(n),this.options=e.extend({},i,t,this.parseElementDataOptions()),this._defaults=i,this._name=r,this.init()}t.prototype.parseElementDataOptions=function(){return this.element.data()},t.prototype.init=function(){var t=this;this.$_window=e(u),this.doingAnimation=!1,this.isVisible=!1,this.isBefore=!1,this.isAfter=!0,("number"!=typeof t.options.parallaxForce||t.options.parallaxForce<0)&&(sekFrontLocalized.isDevMode&&console.log("parallaxBg => the provided parallaxForce is invalid => "+t.options.parallaxForce),t.options.parallaxForce=this._defaults.parallaxForce),100<t.options.parallaxForce&&(t.options.parallaxForce=100),this.$_window.scroll(function(n){t.maybeParallaxMe(n)}),this.$_window.resize(_utils_.debounce(function(n){t.maybeParallaxMe(n)},100)),this.checkIfIsVisibleAndCacheProperties(),this.setTopPositionAndBackgroundSize()},t.prototype.setTopPositionAndBackgroundSize=function(){if(_utils_.isFunction(u.matchMedia)&&matchMedia(this.options.matchMedia).matches)this.element.css({"background-position-y":"","background-attachment":""});else{var n=this.element,t=(n.outerHeight(),this.$_window.height()),e=n.offset().top,r=this.$_window.scrollTop(),i=100;this.isVisible?i=(e-r)/t:this.isBefore?i=1:this.isAfter&&(i=-1);var o=0<this.options.parallaxForce?t*(100-this.options.parallaxForce)/100:t,a=Math.round(i*o);this.element.css({"background-position-y":["calc(50% ",0<a?"+ ":"- ",Math.abs(a)+"px)"].join("")})}},t.prototype.checkIfIsVisibleAndCacheProperties=function(n){var t=this.element;if(!t.is(":visible"))return!1;var e=this.$_window.scrollTop(),r=e+this.$_window.height(),i=t.offset().top,o=i+t.outerHeight();return this.isVisible=e<=o&&i<=r,this.isBefore=r<i,this.isAfter=o<e,this.isVisible},t.prototype.maybeParallaxMe=function(n){var t=this;this.checkIfIsVisibleAndCacheProperties()&&(this.doingAnimation||(this.doingAnimation=!0,u.requestAnimationFrame(function(){t.setTopPositionAndBackgroundSize(),t.doingAnimation=!1})))},e.fn[r]=function(n){return this.each(function(){e.data(this,"plugin_"+r)||e.data(this,"plugin_"+r,new t(this,n))})}}(jQuery,window),jQuery(function(n){n('[data-sek-module-type="czr_image_module"]').each(function(){if($linkCandidate=n(this).find(".sek-link-to-img-lightbox"),!($linkCandidate.length<1||"string"!=typeof $linkCandidate[0].protocol||-1!==$linkCandidate[0].protocol.indexOf("javascript"))&&"function"==typeof n.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(n){"function"==typeof window.console.log&&console.log(n)}})}),jQuery(function(n){n(".sektion-wrapper").each(function(){try{n(this).nimbleLazyLoad()}catch(n){"function"==typeof window.console.log&&console.log(n)}})}),jQuery(function(t){t('[data-sek-bg-parallax="true"]').each(function(){t(this).parallaxBg({parallaxForce:t(this).data("sek-parallax-force")})});var e=function(){t(this).parallaxBg({parallaxForce:t(this).data("sek-parallax-force")}),setTimeout(function(){t("body").trigger("resize")},500)};t("body").on("sek-level-refreshed sek-section-added",function(n){"true"===t(this).data("sek-bg-parallax")?e.call(this):t(this).find('[data-sek-bg-parallax="true"]').each(function(){e.call(this)})})}),jQuery(function(o){var a=function(n){var t=document.createElement("a");t.href=n,t.href=t.href;for(var e=["host","hostname","hash","href","port","protocol","search"],r=0,i=e.length;r<i;r++)this[e[r]]=t[e[r]];this.pathname=("/"!==t.pathname.charAt(0)?"/":"")+t.pathname},u=o("html, body");o("body").find(".menu-item").on("click","a",function(n){var t=o(this).attr("href");if(""!==t&&null!==t&&"string"==typeof t&&-1!==t.indexOf("#")){var e=new a(t),r=new a(window.document.location.href);if(e.pathname===r.pathname&&"string"==typeof e.hash&&""!==e.hash){var i=o('[data-sek-level="location"]').find('[id="'+e.hash.replace("#","")+'"]');1===i.length&&(n.preventDefault(),u.animate({scrollTop:i.offset().top-150},400))}}})}),jQuery(function(p){var n,o,a,u,s,l;!function(){var l="sek.sekDropdown",n="."+l,e={PLACE_ME:"placeme"+n,PLACE_ALL:"placeall"+n,SHOWN:"shown"+n,SHOW:"show"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,CLICK:"click"+n,TAP:"tap"+n},c="sek-dropdown-menu",t="sek-dropdown-submenu",r="show",i="menu-item-has-children",o='[data-toggle="sek-dropdown"]',a=".sek-nav-wrap .menu-item-has-children",u=".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(t);var s,f,d;s=a,p(document).on("mouseenter",s,function(){var t=p(this);_utils_.debounce(function(){if("static"==t.find("."+c).css("position"))return!1;if(!t.hasClass(r)){t.trigger(e.SHOW).addClass(r).trigger(e.SHOWN);var n=t.children(o);n.length&&n[0].setAttribute("aria-expanded","true")}},30)()}).on("mouseleave",s,function(){var t=p(this);_utils_.debounce(function(){if(t.find("ul li:hover").length<1&&!t.closest("ul").find("li:hover").is(t)){t.trigger(e.HIDE).removeClass(r).trigger(e.HIDDEN);var n=t.children(o);n.length&&n[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(u+"."+r).trigger(e.PLACE_ME),d=!1}))}),p(document).on(e.PLACE_ALL,function(){p(u).trigger(e.PLACE_ME)}).on(e.SHOWN+" "+e.PLACE_ME,u,function(n){n.stopPropagation(),function(n,t){if(t&&t.namespace&&l===t.namespace){var e,r,i,o,a,u,s=n.children("."+c);s.length&&(n.css("overflow","hidden"),s.css({zIndex:"-100",display:"block"}),r=n,i=f?{_DEFAULT:"left",_OPPOSITE:"right"}:{_DEFAULT:"right",_OPPOSITE:"left"},o={OPEN_PREFIX:"open-",DD_SUBMENU:"sek-dropdown-submenu",CARET_TITLE_FLIP:"sek-menu-link__row-reverse",DROPDOWN:"sek-dropdown-menu"},a=function(n,e,t){p.each(n,function(){var n=p(this),t=n.find("a").first();1==t.length&&t.toggleClass(o.CARET_TITLE_FLIP,e==i._OPPOSITE)})},u=function(n){var t=n==i._OPPOSITE?i._DEFAULT:i._OPPOSITE;e.removeClass(o.OPEN_PREFIX+t).addClass(o.OPEN_PREFIX+n),r.hasClass(o.DD_SUBMENU)&&(a(r,n,t),a(e.children("."+o.DD_SUBMENU),n,t))},(e=s).parent().closest("."+o.DROPDOWN).hasClass(o.OPEN_PREFIX+i._OPPOSITE)?u(i._OPPOSITE):u(i._DEFAULT),e.offset().left+e.width()>p(window).width()?u("left"):e.offset().left<0&&u("right"),s.css({zIndex:"",display:""}),n.css("overflow",""))}}(p(this),n)})}(),o={SHOW:"show"+(n=".sek.sekCollapse"),SHOWN:"shown"+n,HIDE:"hide"+n,HIDDEN:"hidden"+n,CLICK_DATA_API:"click"+n+".data-api"},a="show",u="sek-collapse",s="sek-collapsing",l="sek-collapsed",p(document).on(o.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=p(this),e=t.data("target");p(e).each(function(){var r=p(this),i=r.hasClass(a);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(s).trigger(i?o.HIDE:o.SHOW),i?t.addClass(l).attr("aria-expanded","false"):t.removeClass(l).attr("aria-expanded","true")},complete:function(){var n,t,e;i?(n=a,t=u,e=o.HIDDEN):(n=u,t=a,e=o.SHOWN),r.removeClass(s+" "+n).addClass(t).trigger(e),function(n){(n=n||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 t=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 n=p(this).closest('[data-sek-module-type="czr_menu_module"]').clone(!0),t=p(".sek-nav-collapse",this).attr("id")+"-mobile";n.appendTo(p(this).closest(".sek-sektion-inner")).wrap('<div class="sek-col-base sek-mobile-menu-expanded-below" id="'+t+'-wrapper"></div>'),p(".sek-nav-collapse","#"+t+"-wrapper").attr("id",t),p(".sek-nav-toggler","#"+t+"-wrapper").detach(),p(".sek-nav-toggler",this).data("target","#"+t).attr("aria-controls",t),p(this).data("sek-setup-menu-mobile-expanded-below-done",!0)}})};t(),p("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",function(n){p(".sek-mobile-menu-expanded-below").remove(),t()})})});
|
1 |
+
!function(){var n="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},t=n._,r=Array.prototype,a=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,s=r.slice,d=a.toString,o=a.hasOwnProperty,e=Array.isArray,u=Object.keys,l=Object.create,c=function(){},p=function(n){return n instanceof p?n:this instanceof p?void(this._wrapped=n):new p(n)};"undefined"==typeof exports||exports.nodeType?n._utils_=p:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=p),exports._utils_=p),p.VERSION="1.9.1";var h,v=function(i,o,n){if(void 0===o)return i;switch(null==n?3:n){case 1:return function(n){return i.call(o,n)};case 3:return function(n,t,e){return i.call(o,n,t,e)};case 4:return function(n,t,e,r){return i.call(o,n,t,e,r)}}return function(){return i.apply(o,arguments)}},m=function(n,t,e){return p.iteratee!==h?p.iteratee(n,t):null==n?p.identity:p.isFunction(n)?v(n,t,e):p.isObject(n)&&!p.isArray(n)?p.matcher(n):p.property(n)};p.iteratee=h=function(n,t){return m(n,t,1/0)};var g=function(i,o){return o=null==o?i.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),e=0;e<n;e++)t[e]=arguments[e+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var r=Array(o+1);for(e=0;e<o;e++)r[e]=arguments[e];return r[o]=t,i.apply(this,r)}},y=function(n){if(!p.isObject(n))return{};if(l)return l(n);c.prototype=n;var t=new c;return c.prototype=null,t},_=function(t){return function(n){return null==n?void 0:n[t]}},b=function(n,t){return null!=n&&o.call(n,t)},k=function(n,t){for(var e=t.length,r=0;r<e;r++){if(null==n)return;n=n[t[r]]}return e?n:void 0},w=Math.pow(2,53)-1,x=_("length"),A=function(n){var t=x(n);return"number"==typeof t&&0<=t&&t<=w};p.each=p.forEach=function(n,t,e){var r,i;if(t=v(t,e),A(n))for(r=0,i=n.length;r<i;r++)t(n[r],r,n);else{var o=p.keys(n);for(r=0,i=o.length;r<i;r++)t(n[o[r]],o[r],n)}return n},p.map=p.collect=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=t(n[u],u,n)}return o};var E=function(s){return function(n,t,e,r){var i=3<=arguments.length;return function(n,t,e,r){var i=!A(n)&&p.keys(n),o=(i||n).length,a=0<s?0:o-1;for(r||(e=n[i?i[a]:a],a+=s);0<=a&&a<o;a+=s){var u=i?i[a]:a;e=t(e,n[u],u,n)}return e}(n,v(t,r,4),e,i)}};p.reduce=p.foldl=p.inject=E(1),p.reduceRight=p.foldr=E(-1),p.find=p.detect=function(n,t,e){var r=(A(n)?p.findIndex:p.findKey)(n,t,e);if(void 0!==r&&-1!==r)return n[r]},p.filter=p.select=function(n,r,t){var i=[];return r=m(r,t),p.each(n,function(n,t,e){r(n,t,e)&&i.push(n)}),i},p.reject=function(n,t,e){return p.filter(n,p.negate(m(t)),e)},p.every=p.all=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(n[a],a,n))return!1}return!0},p.some=p.any=function(n,t,e){t=m(t,e);for(var r=!A(n)&&p.keys(n),i=(r||n).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(n[a],a,n))return!0}return!1},p.contains=p.includes=p.include=function(n,t,e,r){return A(n)||(n=p.values(n)),("number"!=typeof e||r)&&(e=0),0<=p.indexOf(n,t,e)},p.invoke=g(function(n,e,r){var i,o;return p.isFunction(e)?o=e:p.isArray(e)&&(i=e.slice(0,-1),e=e[e.length-1]),p.map(n,function(n){var t=o;if(!t){if(i&&i.length&&(n=k(n,i)),null==n)return;t=n[e]}return null==t?t:t.apply(n,r)})}),p.pluck=function(n,t){return p.map(n,p.property(t))},p.where=function(n,t){return p.filter(n,p.matcher(t))},p.findWhere=function(n,t){return p.find(n,p.matcher(t))},p.max=function(n,r,t){var e,i,o=-1/0,a=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var u=0,s=(n=A(n)?n:p.values(n)).length;u<s;u++)null!=(e=n[u])&&o<e&&(o=e);else r=m(r,t),p.each(n,function(n,t,e){i=r(n,t,e),(a<i||i===-1/0&&o===-1/0)&&(o=n,a=i)});return o},p.min=function(n,r,t){var e,i,o=1/0,a=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var u=0,s=(n=A(n)?n:p.values(n)).length;u<s;u++)null!=(e=n[u])&&e<o&&(o=e);else r=m(r,t),p.each(n,function(n,t,e){((i=r(n,t,e))<a||i===1/0&&o===1/0)&&(o=n,a=i)});return o},p.shuffle=function(n){return p.sample(n,1/0)},p.sample=function(n,t,e){if(null==t||e)return A(n)||(n=p.values(n)),n[p.random(n.length-1)];var r=A(n)?p.clone(n):p.values(n),i=x(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=p.random(a,o),s=r[a];r[a]=r[u],r[u]=s}return r.slice(0,t)},p.sortBy=function(n,r,t){var i=0;return r=m(r,t),p.pluck(p.map(n,function(n,t,e){return{value:n,index:i++,criteria:r(n,t,e)}}).sort(function(n,t){var e=n.criteria,r=t.criteria;if(e!==r){if(r<e||void 0===e)return 1;if(e<r||void 0===r)return-1}return n.index-t.index}),"value")};var I=function(a,t){return function(r,i,n){var o=t?[[],[]]:{};return i=m(i,n),p.each(r,function(n,t){var e=i(n,t,r);a(o,n,e)}),o}};p.groupBy=I(function(n,t,e){b(n,e)?n[e].push(t):n[e]=[t]}),p.indexBy=I(function(n,t,e){n[e]=t}),p.countBy=I(function(n,t,e){b(n,e)?n[e]++:n[e]=1});var O=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;p.toArray=function(n){return n?p.isArray(n)?s.call(n):p.isString(n)?n.match(O):A(n)?p.map(n,p.identity):p.values(n):[]},p.size=function(n){return null==n?0:A(n)?n.length:p.keys(n).length},p.partition=I(function(n,t,e){n[e?0:1].push(t)},!0),p.first=p.head=p.take=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[0]:p.initial(n,n.length-t)},p.initial=function(n,t,e){return s.call(n,0,Math.max(0,n.length-(null==t||e?1:t)))},p.last=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[n.length-1]:p.rest(n,Math.max(0,n.length-t))},p.rest=p.tail=p.drop=function(n,t,e){return s.call(n,null==t||e?1:t)},p.compact=function(n){return p.filter(n,Boolean)};var j=function(n,t,e,r){for(var i=(r=r||[]).length,o=0,a=x(n);o<a;o++){var u=n[o];if(A(u)&&(p.isArray(u)||p.isArguments(u)))if(t)for(var s=0,l=u.length;s<l;)r[i++]=u[s++];else j(u,t,e,r),i=r.length;else e||(r[i++]=u)}return r};p.flatten=function(n,t){return j(n,t,!1)},p.without=g(function(n,t){return p.difference(n,t)}),p.uniq=p.unique=function(n,t,e,r){p.isBoolean(t)||(r=e,e=t,t=!1),null!=e&&(e=m(e,r));for(var i=[],o=[],a=0,u=x(n);a<u;a++){var s=n[a],l=e?e(s,a,n):s;t&&!e?(a&&o===l||i.push(s),o=l):e?p.contains(o,l)||(o.push(l),i.push(s)):p.contains(i,s)||i.push(s)}return i},p.union=g(function(n){return p.uniq(j(n,!0,!0))}),p.intersection=function(n){for(var t=[],e=arguments.length,r=0,i=x(n);r<i;r++){var o=n[r];if(!p.contains(t,o)){var a;for(a=1;a<e&&p.contains(arguments[a],o);a++);a===e&&t.push(o)}}return t},p.difference=g(function(n,t){return t=j(t,!0,!0),p.filter(n,function(n){return!p.contains(t,n)})}),p.unzip=function(n){for(var t=n&&p.max(n,x).length||0,e=Array(t),r=0;r<t;r++)e[r]=p.pluck(n,r);return e},p.zip=g(p.unzip),p.object=function(n,t){for(var e={},r=0,i=x(n);r<i;r++)t?e[n[r]]=t[r]:e[n[r][0]]=n[r][1];return e};var C=function(o){return function(n,t,e){t=m(t,e);for(var r=x(n),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(n[i],i,n))return i;return-1}};p.findIndex=C(1),p.findLastIndex=C(-1),p.sortedIndex=function(n,t,e,r){for(var i=(e=m(e,r,1))(t),o=0,a=x(n);o<a;){var u=Math.floor((o+a)/2);e(n[u])<i?o=u+1:a=u}return o};var F=function(o,a,u){return function(n,t,e){var r=0,i=x(n);if("number"==typeof e)0<o?r=0<=e?e:Math.max(e+i,r):i=0<=e?Math.min(e+1,i):e+i+1;else if(u&&e&&i)return n[e=u(n,t)]===t?e:-1;if(t!=t)return 0<=(e=a(s.call(n,r,i),p.isNaN))?e+r:-1;for(e=0<o?r:i-1;0<=e&&e<i;e+=o)if(n[e]===t)return e;return-1}};p.indexOf=F(1,p.findIndex,p.sortedIndex),p.lastIndexOf=F(-1,p.findLastIndex),p.range=function(n,t,e){null==t&&(t=n||0,n=0),e||(e=t<n?-1:1);for(var r=Math.max(Math.ceil((t-n)/e),0),i=Array(r),o=0;o<r;o++,n+=e)i[o]=n;return i},p.chunk=function(n,t){if(null==t||t<1)return[];for(var e=[],r=0,i=n.length;r<i;)e.push(s.call(n,r,r+=t));return e};var S=function(n,t,e,r,i){if(!(r instanceof t))return n.apply(e,i);var o=y(n.prototype),a=n.apply(o,i);return p.isObject(a)?a:o};p.bind=g(function(t,e,r){if(!p.isFunction(t))throw new TypeError("Bind must be called on a function");var i=g(function(n){return S(t,i,e,this,r.concat(n))});return i}),p.partial=g(function(i,o){var a=p.partial.placeholder,u=function(){for(var n=0,t=o.length,e=Array(t),r=0;r<t;r++)e[r]=o[r]===a?arguments[n++]:o[r];for(;n<arguments.length;)e.push(arguments[n++]);return S(i,u,this,this,e)};return u}),(p.partial.placeholder=p).bindAll=g(function(n,t){var e=(t=j(t,!1,!1)).length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var r=t[e];n[r]=p.bind(n[r],n)}}),p.memoize=function(r,i){var o=function(n){var t=o.cache,e=""+(i?i.apply(this,arguments):n);return b(t,e)||(t[e]=r.apply(this,arguments)),t[e]};return o.cache={},o},p.delay=g(function(n,t,e){return setTimeout(function(){return n.apply(null,e)},t)}),p.defer=p.partial(p.delay,p,1),p.throttle=function(e,r,i){var o,a,u,s,l=0;i||(i={});var c=function(){l=!1===i.leading?0:p.now(),o=null,s=e.apply(a,u),o||(a=u=null)},n=function(){var n=p.now();l||!1!==i.leading||(l=n);var t=r-(n-l);return a=this,u=arguments,t<=0||r<t?(o&&(clearTimeout(o),o=null),l=n,s=e.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(c,t)),s};return n.cancel=function(){clearTimeout(o),l=0,o=a=u=null},n},p.debounce=function(e,r,i){var o,a,u=function(n,t){o=null,t&&(a=e.apply(n,t))},n=g(function(n){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(u,r),t&&(a=e.apply(this,n))}else o=p.delay(u,r,this,n);return a});return n.cancel=function(){clearTimeout(o),o=null},n},p.wrap=function(n,t){return p.partial(t,n)},p.negate=function(n){return function(){return!n.apply(this,arguments)}},p.compose=function(){var e=arguments,r=e.length-1;return function(){for(var n=r,t=e[r].apply(this,arguments);n--;)t=e[n].call(this,t);return t}},p.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},p.before=function(n,t){var e;return function(){return 0<--n&&(e=t.apply(this,arguments)),n<=1&&(t=null),e}},p.once=p.partial(p.before,2),p.restArguments=g;var P=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(n,t){var e=T.length,r=n.constructor,i=p.isFunction(r)&&r.prototype||a,o="constructor";for(b(n,o)&&!p.contains(t,o)&&t.push(o);e--;)(o=T[e])in n&&n[o]!==i[o]&&!p.contains(t,o)&&t.push(o)};p.keys=function(n){if(!p.isObject(n))return[];if(u)return u(n);var t=[];for(var e in n)b(n,e)&&t.push(e);return P&&N(n,t),t},p.allKeys=function(n){if(!p.isObject(n))return[];var t=[];for(var e in n)t.push(e);return P&&N(n,t),t},p.values=function(n){for(var t=p.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=n[t[i]];return r},p.mapObject=function(n,t,e){t=m(t,e);for(var r=p.keys(n),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(n[u],u,n)}return o},p.pairs=function(n){for(var t=p.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=[t[i],n[t[i]]];return r},p.invert=function(n){for(var t={},e=p.keys(n),r=0,i=e.length;r<i;r++)t[n[e[r]]]=e[r];return t},p.functions=p.methods=function(n){var t=[];for(var e in n)p.isFunction(n[e])&&t.push(e);return t.sort()};var z=function(s,l){return function(n){var t=arguments.length;if(l&&(n=Object(n)),t<2||null==n)return n;for(var e=1;e<t;e++)for(var r=arguments[e],i=s(r),o=i.length,a=0;a<o;a++){var u=i[a];l&&void 0!==n[u]||(n[u]=r[u])}return n}};p.extend=z(p.allKeys),p.extendOwn=p.assign=z(p.keys),p.findKey=function(n,t,e){t=m(t,e);for(var r,i=p.keys(n),o=0,a=i.length;o<a;o++)if(t(n[r=i[o]],r,n))return r};var D,M,L=function(n,t,e){return t in e};p.pick=g(function(n,t){var e={},r=t[0];if(null==n)return e;p.isFunction(r)?(1<t.length&&(r=v(r,t[1])),t=p.allKeys(n)):(r=L,t=j(t,!1,!1),n=Object(n));for(var i=0,o=t.length;i<o;i++){var a=t[i],u=n[a];r(u,a,n)&&(e[a]=u)}return e}),p.omit=g(function(n,e){var t,r=e[0];return p.isFunction(r)?(r=p.negate(r),1<e.length&&(t=e[1])):(e=p.map(j(e,!1,!1),String),r=function(n,t){return!p.contains(e,t)}),p.pick(n,r,t)}),p.defaults=z(p.allKeys,!0),p.create=function(n,t){var e=y(n);return t&&p.extendOwn(e,t),e},p.clone=function(n){return p.isObject(n)?p.isArray(n)?n.slice():p.extend({},n):n},p.tap=function(n,t){return t(n),n},p.isMatch=function(n,t){var e=p.keys(t),r=e.length;if(null==n)return!r;for(var i=Object(n),o=0;o<r;o++){var a=e[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},D=function(n,t,e,r){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return!1;if(n!=n)return t!=t;var i=typeof n;return("function"===i||"object"===i||"object"==typeof t)&&M(n,t,e,r)},M=function(n,t,e,r){n instanceof p&&(n=n._wrapped),t instanceof p&&(t=t._wrapped);var i=d.call(n);if(i!==d.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object Symbol]":return f.valueOf.call(n)===f.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof n||"object"!=typeof t)return!1;var a=n.constructor,u=t.constructor;if(a!==u&&!(p.isFunction(a)&&a instanceof a&&p.isFunction(u)&&u instanceof u)&&"constructor"in n&&"constructor"in t)return!1}r=r||[];for(var s=(e=e||[]).length;s--;)if(e[s]===n)return r[s]===t;if(e.push(n),r.push(t),o){if((s=n.length)!==t.length)return!1;for(;s--;)if(!D(n[s],t[s],e,r))return!1}else{var l,c=p.keys(n);if(s=c.length,p.keys(t).length!==s)return!1;for(;s--;)if(l=c[s],!b(t,l)||!D(n[l],t[l],e,r))return!1}return e.pop(),r.pop(),!0},p.isEqual=function(n,t){return D(n,t)},p.isEmpty=function(n){return null==n||(A(n)&&(p.isArray(n)||p.isString(n)||p.isArguments(n))?0===n.length:0===p.keys(n).length)},p.isElement=function(n){return!(!n||1!==n.nodeType)},p.isArray=e||function(n){return"[object Array]"===d.call(n)},p.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},p.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){p["is"+t]=function(n){return d.call(n)==="[object "+t+"]"}}),p.isArguments(arguments)||(p.isArguments=function(n){return b(n,"callee")});var B=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(p.isFunction=function(n){return"function"==typeof n||!1}),p.isFinite=function(n){return!p.isSymbol(n)&&isFinite(n)&&!isNaN(parseFloat(n))},p.isNaN=function(n){return p.isNumber(n)&&isNaN(n)},p.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===d.call(n)},p.isNull=function(n){return null===n},p.isUndefined=function(n){return void 0===n},p.has=function(n,t){if(!p.isArray(t))return b(n,t);for(var e=t.length,r=0;r<e;r++){var i=t[r];if(null==n||!o.call(n,i))return!1;n=n[i]}return!!e},p.noConflict=function(){return n._=t,this},p.identity=function(n){return n},p.constant=function(n){return function(){return n}},p.noop=function(){},p.property=function(t){return p.isArray(t)?function(n){return k(n,t)}:_(t)},p.propertyOf=function(t){return null==t?function(){}:function(n){return p.isArray(n)?k(t,n):t[n]}},p.matcher=p.matches=function(t){return t=p.extendOwn({},t),function(n){return p.isMatch(n,t)}},p.times=function(n,t,e){var r=Array(Math.max(0,n));t=v(t,e,1);for(var i=0;i<n;i++)r[i]=t(i);return r},p.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},p.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=p.invert(H),W=function(t){var e=function(n){return t[n]},n="(?:"+p.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(n){return n=null==n?"":""+n,r.test(n)?n.replace(i,e):n}};p.escape=W(H),p.unescape=W(R),p.result=function(n,t,e){p.isArray(t)||(t=[t]);var r=t.length;if(!r)return p.isFunction(e)?e.call(n):e;for(var i=0;i<r;i++){var o=null==n?void 0:n[t[i]];void 0===o&&(o=e,i=r),n=p.isFunction(o)?o.call(n):o}return n};var $=0;p.uniqueId=function(n){var t=++$+"";return n?n+t:t},p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var U=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,K=function(n){return"\\"+V[n]};p.template=function(o,n,t){!n&&t&&(n=t),n=p.defaults({},n,p.templateSettings);var e,r=RegExp([(n.escape||U).source,(n.interpolate||U).source,(n.evaluate||U).source].join("|")+"|$","g"),a=0,u="__p+='";o.replace(r,function(n,t,e,r,i){return u+=o.slice(a,i).replace(q,K),a=i+n.length,t?u+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?u+="'+\n((__t=("+e+"))==null?'':__t)+\n'":r&&(u+="';\n"+r+"\n__p+='"),n}),u+="';\n",n.variable||(u="with(obj||{}){\n"+u+"}\n"),u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{e=new Function(n.variable||"obj","_",u)}catch(n){throw n.source=u,n}var i=function(n){return e.call(this,n,p)},s=n.variable||"obj";return i.source="function("+s+"){\n"+u+"}",i},p.chain=function(n){var t=p(n);return t._chain=!0,t};var Q=function(n,t){return n._chain?p(t).chain():t};p.mixin=function(e){return p.each(p.functions(e),function(n){var t=p[n]=e[n];p.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),Q(this,t.apply(p,n))}}),p},p.mixin(p),p.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];p.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],Q(this,n)}}),p.each(["concat","join","slice"],function(n){var t=r[n];p.prototype[n]=function(){return Q(this,t.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(n,t){var e=n||1,r=i.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},t);return this.each(function(){var n=i(this),t=function(){n.css("font-size",Math.max(Math.min(n.width()/(10*e),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};t(),i(window).on("resize.fittext orientationchange.fittext",t)})}}(jQuery),function(l,c){var e="nimbleLazyLoad",r={load_all_images_on_first_scroll:!1,excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},i="smartload-skip";function t(n,t){this.element=n,this.options=l.extend({},r,t),_utils_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+i):this.options.excludeImg=["."+i],this._defaults=r,this._name=e,this.init()}t.prototype.init=function(){var t=this,e=l("[data-sek-src]:not("+this.options.excludeImg.join()+"), [data-sek-iframe-src]",this.element);this.increment=1,this.timer=0,e.addClass(i).bind("sek_load_img",{},function(){t._load_img(this)}).bind("sek_load_iframe",{},function(){t._load_iframe(this)}),l(c).scroll(function(n){t._better_scroll_event_handler(e,n)}),l(c).resize(_utils_.debounce(function(n){t._maybe_trigger_load(e,n)},100)),this._maybe_trigger_load(e)},t.prototype._better_scroll_event_handler=function(n,t){var e=this;this.doingAnimation||(this.doingAnimation=!0,c.requestAnimationFrame(function(){e._maybe_trigger_load(n,t),e.doingAnimation=!1}))},t.prototype._maybe_trigger_load=function(n,e){var r=this;n.filter(function(n,t){return r._is_visible(t,e)}).map(function(n,t){"IFRAME"===l(t).prop("tagName")?l(t).trigger("sek_load_iframe"):l(t).trigger("sek_load_img")})},t.prototype._is_visible=function(n,t){var r=function(n){if(0<n.length&&n.is(":visible"))return n;var t=n.prev();if(0<t.length&&t.is(":visible"))return t;if(0<t.length&&!t.is(":visible"))return r(t);var e=n.parent();return 0<e.length?r(e):null},e=r(l(n));if(!e||e.length<1)return!1;var i=l(c).scrollTop(),o=i+l(c).height(),a=e.offset().top,u=a+e.height(),s=this.options.threshold;return!(!t||"scroll"!=t.type||!this.options.load_all_images_on_first_scroll)||i-s<=u&&a<=o+s},t.prototype._load_img=function(n){var t=l(n),e=t.attr("data-sek-src"),r=t.attr("data-sek-srcset"),i=t.attr("data-sek-sizes"),o=l("<img />",{src:e});t.addClass("lazy-loading"),t.unbind("sek_load_img"),o.load(function(){t.removeAttr(["data-sek-src","data-sek-srcset","data-sek-sizes"].join(" ")),t.data("sek-lazy-bg")?t.css("backgroundImage","url("+e+")"):(t.attr("src",e),r&&t.attr("srcset",r),i&&t.attr("sizes",i)),t.hasClass("sek-lazy-loaded")||t.addClass("sek-lazy-loaded"),t.trigger("smartload"),t.data("sek-lazy-loaded",!0)}),o[0].complete&&o.load(),t.removeClass("lazy-loading")},t.prototype._load_iframe=function(n){var t=l(n);t.unbind("sek_load_iframe"),t.attr("src",function(){var n=l(this).attr("data-sek-iframe-src");return l(this).removeAttr("data-sek-iframe-src"),t.data("sek-lazy-loaded",!0),t.trigger("smartload"),t.hasClass("sek-lazy-loaded")||t.addClass("sek-lazy-loaded"),n})},l.fn[e]=function(n){return this.each(function(){l.data(this,"plugin_"+e)||l.data(this,"plugin_"+e,new t(this,n))})}}(jQuery,window),function(e,u){var r="parallaxBg",i={parallaxForce:40,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function t(n,t){this.element=e(n),this.options=e.extend({},i,t,this.parseElementDataOptions()),this._defaults=i,this._name=r,this.init()}t.prototype.parseElementDataOptions=function(){return this.element.data()},t.prototype.init=function(){var t=this;this.$_window=e(u),this.doingAnimation=!1,this.isVisible=!1,this.isBefore=!1,this.isAfter=!0,("number"!=typeof t.options.parallaxForce||t.options.parallaxForce<0)&&(sekFrontLocalized.isDevMode&&console.log("parallaxBg => the provided parallaxForce is invalid => "+t.options.parallaxForce),t.options.parallaxForce=this._defaults.parallaxForce),100<t.options.parallaxForce&&(t.options.parallaxForce=100),this.$_window.scroll(function(n){t.maybeParallaxMe(n)}),this.$_window.resize(_utils_.debounce(function(n){t.maybeParallaxMe(n)},100)),this.checkIfIsVisibleAndCacheProperties(),this.setTopPositionAndBackgroundSize()},t.prototype.setTopPositionAndBackgroundSize=function(){if(_utils_.isFunction(u.matchMedia)&&matchMedia(this.options.matchMedia).matches)this.element.css({"background-position-y":"","background-attachment":""});else{var n=this.element,t=(n.outerHeight(),this.$_window.height()),e=n.offset().top,r=this.$_window.scrollTop(),i=100;this.isVisible?i=(e-r)/t:this.isBefore?i=1:this.isAfter&&(i=-1);var o=0<this.options.parallaxForce?t*(100-this.options.parallaxForce)/100:t,a=Math.round(i*o);this.element.css({"background-position-y":["calc(50% ",0<a?"+ ":"- ",Math.abs(a)+"px)"].join("")})}},t.prototype.checkIfIsVisibleAndCacheProperties=function(n){var t=this.element;if(!t.is(":visible"))return!1;var e=this.$_window.scrollTop(),r=e+this.$_window.height(),i=t.offset().top,o=i+t.outerHeight();return this.isVisible=e<=o&&i<=r,this.isBefore=r<i,this.isAfter=o<e,this.isVisible},t.prototype.maybeParallaxMe=function(n){var t=this;this.checkIfIsVisibleAndCacheProperties()&&(this.doingAnimation||(this.doingAnimation=!0,u.requestAnimationFrame(function(){t.setTopPositionAndBackgroundSize(),t.doingAnimation=!1})))},e.fn[r]=function(n){return this.each(function(){e.data(this,"plugin_"+r)||e.data(this,"plugin_"+r,new t(this,n))})}}(jQuery,window),jQuery(function(n){n('[data-sek-module-type="czr_image_module"]').each(function(){if($linkCandidate=n(this).find(".sek-link-to-img-lightbox"),!($linkCandidate.length<1||"string"!=typeof $linkCandidate[0].protocol||-1!==$linkCandidate[0].protocol.indexOf("javascript"))&&"function"==typeof n.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(n){"function"==typeof window.console.log&&console.log(n)}})}),jQuery(function(n){n(".sektion-wrapper").each(function(){try{n(this).nimbleLazyLoad()}catch(n){"function"==typeof window.console.log&&console.log(n)}})}),jQuery(function(t){t('[data-sek-bg-parallax="true"]').each(function(){t(this).parallaxBg({parallaxForce:t(this).data("sek-parallax-force")})});var e=function(){t(this).parallaxBg({parallaxForce:t(this).data("sek-parallax-force")}),setTimeout(function(){t("body").trigger("resize")},500)};t("body").on("sek-level-refreshed sek-section-added",function(n){"true"===t(this).data("sek-bg-parallax")?e.call(this):t(this).find('[data-sek-bg-parallax="true"]').each(function(){e.call(this)})})}),jQuery(function(o){var a=function(n){var t=document.createElement("a");t.href=n,t.href=t.href;for(var e=["host","hostname","hash","href","port","protocol","search"],r=0,i=e.length;r<i;r++)this[e[r]]=t[e[r]];this.pathname=("/"!==t.pathname.charAt(0)?"/":"")+t.pathname},u=o("html, body"),n=function(n){var t=o(this).attr("href");if(""!==t&&null!==t&&"string"==typeof t&&-1!==t.indexOf("#")){var e=new a(t),r=new a(window.document.location.href);if(e.pathname===r.pathname&&"string"==typeof e.hash&&""!==e.hash){var i=o('[data-sek-level="location"]').find('[id="'+e.hash.replace("#","")+'"]');1===i.length&&(n.preventDefault(),u.animate({scrollTop:i.offset().top-150},400))}}};o("body").find(".menu-item").on("click","a",n),o('[data-sek-level="location"]').on("click","a",n)}),jQuery(function(p){var n,o,a,u,s,l;!function(){var l="sek.sekDropdown",n="."+l,e={PLACE_ME:"placeme"+n,PLACE_ALL:"placeall"+n,SHOWN:"shown"+n,SHOW:"show"+n,HIDDEN:"hidden"+n,HIDE:"hide"+n,CLICK:"click"+n,TAP:"tap"+n},c="sek-dropdown-menu",t="sek-dropdown-submenu",r="show",i="menu-item-has-children",o='[data-toggle="sek-dropdown"]',a=".sek-nav-wrap .menu-item-has-children",u=".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(t);var s,f,d;s=a,p(document).on("mouseenter",s,function(){var t=p(this);_utils_.debounce(function(){if("static"==t.find("."+c).css("position"))return!1;if(!t.hasClass(r)){t.trigger(e.SHOW).addClass(r).trigger(e.SHOWN);var n=t.children(o);n.length&&n[0].setAttribute("aria-expanded","true")}},30)()}).on("mouseleave",s,function(){var t=p(this);_utils_.debounce(function(){if(t.find("ul li:hover").length<1&&!t.closest("ul").find("li:hover").is(t)){t.trigger(e.HIDE).removeClass(r).trigger(e.HIDDEN);var n=t.children(o);n.length&&n[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(u+"."+r).trigger(e.PLACE_ME),d=!1}))}),p(document).on(e.PLACE_ALL,function(){p(u).trigger(e.PLACE_ME)}).on(e.SHOWN+" "+e.PLACE_ME,u,function(n){n.stopPropagation(),function(n,t){if(t&&t.namespace&&l===t.namespace){var e,r,i,o,a,u,s=n.children("."+c);s.length&&(n.css("overflow","hidden"),s.css({zIndex:"-100",display:"block"}),r=n,i=f?{_DEFAULT:"left",_OPPOSITE:"right"}:{_DEFAULT:"right",_OPPOSITE:"left"},o={OPEN_PREFIX:"open-",DD_SUBMENU:"sek-dropdown-submenu",CARET_TITLE_FLIP:"sek-menu-link__row-reverse",DROPDOWN:"sek-dropdown-menu"},a=function(n,e,t){p.each(n,function(){var n=p(this),t=n.find("a").first();1==t.length&&t.toggleClass(o.CARET_TITLE_FLIP,e==i._OPPOSITE)})},u=function(n){var t=n==i._OPPOSITE?i._DEFAULT:i._OPPOSITE;e.removeClass(o.OPEN_PREFIX+t).addClass(o.OPEN_PREFIX+n),r.hasClass(o.DD_SUBMENU)&&(a(r,n,t),a(e.children("."+o.DD_SUBMENU),n,t))},(e=s).parent().closest("."+o.DROPDOWN).hasClass(o.OPEN_PREFIX+i._OPPOSITE)?u(i._OPPOSITE):u(i._DEFAULT),e.offset().left+e.width()>p(window).width()?u("left"):e.offset().left<0&&u("right"),s.css({zIndex:"",display:""}),n.css("overflow",""))}}(p(this),n)})}(),o={SHOW:"show"+(n=".sek.sekCollapse"),SHOWN:"shown"+n,HIDE:"hide"+n,HIDDEN:"hidden"+n,CLICK_DATA_API:"click"+n+".data-api"},a="show",u="sek-collapse",s="sek-collapsing",l="sek-collapsed",p(document).on(o.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=p(this),e=t.data("target");p(e).each(function(){var r=p(this),i=r.hasClass(a);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(s).trigger(i?o.HIDE:o.SHOW),i?t.addClass(l).attr("aria-expanded","false"):t.removeClass(l).attr("aria-expanded","true")},complete:function(){var n,t,e;i?(n=a,t=u,e=o.HIDDEN):(n=u,t=a,e=o.SHOWN),r.removeClass(s+" "+n).addClass(t).trigger(e),function(n){(n=n||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 t=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 n=p(this).closest('[data-sek-module-type="czr_menu_module"]').clone(!0),t=p(".sek-nav-collapse",this).attr("id")+"-mobile";n.appendTo(p(this).closest(".sek-sektion-inner")).wrap('<div class="sek-col-base sek-mobile-menu-expanded-below" id="'+t+'-wrapper"></div>'),p(".sek-nav-collapse","#"+t+"-wrapper").attr("id",t),p(".sek-nav-toggler","#"+t+"-wrapper").detach(),p(".sek-nav-toggler",this).data("target","#"+t).attr("aria-controls",t),p(this).data("sek-setup-menu-mobile-expanded-below-done",!0)}})};t(),p("body").on("sek-level-refreshed sek-modules-refreshed sek-columns-refreshed sek-section-added",function(n){p(".sek-mobile-menu-expanded-below").remove(),t()})})});
|
inc/sektions/ccat-sektions.php
CHANGED
@@ -11216,6 +11216,7 @@ if ( ! class_exists( 'SEK_Front_Render' ) ) :
|
|
11216 |
add_filter( 'get_header', array( $this, 'sek_maybe_set_local_nimble_header') );
|
11217 |
add_filter( 'get_footer', array( $this, 'sek_maybe_set_local_nimble_footer') );
|
11218 |
}
|
|
|
11219 |
}//_schedule_front_rendering()
|
11220 |
function sek_wrap_wp_content( $html ) {
|
11221 |
if ( ! skp_is_customizing() || ( defined('DOING_AJAX') && DOING_AJAX ) )
|
@@ -11942,6 +11943,54 @@ if ( ! class_exists( 'SEK_Front_Render' ) ) :
|
|
11942 |
ob_get_clean();
|
11943 |
}
|
11944 |
}//sek_maybe_set_local_nimble_footer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11945 |
|
11946 |
}//class
|
11947 |
endif;
|
11216 |
add_filter( 'get_header', array( $this, 'sek_maybe_set_local_nimble_header') );
|
11217 |
add_filter( 'get_footer', array( $this, 'sek_maybe_set_local_nimble_footer') );
|
11218 |
}
|
11219 |
+
add_action( 'wp_head', array( $this, 'sek_maybe_include_nimble_content_in_search_results' ) );
|
11220 |
}//_schedule_front_rendering()
|
11221 |
function sek_wrap_wp_content( $html ) {
|
11222 |
if ( ! skp_is_customizing() || ( defined('DOING_AJAX') && DOING_AJAX ) )
|
11943 |
ob_get_clean();
|
11944 |
}
|
11945 |
}//sek_maybe_set_local_nimble_footer
|
11946 |
+
function sek_maybe_include_nimble_content_in_search_results(){
|
11947 |
+
if ( !is_search() )
|
11948 |
+
return;
|
11949 |
+
global $wp_query;
|
11950 |
+
|
11951 |
+
$query_vars = $wp_query->query_vars;
|
11952 |
+
if ( ! is_array( $query_vars ) || empty( $query_vars['s'] ) )
|
11953 |
+
return;
|
11954 |
+
$sek_post_query_vars = array(
|
11955 |
+
'post_type' => NIMBLE_CPT,
|
11956 |
+
'post_status' => get_post_stati(),
|
11957 |
+
'posts_per_page' => -1,
|
11958 |
+
'no_found_rows' => true,
|
11959 |
+
'cache_results' => true,
|
11960 |
+
'update_post_meta_cache' => false,
|
11961 |
+
'update_post_term_cache' => false,
|
11962 |
+
'lazy_load_term_meta' => false,
|
11963 |
+
's' => $query_vars['s']
|
11964 |
+
);
|
11965 |
+
$query = new \WP_Query( $sek_post_query_vars );
|
11966 |
+
if ( is_array( $query->posts ) ) {
|
11967 |
+
foreach ( $query->posts as $post_object ) {
|
11968 |
+
if ( preg_match('(post_page|post_post)', $post_object->post_title ) ) {
|
11969 |
+
$post_number = preg_replace('/[^0-9]/', '', $post_object->post_title );
|
11970 |
+
$post_number = intval($post_number);
|
11971 |
+
|
11972 |
+
$post_candidate = get_post( $post_number );
|
11973 |
+
|
11974 |
+
if ( is_object( $post_candidate ) ) {
|
11975 |
+
array_push( $wp_query->posts, $post_candidate );
|
11976 |
+
}
|
11977 |
+
}
|
11978 |
+
}
|
11979 |
+
}
|
11980 |
+
$maybe_includes_duplicated = $wp_query->posts;
|
11981 |
+
$without_duplicated = array();
|
11982 |
+
$post_ids = array();
|
11983 |
+
|
11984 |
+
foreach ( $maybe_includes_duplicated as $post_obj ) {
|
11985 |
+
if ( in_array( $post_obj->ID, $post_ids ) )
|
11986 |
+
continue;
|
11987 |
+
$post_ids[] = $post_obj->ID;
|
11988 |
+
$without_duplicated[] = $post_obj;
|
11989 |
+
}
|
11990 |
+
$wp_query->posts = $without_duplicated;
|
11991 |
+
$wp_query->post_count = count($wp_query->posts);
|
11992 |
+
$wp_query->found_posts = $wp_query->post_count > 0;
|
11993 |
+
}// sek_maybe_include_nimble_content_in_search_results
|
11994 |
|
11995 |
}//class
|
11996 |
endif;
|
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.7.
|
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.7.
|
17 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
18 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
19 |
if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
|
@@ -26,8 +26,8 @@ if ( !defined( 'NIMBLE_PLUGIN_FILE' ) ) { define( 'NIMBLE_PLUGIN_FILE', __FILE__
|
|
26 |
if ( !defined( 'NIMBLE_SAVED_SECTIONS_ENABLED' ) ) { define ( 'NIMBLE_SAVED_SECTIONS_ENABLED', false ); }
|
27 |
if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
|
28 |
|
29 |
-
if ( !defined( 'NIMBLE_SHOW_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_SHOW_UPDATE_NOTICE_FOR_VERSION', '1.
|
30 |
-
if ( !defined( 'NIMBLE_RELEASE_NOTE_URL' ) ) { define( 'NIMBLE_RELEASE_NOTE_URL', 'https://presscustomizr.com/nimble-builder-version-1-
|
31 |
|
32 |
// when NIMBLE_IS_PREVIEW_UI_DEBUG_MODE or $_GET['preview_ui_debug'] is true, the levels UI in the preview are not being auto removed, so we can inspect the markup and CSS
|
33 |
if ( !defined( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE' ) ) { define ( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE', false ); }
|
@@ -152,4 +152,4 @@ if ( nimble_pass_requirements() ) {
|
|
152 |
if ( is_admin() ) {
|
153 |
require_once( NIMBLE_BASE_PATH . '/inc/admin/nimble-admin.php' );
|
154 |
}
|
155 |
-
}//if ( nimble_pass_requirements() )
|
2 |
/**
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Description: Powerful drag and drop page builder using the native WordPress customizer.
|
5 |
+
* Version: 1.7.4
|
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.7.4";
|
17 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
18 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
19 |
if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
|
26 |
if ( !defined( 'NIMBLE_SAVED_SECTIONS_ENABLED' ) ) { define ( 'NIMBLE_SAVED_SECTIONS_ENABLED', false ); }
|
27 |
if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
|
28 |
|
29 |
+
if ( !defined( 'NIMBLE_SHOW_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_SHOW_UPDATE_NOTICE_FOR_VERSION', '1.7.4' ); }
|
30 |
+
if ( !defined( 'NIMBLE_RELEASE_NOTE_URL' ) ) { define( 'NIMBLE_RELEASE_NOTE_URL', 'https://presscustomizr.com/nimble-builder-version-1-7-4-includes-nimble-created-content-in-search-results/' ); }
|
31 |
|
32 |
// when NIMBLE_IS_PREVIEW_UI_DEBUG_MODE or $_GET['preview_ui_debug'] is true, the levels UI in the preview are not being auto removed, so we can inspect the markup and CSS
|
33 |
if ( !defined( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE' ) ) { define ( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE', false ); }
|
152 |
if ( is_admin() ) {
|
153 |
require_once( NIMBLE_BASE_PATH . '/inc/admin/nimble-admin.php' );
|
154 |
}
|
155 |
+
}//if ( nimble_pass_requirements() )
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Plugin URI: https://wordpress.org/plugins/nimble-builder/
|
|
5 |
Tags: page builder, visual editor, customizer, drag and drop, header, footer, landing page, contact form, grid, post grid
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
-
Tested up to: 5.
|
9 |
-
Stable tag: 1.7.
|
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
|
@@ -109,10 +109,15 @@ Nimble builder works with any WordPress theme. If you experience any problem wit
|
|
109 |
7. **Theme** : try to switch to another WordPress theme, like the default WordPress theme. If you use a child theme, activate the parent theme instead.
|
110 |
|
111 |
== Upgrade Notice ==
|
112 |
-
= 1.7.
|
113 |
-
|
114 |
|
115 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
116 |
= 1.7.3 : May 7th 2019 =
|
117 |
* fixed : possible alignment issue for the heading module
|
118 |
* fixed : br and p tags potentially added by WordPress when adding section before content
|
5 |
Tags: page builder, visual editor, customizer, drag and drop, header, footer, landing page, contact form, grid, post grid
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
+
Tested up to: 5.2.0
|
9 |
+
Stable tag: 1.7.4
|
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
|
109 |
7. **Theme** : try to switch to another WordPress theme, like the default WordPress theme. If you use a child theme, activate the parent theme instead.
|
110 |
|
111 |
== Upgrade Notice ==
|
112 |
+
= 1.7.4 =
|
113 |
+
Now pages and posts that have Nimble sections are included in the search results when a match is found with the textual content created with Nimble Builder.
|
114 |
|
115 |
== Changelog ==
|
116 |
+
= 1.7.4 : May 10th 2019 =
|
117 |
+
* improved : pages and posts that have Nimble sections are included in the search results
|
118 |
+
* improved : anchor links => allow scroll animations between sections
|
119 |
+
* improved : addition of new 'wp_body_open' hook introduced in WP 5.2
|
120 |
+
|
121 |
= 1.7.3 : May 7th 2019 =
|
122 |
* fixed : possible alignment issue for the heading module
|
123 |
* fixed : br and p tags potentially added by WordPress when adding section before content
|
tmpl/header/nimble_header_tmpl.php
CHANGED
@@ -13,6 +13,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
<?php wp_head(); ?>
|
14 |
</head>
|
15 |
<body <?php body_class(); ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<div id="nimble-page" class="">
|
17 |
<a class="sek-skip-link sek-screen-reader-text" href="#nimble-page"><?php _e( 'Skip to content', 'nimble-builder' ); ?></a>
|
18 |
<?php do_action('before_nimble_header'); ?>
|
13 |
<?php wp_head(); ?>
|
14 |
</head>
|
15 |
<body <?php body_class(); ?>>
|
16 |
+
<?php
|
17 |
+
if ( function_exists( 'wp_body_open' ) ) {
|
18 |
+
wp_body_open();
|
19 |
+
} else {
|
20 |
+
do_action( 'wp_body_open' );
|
21 |
+
}
|
22 |
+
?>
|
23 |
<div id="nimble-page" class="">
|
24 |
<a class="sek-skip-link sek-screen-reader-text" href="#nimble-page"><?php _e( 'Skip to content', 'nimble-builder' ); ?></a>
|
25 |
<?php do_action('before_nimble_header'); ?>
|