Version Description
Fixed minor bug with recently introduced lightbox for image module.
=
Download this release
Release Info
Developer | nikeo |
Plugin | Nimble Page Builder |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
- assets/front/js/ccat-nimble-front.js +2 -0
- assets/front/js/ccat-nimble-front.min.js +1 -1
- inc/sektions/ccat-sektions.php +6 -6
- nimble-builder.php +3 -3
- readme.txt +8 -4
assets/front/js/ccat-nimble-front.js
CHANGED
@@ -1511,6 +1511,8 @@ jQuery(function($){
|
|
1511 |
$linkCandidate = $(this).find('.sek-link-to-img-lightbox');
|
1512 |
if ( $linkCandidate.length < 1 || 'string' !== typeof( $linkCandidate[0].protocol ) || -1 !== $linkCandidate[0].protocol.indexOf('javascript') )
|
1513 |
return;
|
|
|
|
|
1514 |
try { $linkCandidate.magnificPopup({
|
1515 |
type: 'image',
|
1516 |
closeOnContentClick: true,
|
1511 |
$linkCandidate = $(this).find('.sek-link-to-img-lightbox');
|
1512 |
if ( $linkCandidate.length < 1 || 'string' !== typeof( $linkCandidate[0].protocol ) || -1 !== $linkCandidate[0].protocol.indexOf('javascript') )
|
1513 |
return;
|
1514 |
+
if ( 'function' !== typeof( $.fn.magnificPopup ) )
|
1515 |
+
return;
|
1516 |
try { $linkCandidate.magnificPopup({
|
1517 |
type: 'image',
|
1518 |
closeOnContentClick: true,
|
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,l=r.slice,p=a.toString,o=a.hasOwnProperty,e=Array.isArray,u=Object.keys,s=Object.create,c=function(){},d=function(n){return n instanceof d?n:this instanceof d?void(this._wrapped=n):new d(n)};"undefined"==typeof exports||exports.nodeType?n._utils_=d:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=d),exports._utils_=d),d.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)}},g=function(n,t,e){return d.iteratee!==h?d.iteratee(n,t):null==n?d.identity:d.isFunction(n)?v(n,t,e):d.isObject(n)&&!d.isArray(n)?d.matcher(n):d.property(n)};d.iteratee=h=function(n,t){return g(n,t,1/0)};var m=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(!d.isObject(n))return{};if(s)return s(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},x=Math.pow(2,53)-1,w=_("length"),A=function(n){var t=w(n);return"number"==typeof t&&0<=t&&t<=x};d.each=d.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=d.keys(n);for(r=0,i=o.length;r<i;r++)t(n[o[r]],o[r],n)}return n},d.map=d.collect=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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 O=function(l){return function(n,t,e,r){var i=3<=arguments.length;return function(n,t,e,r){var i=!A(n)&&d.keys(n),o=(i||n).length,a=0<l?0:o-1;for(r||(e=n[i?i[a]:a],a+=l);0<=a&&a<o;a+=l){var u=i?i[a]:a;e=t(e,n[u],u,n)}return e}(n,v(t,r,4),e,i)}};d.reduce=d.foldl=d.inject=O(1),d.reduceRight=d.foldr=O(-1),d.find=d.detect=function(n,t,e){var r=(A(n)?d.findIndex:d.findKey)(n,t,e);if(void 0!==r&&-1!==r)return n[r]},d.filter=d.select=function(n,r,t){var i=[];return r=g(r,t),d.each(n,function(n,t,e){r(n,t,e)&&i.push(n)}),i},d.reject=function(n,t,e){return d.filter(n,d.negate(g(t)),e)},d.every=d.all=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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},d.some=d.any=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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},d.contains=d.includes=d.include=function(n,t,e,r){return A(n)||(n=d.values(n)),("number"!=typeof e||r)&&(e=0),0<=d.indexOf(n,t,e)},d.invoke=m(function(n,e,r){var i,o;return d.isFunction(e)?o=e:d.isArray(e)&&(i=e.slice(0,-1),e=e[e.length-1]),d.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)})}),d.pluck=function(n,t){return d.map(n,d.property(t))},d.where=function(n,t){return d.filter(n,d.matcher(t))},d.findWhere=function(n,t){return d.find(n,d.matcher(t))},d.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,l=(n=A(n)?n:d.values(n)).length;u<l;u++)null!=(e=n[u])&&o<e&&(o=e);else r=g(r,t),d.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},d.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,l=(n=A(n)?n:d.values(n)).length;u<l;u++)null!=(e=n[u])&&e<o&&(o=e);else r=g(r,t),d.each(n,function(n,t,e){((i=r(n,t,e))<a||i===1/0&&o===1/0)&&(o=n,a=i)});return o},d.shuffle=function(n){return d.sample(n,1/0)},d.sample=function(n,t,e){if(null==t||e)return A(n)||(n=d.values(n)),n[d.random(n.length-1)];var r=A(n)?d.clone(n):d.values(n),i=w(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=d.random(a,o),l=r[a];r[a]=r[u],r[u]=l}return r.slice(0,t)},d.sortBy=function(n,r,t){var i=0;return r=g(r,t),d.pluck(d.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 E=function(a,t){return function(r,i,n){var o=t?[[],[]]:{};return i=g(i,n),d.each(r,function(n,t){var e=i(n,t,r);a(o,n,e)}),o}};d.groupBy=E(function(n,t,e){b(n,e)?n[e].push(t):n[e]=[t]}),d.indexBy=E(function(n,t,e){n[e]=t}),d.countBy=E(function(n,t,e){b(n,e)?n[e]++:n[e]=1});var I=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(n){return n?d.isArray(n)?l.call(n):d.isString(n)?n.match(I):A(n)?d.map(n,d.identity):d.values(n):[]},d.size=function(n){return null==n?0:A(n)?n.length:d.keys(n).length},d.partition=E(function(n,t,e){n[e?0:1].push(t)},!0),d.first=d.head=d.take=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[0]:d.initial(n,n.length-t)},d.initial=function(n,t,e){return l.call(n,0,Math.max(0,n.length-(null==t||e?1:t)))},d.last=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[n.length-1]:d.rest(n,Math.max(0,n.length-t))},d.rest=d.tail=d.drop=function(n,t,e){return l.call(n,null==t||e?1:t)},d.compact=function(n){return d.filter(n,Boolean)};var j=function(n,t,e,r){for(var i=(r=r||[]).length,o=0,a=w(n);o<a;o++){var u=n[o];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(t)for(var l=0,s=u.length;l<s;)r[i++]=u[l++];else j(u,t,e,r),i=r.length;else e||(r[i++]=u)}return r};d.flatten=function(n,t){return j(n,t,!1)},d.without=m(function(n,t){return d.difference(n,t)}),d.uniq=d.unique=function(n,t,e,r){d.isBoolean(t)||(r=e,e=t,t=!1),null!=e&&(e=g(e,r));for(var i=[],o=[],a=0,u=w(n);a<u;a++){var l=n[a],s=e?e(l,a,n):l;t&&!e?(a&&o===s||i.push(l),o=s):e?d.contains(o,s)||(o.push(s),i.push(l)):d.contains(i,l)||i.push(l)}return i},d.union=m(function(n){return d.uniq(j(n,!0,!0))}),d.intersection=function(n){for(var t=[],e=arguments.length,r=0,i=w(n);r<i;r++){var o=n[r];if(!d.contains(t,o)){var a;for(a=1;a<e&&d.contains(arguments[a],o);a++);a===e&&t.push(o)}}return t},d.difference=m(function(n,t){return t=j(t,!0,!0),d.filter(n,function(n){return!d.contains(t,n)})}),d.unzip=function(n){for(var t=n&&d.max(n,w).length||0,e=Array(t),r=0;r<t;r++)e[r]=d.pluck(n,r);return e},d.zip=m(d.unzip),d.object=function(n,t){for(var e={},r=0,i=w(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=g(t,e);for(var r=w(n),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(n[i],i,n))return i;return-1}};d.findIndex=C(1),d.findLastIndex=C(-1),d.sortedIndex=function(n,t,e,r){for(var i=(e=g(e,r,1))(t),o=0,a=w(n);o<a;){var u=Math.floor((o+a)/2);e(n[u])<i?o=u+1:a=u}return o};var S=function(o,a,u){return function(n,t,e){var r=0,i=w(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(l.call(n,r,i),d.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}};d.indexOf=S(1,d.findIndex,d.sortedIndex),d.lastIndexOf=S(-1,d.findLastIndex),d.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},d.chunk=function(n,t){if(null==t||t<1)return[];for(var e=[],r=0,i=n.length;r<i;)e.push(l.call(n,r,r+=t));return e};var P=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 d.isObject(a)?a:o};d.bind=m(function(t,e,r){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(n){return P(t,i,e,this,r.concat(n))});return i}),d.partial=m(function(i,o){var a=d.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 P(i,u,this,this,e)};return u}),(d.partial.placeholder=d).bindAll=m(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]=d.bind(n[r],n)}}),d.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},d.delay=m(function(n,t,e){return setTimeout(function(){return n.apply(null,e)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(e,r,i){var o,a,u,l,s=0;i||(i={});var c=function(){s=!1===i.leading?0:d.now(),o=null,l=e.apply(a,u),o||(a=u=null)},n=function(){var n=d.now();s||!1!==i.leading||(s=n);var t=r-(n-s);return a=this,u=arguments,t<=0||r<t?(o&&(clearTimeout(o),o=null),s=n,l=e.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(c,t)),l};return n.cancel=function(){clearTimeout(o),s=0,o=a=u=null},n},d.debounce=function(e,r,i){var o,a,u=function(n,t){o=null,t&&(a=e.apply(n,t))},n=m(function(n){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(u,r),t&&(a=e.apply(this,n))}else o=d.delay(u,r,this,n);return a});return n.cancel=function(){clearTimeout(o),o=null},n},d.wrap=function(n,t){return d.partial(t,n)},d.negate=function(n){return function(){return!n.apply(this,arguments)}},d.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}},d.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},d.before=function(n,t){var e;return function(){return 0<--n&&(e=t.apply(this,arguments)),n<=1&&(t=null),e}},d.once=d.partial(d.before,2),d.restArguments=m;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(n,t){var e=N.length,r=n.constructor,i=d.isFunction(r)&&r.prototype||a,o="constructor";for(b(n,o)&&!d.contains(t,o)&&t.push(o);e--;)(o=N[e])in n&&n[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(n){if(!d.isObject(n))return[];if(u)return u(n);var t=[];for(var e in n)b(n,e)&&t.push(e);return T&&D(n,t),t},d.allKeys=function(n){if(!d.isObject(n))return[];var t=[];for(var e in n)t.push(e);return T&&D(n,t),t},d.values=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=n[t[i]];return r},d.mapObject=function(n,t,e){t=g(t,e);for(var r=d.keys(n),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(n[u],u,n)}return o},d.pairs=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=[t[i],n[t[i]]];return r},d.invert=function(n){for(var t={},e=d.keys(n),r=0,i=e.length;r<i;r++)t[n[e[r]]]=e[r];return t},d.functions=d.methods=function(n){var t=[];for(var e in n)d.isFunction(n[e])&&t.push(e);return t.sort()};var F=function(l,s){return function(n){var t=arguments.length;if(s&&(n=Object(n)),t<2||null==n)return n;for(var e=1;e<t;e++)for(var r=arguments[e],i=l(r),o=i.length,a=0;a<o;a++){var u=i[a];s&&void 0!==n[u]||(n[u]=r[u])}return n}};d.extend=F(d.allKeys),d.extendOwn=d.assign=F(d.keys),d.findKey=function(n,t,e){t=g(t,e);for(var r,i=d.keys(n),o=0,a=i.length;o<a;o++)if(t(n[r=i[o]],r,n))return r};var M,z,L=function(n,t,e){return t in e};d.pick=m(function(n,t){var e={},r=t[0];if(null==n)return e;d.isFunction(r)?(1<t.length&&(r=v(r,t[1])),t=d.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}),d.omit=m(function(n,e){var t,r=e[0];return d.isFunction(r)?(r=d.negate(r),1<e.length&&(t=e[1])):(e=d.map(j(e,!1,!1),String),r=function(n,t){return!d.contains(e,t)}),d.pick(n,r,t)}),d.defaults=F(d.allKeys,!0),d.create=function(n,t){var e=y(n);return t&&d.extendOwn(e,t),e},d.clone=function(n){return d.isObject(n)?d.isArray(n)?n.slice():d.extend({},n):n},d.tap=function(n,t){return t(n),n},d.isMatch=function(n,t){var e=d.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},M=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)&&z(n,t,e,r)},z=function(n,t,e,r){n instanceof d&&(n=n._wrapped),t instanceof d&&(t=t._wrapped);var i=p.call(n);if(i!==p.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&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in n&&"constructor"in t)return!1}r=r||[];for(var l=(e=e||[]).length;l--;)if(e[l]===n)return r[l]===t;if(e.push(n),r.push(t),o){if((l=n.length)!==t.length)return!1;for(;l--;)if(!M(n[l],t[l],e,r))return!1}else{var s,c=d.keys(n);if(l=c.length,d.keys(t).length!==l)return!1;for(;l--;)if(s=c[l],!b(t,s)||!M(n[s],t[s],e,r))return!1}return e.pop(),r.pop(),!0},d.isEqual=function(n,t){return M(n,t)},d.isEmpty=function(n){return null==n||(A(n)&&(d.isArray(n)||d.isString(n)||d.isArguments(n))?0===n.length:0===d.keys(n).length)},d.isElement=function(n){return!(!n||1!==n.nodeType)},d.isArray=e||function(n){return"[object Array]"===p.call(n)},d.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(n){return p.call(n)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(n){return b(n,"callee")});var B=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(d.isFunction=function(n){return"function"==typeof n||!1}),d.isFinite=function(n){return!d.isSymbol(n)&&isFinite(n)&&!isNaN(parseFloat(n))},d.isNaN=function(n){return d.isNumber(n)&&isNaN(n)},d.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===p.call(n)},d.isNull=function(n){return null===n},d.isUndefined=function(n){return void 0===n},d.has=function(n,t){if(!d.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},d.noConflict=function(){return n._=t,this},d.identity=function(n){return n},d.constant=function(n){return function(){return n}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(n){return k(n,t)}:_(t)},d.propertyOf=function(t){return null==t?function(){}:function(n){return d.isArray(n)?k(t,n):t[n]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(n){return d.isMatch(n,t)}},d.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},d.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},d.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=d.invert(H),W=function(t){var e=function(n){return t[n]},n="(?:"+d.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}};d.escape=W(H),d.unescape=W(R),d.result=function(n,t,e){d.isArray(t)||(t=[t]);var r=t.length;if(!r)return d.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=d.isFunction(o)?o.call(n):o}return n};var U=0;d.uniqueId=function(n){var t=++U+"";return n?n+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(n){return"\\"+K[n]};d.template=function(o,n,t){!n&&t&&(n=t),n=d.defaults({},n,d.templateSettings);var e,r=RegExp([(n.escape||q).source,(n.interpolate||q).source,(n.evaluate||q).source].join("|")+"|$","g"),a=0,u="__p+='";o.replace(r,function(n,t,e,r,i){return u+=o.slice(a,i).replace($,Q),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,d)},l=n.variable||"obj";return i.source="function("+l+"){\n"+u+"}",i},d.chain=function(n){var t=d(n);return t._chain=!0,t};var X=function(n,t){return n._chain?d(t).chain():t};d.mixin=function(e){return d.each(d.functions(e),function(n){var t=d[n]=e[n];d.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),X(this,t.apply(d,n))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];d.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],X(this,n)}}),d.each(["concat","join","slice"],function(n){var t=r[n];d.prototype[n]=function(){return X(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}(),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,s){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()+")",this.element);this.increment=1,this.timer=0,e.addClass(i).bind("sek_load_img",{},function(){t._load_img(this)}),l(s).scroll(function(n){t._better_scroll_event_handler(e,n)}),l(s).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,s.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){l(t).trigger("sek_load_img")})},t.prototype._is_visible=function(n,t){var e=l(n),r=l(s).scrollTop(),i=r+l(s).height(),o=e.offset().top,a=o+e.height(),u=this.options.threshold;return!(!t||"scroll"!=t.type||!this.options.load_all_images_on_first_scroll)||r-u<=a&&o<=i+u},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")},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(a,u){var e="parallaxBg",r={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function t(n,t){this.element=a(n),this.options=a.extend({},r,t,this.parseElementDataOptions()),this._defaults=r,this._name=e,this.init()}t.prototype.parseElementDataOptions=function(){return this.element.data()},t.prototype.init=function(){var t=this;this.$_document=a(document),this.$_window=a(u),this.doingAnimation=!1,_utils_.bindAll(this,"maybeParallaxMe","parallaxMe"),a(u).scroll(function(n){t.maybeParallaxMe()}),a(u).resize(_utils_.debounce(function(n){t.maybeParallaxMe()},100)),t.maybeParallaxMe()},t.prototype._is_visible=function(n){var t=this.element,e=a(u).scrollTop(),r=e+a(u).height(),i=t.offset().top,o=i+t.outerHeight();return!(!n||"scroll"!=n.type||!this.options.load_all_images_on_first_scroll)||e-0<=o&&i<=r+0},t.prototype.maybeParallaxMe=function(){var n=this;this._is_visible()&&(_utils_.isFunction(u.matchMedia)&&matchMedia(n.options.matchMedia).matches?this.element.css({"background-position-y":"","background-attachment":""}):this.doingAnimation||(this.doingAnimation=!0,u.requestAnimationFrame(function(){n.parallaxMe(),n.doingAnimation=!1})))},t.prototype.setTopPosition=function(n){n=n||0,this.element.css({"background-position-y":-1*n+"px","background-attachment":"fixed"})},t.prototype.parallaxMe=function(){var n=this.element,t=this.options.parallaxRatio,e=this.options.parallaxDirection,r=n.offset().top,i=t*e*(this.$_document.scrollTop()-r);this.setTopPosition(e*i)},a.fn[e]=function(n){return this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,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")))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"]').parallaxBg(),t("body").on("sek-level-refreshed sek-section-added",function(n){"true"===t(this).attr("data-sek-bg-parallax")?t(this).parallaxBg():t(this).find('[data-sek-bg-parallax="true"]').parallaxBg()})}),jQuery(function(r){r("body").find(".sek-menu-module, .menu, .nav").on("click",'.menu-item [href^="#"]',function(n){n.preventDefault();var t=r(this).attr("href");if(""!==(t="string"==typeof t?t.replace("#",""):"")||null!==t){var e=r('[data-sek-level="location"]').find('[id="'+t+'"]');1===e.length&&r("html, body").animate({scrollTop:e.offset().top-150},"slow")}})}),jQuery(function(d){var n,o,a,u,l,s;!function(){var s="sek.sekDropdown",n="."+s,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";d(".sek-nav .children, .sek-nav .sub-menu").addClass(c),d(".sek-nav-wrap .page_item_has_children").addClass(i),d(".sek-nav ."+c+" ."+i).addClass(t);var l,f,p;l=a,d(document).on("mouseenter",l,function(){var t=d(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",l,function(){var t=d(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"===d("html").attr("dir"),p=!1,d(window).on("resize",function(){p||(p=!0,window.requestAnimationFrame(function(){d(u+"."+r).trigger(e.PLACE_ME),p=!1}))}),d(document).on(e.PLACE_ALL,function(){d(u).trigger(e.PLACE_ME)}).on(e.SHOWN+" "+e.PLACE_ME,u,function(n){n.stopPropagation(),function(n,t){if(t&&t.namespace&&s===t.namespace){var e,r,i,o,a,u,l=n.children("."+c);l.length&&(n.css("overflow","hidden"),l.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){d.each(n,function(){var n=d(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=l).parent().closest("."+o.DROPDOWN).hasClass(o.OPEN_PREFIX+i._OPPOSITE)?u(i._OPPOSITE):u(i._DEFAULT),e.offset().left+e.width()>d(window).width()?u("left"):e.offset().left<0&&u("right"),l.css({zIndex:"",display:""}),n.css("overflow",""))}}(d(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",l="sek-collapsing",s="sek-collapsed",d(document).on(o.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=d(this),e=t.data("target");d(e).each(function(){var r=d(this),i=r.hasClass(a);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(l).trigger(i?o.HIDE:o.SHOW),i?t.addClass(s).attr("aria-expanded","false"):t.removeClass(s).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(l+" "+n).addClass(t).trigger(e),function(n){(n=n||d(this)).css({display:"",paddingTop:"",marginTop:"",paddingBottom:"",marginBottom:"",height:""})}(r)}})})}),d(document).on("mouseenter",".sek-nav-toggler",function(){d(this).addClass("hovering")}).on("mouseleave",".sek-nav-toggler",function(){d(this).removeClass("hovering")}).on("show.sek.sekCollapse hide.sek.sekCollapse",".sek-nav-collapse",function(){d("[data-target=#"+d(this).attr("id")+"]").removeClass("hovering"),d(window).trigger("scroll")})});
|
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,l=r.slice,p=a.toString,o=a.hasOwnProperty,e=Array.isArray,u=Object.keys,s=Object.create,c=function(){},d=function(n){return n instanceof d?n:this instanceof d?void(this._wrapped=n):new d(n)};"undefined"==typeof exports||exports.nodeType?n._utils_=d:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=d),exports._utils_=d),d.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)}},g=function(n,t,e){return d.iteratee!==h?d.iteratee(n,t):null==n?d.identity:d.isFunction(n)?v(n,t,e):d.isObject(n)&&!d.isArray(n)?d.matcher(n):d.property(n)};d.iteratee=h=function(n,t){return g(n,t,1/0)};var m=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(!d.isObject(n))return{};if(s)return s(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},x=Math.pow(2,53)-1,w=_("length"),A=function(n){var t=w(n);return"number"==typeof t&&0<=t&&t<=x};d.each=d.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=d.keys(n);for(r=0,i=o.length;r<i;r++)t(n[o[r]],o[r],n)}return n},d.map=d.collect=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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 O=function(l){return function(n,t,e,r){var i=3<=arguments.length;return function(n,t,e,r){var i=!A(n)&&d.keys(n),o=(i||n).length,a=0<l?0:o-1;for(r||(e=n[i?i[a]:a],a+=l);0<=a&&a<o;a+=l){var u=i?i[a]:a;e=t(e,n[u],u,n)}return e}(n,v(t,r,4),e,i)}};d.reduce=d.foldl=d.inject=O(1),d.reduceRight=d.foldr=O(-1),d.find=d.detect=function(n,t,e){var r=(A(n)?d.findIndex:d.findKey)(n,t,e);if(void 0!==r&&-1!==r)return n[r]},d.filter=d.select=function(n,r,t){var i=[];return r=g(r,t),d.each(n,function(n,t,e){r(n,t,e)&&i.push(n)}),i},d.reject=function(n,t,e){return d.filter(n,d.negate(g(t)),e)},d.every=d.all=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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},d.some=d.any=function(n,t,e){t=g(t,e);for(var r=!A(n)&&d.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},d.contains=d.includes=d.include=function(n,t,e,r){return A(n)||(n=d.values(n)),("number"!=typeof e||r)&&(e=0),0<=d.indexOf(n,t,e)},d.invoke=m(function(n,e,r){var i,o;return d.isFunction(e)?o=e:d.isArray(e)&&(i=e.slice(0,-1),e=e[e.length-1]),d.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)})}),d.pluck=function(n,t){return d.map(n,d.property(t))},d.where=function(n,t){return d.filter(n,d.matcher(t))},d.findWhere=function(n,t){return d.find(n,d.matcher(t))},d.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,l=(n=A(n)?n:d.values(n)).length;u<l;u++)null!=(e=n[u])&&o<e&&(o=e);else r=g(r,t),d.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},d.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,l=(n=A(n)?n:d.values(n)).length;u<l;u++)null!=(e=n[u])&&e<o&&(o=e);else r=g(r,t),d.each(n,function(n,t,e){((i=r(n,t,e))<a||i===1/0&&o===1/0)&&(o=n,a=i)});return o},d.shuffle=function(n){return d.sample(n,1/0)},d.sample=function(n,t,e){if(null==t||e)return A(n)||(n=d.values(n)),n[d.random(n.length-1)];var r=A(n)?d.clone(n):d.values(n),i=w(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=d.random(a,o),l=r[a];r[a]=r[u],r[u]=l}return r.slice(0,t)},d.sortBy=function(n,r,t){var i=0;return r=g(r,t),d.pluck(d.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 E=function(a,t){return function(r,i,n){var o=t?[[],[]]:{};return i=g(i,n),d.each(r,function(n,t){var e=i(n,t,r);a(o,n,e)}),o}};d.groupBy=E(function(n,t,e){b(n,e)?n[e].push(t):n[e]=[t]}),d.indexBy=E(function(n,t,e){n[e]=t}),d.countBy=E(function(n,t,e){b(n,e)?n[e]++:n[e]=1});var I=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(n){return n?d.isArray(n)?l.call(n):d.isString(n)?n.match(I):A(n)?d.map(n,d.identity):d.values(n):[]},d.size=function(n){return null==n?0:A(n)?n.length:d.keys(n).length},d.partition=E(function(n,t,e){n[e?0:1].push(t)},!0),d.first=d.head=d.take=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[0]:d.initial(n,n.length-t)},d.initial=function(n,t,e){return l.call(n,0,Math.max(0,n.length-(null==t||e?1:t)))},d.last=function(n,t,e){return null==n||n.length<1?null==t?void 0:[]:null==t||e?n[n.length-1]:d.rest(n,Math.max(0,n.length-t))},d.rest=d.tail=d.drop=function(n,t,e){return l.call(n,null==t||e?1:t)},d.compact=function(n){return d.filter(n,Boolean)};var j=function(n,t,e,r){for(var i=(r=r||[]).length,o=0,a=w(n);o<a;o++){var u=n[o];if(A(u)&&(d.isArray(u)||d.isArguments(u)))if(t)for(var l=0,s=u.length;l<s;)r[i++]=u[l++];else j(u,t,e,r),i=r.length;else e||(r[i++]=u)}return r};d.flatten=function(n,t){return j(n,t,!1)},d.without=m(function(n,t){return d.difference(n,t)}),d.uniq=d.unique=function(n,t,e,r){d.isBoolean(t)||(r=e,e=t,t=!1),null!=e&&(e=g(e,r));for(var i=[],o=[],a=0,u=w(n);a<u;a++){var l=n[a],s=e?e(l,a,n):l;t&&!e?(a&&o===s||i.push(l),o=s):e?d.contains(o,s)||(o.push(s),i.push(l)):d.contains(i,l)||i.push(l)}return i},d.union=m(function(n){return d.uniq(j(n,!0,!0))}),d.intersection=function(n){for(var t=[],e=arguments.length,r=0,i=w(n);r<i;r++){var o=n[r];if(!d.contains(t,o)){var a;for(a=1;a<e&&d.contains(arguments[a],o);a++);a===e&&t.push(o)}}return t},d.difference=m(function(n,t){return t=j(t,!0,!0),d.filter(n,function(n){return!d.contains(t,n)})}),d.unzip=function(n){for(var t=n&&d.max(n,w).length||0,e=Array(t),r=0;r<t;r++)e[r]=d.pluck(n,r);return e},d.zip=m(d.unzip),d.object=function(n,t){for(var e={},r=0,i=w(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=g(t,e);for(var r=w(n),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(n[i],i,n))return i;return-1}};d.findIndex=C(1),d.findLastIndex=C(-1),d.sortedIndex=function(n,t,e,r){for(var i=(e=g(e,r,1))(t),o=0,a=w(n);o<a;){var u=Math.floor((o+a)/2);e(n[u])<i?o=u+1:a=u}return o};var S=function(o,a,u){return function(n,t,e){var r=0,i=w(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(l.call(n,r,i),d.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}};d.indexOf=S(1,d.findIndex,d.sortedIndex),d.lastIndexOf=S(-1,d.findLastIndex),d.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},d.chunk=function(n,t){if(null==t||t<1)return[];for(var e=[],r=0,i=n.length;r<i;)e.push(l.call(n,r,r+=t));return e};var P=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 d.isObject(a)?a:o};d.bind=m(function(t,e,r){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=m(function(n){return P(t,i,e,this,r.concat(n))});return i}),d.partial=m(function(i,o){var a=d.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 P(i,u,this,this,e)};return u}),(d.partial.placeholder=d).bindAll=m(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]=d.bind(n[r],n)}}),d.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},d.delay=m(function(n,t,e){return setTimeout(function(){return n.apply(null,e)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(e,r,i){var o,a,u,l,s=0;i||(i={});var c=function(){s=!1===i.leading?0:d.now(),o=null,l=e.apply(a,u),o||(a=u=null)},n=function(){var n=d.now();s||!1!==i.leading||(s=n);var t=r-(n-s);return a=this,u=arguments,t<=0||r<t?(o&&(clearTimeout(o),o=null),s=n,l=e.apply(a,u),o||(a=u=null)):o||!1===i.trailing||(o=setTimeout(c,t)),l};return n.cancel=function(){clearTimeout(o),s=0,o=a=u=null},n},d.debounce=function(e,r,i){var o,a,u=function(n,t){o=null,t&&(a=e.apply(n,t))},n=m(function(n){if(o&&clearTimeout(o),i){var t=!o;o=setTimeout(u,r),t&&(a=e.apply(this,n))}else o=d.delay(u,r,this,n);return a});return n.cancel=function(){clearTimeout(o),o=null},n},d.wrap=function(n,t){return d.partial(t,n)},d.negate=function(n){return function(){return!n.apply(this,arguments)}},d.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}},d.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},d.before=function(n,t){var e;return function(){return 0<--n&&(e=t.apply(this,arguments)),n<=1&&(t=null),e}},d.once=d.partial(d.before,2),d.restArguments=m;var T=!{toString:null}.propertyIsEnumerable("toString"),N=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(n,t){var e=N.length,r=n.constructor,i=d.isFunction(r)&&r.prototype||a,o="constructor";for(b(n,o)&&!d.contains(t,o)&&t.push(o);e--;)(o=N[e])in n&&n[o]!==i[o]&&!d.contains(t,o)&&t.push(o)};d.keys=function(n){if(!d.isObject(n))return[];if(u)return u(n);var t=[];for(var e in n)b(n,e)&&t.push(e);return T&&D(n,t),t},d.allKeys=function(n){if(!d.isObject(n))return[];var t=[];for(var e in n)t.push(e);return T&&D(n,t),t},d.values=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=n[t[i]];return r},d.mapObject=function(n,t,e){t=g(t,e);for(var r=d.keys(n),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(n[u],u,n)}return o},d.pairs=function(n){for(var t=d.keys(n),e=t.length,r=Array(e),i=0;i<e;i++)r[i]=[t[i],n[t[i]]];return r},d.invert=function(n){for(var t={},e=d.keys(n),r=0,i=e.length;r<i;r++)t[n[e[r]]]=e[r];return t},d.functions=d.methods=function(n){var t=[];for(var e in n)d.isFunction(n[e])&&t.push(e);return t.sort()};var F=function(l,s){return function(n){var t=arguments.length;if(s&&(n=Object(n)),t<2||null==n)return n;for(var e=1;e<t;e++)for(var r=arguments[e],i=l(r),o=i.length,a=0;a<o;a++){var u=i[a];s&&void 0!==n[u]||(n[u]=r[u])}return n}};d.extend=F(d.allKeys),d.extendOwn=d.assign=F(d.keys),d.findKey=function(n,t,e){t=g(t,e);for(var r,i=d.keys(n),o=0,a=i.length;o<a;o++)if(t(n[r=i[o]],r,n))return r};var M,z,L=function(n,t,e){return t in e};d.pick=m(function(n,t){var e={},r=t[0];if(null==n)return e;d.isFunction(r)?(1<t.length&&(r=v(r,t[1])),t=d.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}),d.omit=m(function(n,e){var t,r=e[0];return d.isFunction(r)?(r=d.negate(r),1<e.length&&(t=e[1])):(e=d.map(j(e,!1,!1),String),r=function(n,t){return!d.contains(e,t)}),d.pick(n,r,t)}),d.defaults=F(d.allKeys,!0),d.create=function(n,t){var e=y(n);return t&&d.extendOwn(e,t),e},d.clone=function(n){return d.isObject(n)?d.isArray(n)?n.slice():d.extend({},n):n},d.tap=function(n,t){return t(n),n},d.isMatch=function(n,t){var e=d.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},M=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)&&z(n,t,e,r)},z=function(n,t,e,r){n instanceof d&&(n=n._wrapped),t instanceof d&&(t=t._wrapped);var i=p.call(n);if(i!==p.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&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(u)&&u instanceof u)&&"constructor"in n&&"constructor"in t)return!1}r=r||[];for(var l=(e=e||[]).length;l--;)if(e[l]===n)return r[l]===t;if(e.push(n),r.push(t),o){if((l=n.length)!==t.length)return!1;for(;l--;)if(!M(n[l],t[l],e,r))return!1}else{var s,c=d.keys(n);if(l=c.length,d.keys(t).length!==l)return!1;for(;l--;)if(s=c[l],!b(t,s)||!M(n[s],t[s],e,r))return!1}return e.pop(),r.pop(),!0},d.isEqual=function(n,t){return M(n,t)},d.isEmpty=function(n){return null==n||(A(n)&&(d.isArray(n)||d.isString(n)||d.isArguments(n))?0===n.length:0===d.keys(n).length)},d.isElement=function(n){return!(!n||1!==n.nodeType)},d.isArray=e||function(n){return"[object Array]"===p.call(n)},d.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(n){return p.call(n)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(n){return b(n,"callee")});var B=n.document&&n.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(d.isFunction=function(n){return"function"==typeof n||!1}),d.isFinite=function(n){return!d.isSymbol(n)&&isFinite(n)&&!isNaN(parseFloat(n))},d.isNaN=function(n){return d.isNumber(n)&&isNaN(n)},d.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===p.call(n)},d.isNull=function(n){return null===n},d.isUndefined=function(n){return void 0===n},d.has=function(n,t){if(!d.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},d.noConflict=function(){return n._=t,this},d.identity=function(n){return n},d.constant=function(n){return function(){return n}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(n){return k(n,t)}:_(t)},d.propertyOf=function(t){return null==t?function(){}:function(n){return d.isArray(n)?k(t,n):t[n]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(n){return d.isMatch(n,t)}},d.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},d.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},d.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=d.invert(H),W=function(t){var e=function(n){return t[n]},n="(?:"+d.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}};d.escape=W(H),d.unescape=W(R),d.result=function(n,t,e){d.isArray(t)||(t=[t]);var r=t.length;if(!r)return d.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=d.isFunction(o)?o.call(n):o}return n};var U=0;d.uniqueId=function(n){var t=++U+"";return n?n+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},$=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(n){return"\\"+K[n]};d.template=function(o,n,t){!n&&t&&(n=t),n=d.defaults({},n,d.templateSettings);var e,r=RegExp([(n.escape||q).source,(n.interpolate||q).source,(n.evaluate||q).source].join("|")+"|$","g"),a=0,u="__p+='";o.replace(r,function(n,t,e,r,i){return u+=o.slice(a,i).replace($,Q),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,d)},l=n.variable||"obj";return i.source="function("+l+"){\n"+u+"}",i},d.chain=function(n){var t=d(n);return t._chain=!0,t};var X=function(n,t){return n._chain?d(t).chain():t};d.mixin=function(e){return d.each(d.functions(e),function(n){var t=d[n]=e[n];d.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),X(this,t.apply(d,n))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];d.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],X(this,n)}}),d.each(["concat","join","slice"],function(n){var t=r[n];d.prototype[n]=function(){return X(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return d})}(),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,s){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()+")",this.element);this.increment=1,this.timer=0,e.addClass(i).bind("sek_load_img",{},function(){t._load_img(this)}),l(s).scroll(function(n){t._better_scroll_event_handler(e,n)}),l(s).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,s.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){l(t).trigger("sek_load_img")})},t.prototype._is_visible=function(n,t){var e=l(n),r=l(s).scrollTop(),i=r+l(s).height(),o=e.offset().top,a=o+e.height(),u=this.options.threshold;return!(!t||"scroll"!=t.type||!this.options.load_all_images_on_first_scroll)||r-u<=a&&o<=i+u},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")},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(a,u){var e="parallaxBg",r={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],matchMedia:"only screen and (max-width: 800px)"};function t(n,t){this.element=a(n),this.options=a.extend({},r,t,this.parseElementDataOptions()),this._defaults=r,this._name=e,this.init()}t.prototype.parseElementDataOptions=function(){return this.element.data()},t.prototype.init=function(){var t=this;this.$_document=a(document),this.$_window=a(u),this.doingAnimation=!1,_utils_.bindAll(this,"maybeParallaxMe","parallaxMe"),a(u).scroll(function(n){t.maybeParallaxMe()}),a(u).resize(_utils_.debounce(function(n){t.maybeParallaxMe()},100)),t.maybeParallaxMe()},t.prototype._is_visible=function(n){var t=this.element,e=a(u).scrollTop(),r=e+a(u).height(),i=t.offset().top,o=i+t.outerHeight();return!(!n||"scroll"!=n.type||!this.options.load_all_images_on_first_scroll)||e-0<=o&&i<=r+0},t.prototype.maybeParallaxMe=function(){var n=this;this._is_visible()&&(_utils_.isFunction(u.matchMedia)&&matchMedia(n.options.matchMedia).matches?this.element.css({"background-position-y":"","background-attachment":""}):this.doingAnimation||(this.doingAnimation=!0,u.requestAnimationFrame(function(){n.parallaxMe(),n.doingAnimation=!1})))},t.prototype.setTopPosition=function(n){n=n||0,this.element.css({"background-position-y":-1*n+"px","background-attachment":"fixed"})},t.prototype.parallaxMe=function(){var n=this.element,t=this.options.parallaxRatio,e=this.options.parallaxDirection,r=n.offset().top,i=t*e*(this.$_document.scrollTop()-r);this.setTopPosition(e*i)},a.fn[e]=function(n){return this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,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"]').parallaxBg(),t("body").on("sek-level-refreshed sek-section-added",function(n){"true"===t(this).attr("data-sek-bg-parallax")?t(this).parallaxBg():t(this).find('[data-sek-bg-parallax="true"]').parallaxBg()})}),jQuery(function(r){r("body").find(".sek-menu-module, .menu, .nav").on("click",'.menu-item [href^="#"]',function(n){n.preventDefault();var t=r(this).attr("href");if(""!==(t="string"==typeof t?t.replace("#",""):"")||null!==t){var e=r('[data-sek-level="location"]').find('[id="'+t+'"]');1===e.length&&r("html, body").animate({scrollTop:e.offset().top-150},"slow")}})}),jQuery(function(d){var n,o,a,u,l,s;!function(){var s="sek.sekDropdown",n="."+s,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";d(".sek-nav .children, .sek-nav .sub-menu").addClass(c),d(".sek-nav-wrap .page_item_has_children").addClass(i),d(".sek-nav ."+c+" ."+i).addClass(t);var l,f,p;l=a,d(document).on("mouseenter",l,function(){var t=d(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",l,function(){var t=d(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"===d("html").attr("dir"),p=!1,d(window).on("resize",function(){p||(p=!0,window.requestAnimationFrame(function(){d(u+"."+r).trigger(e.PLACE_ME),p=!1}))}),d(document).on(e.PLACE_ALL,function(){d(u).trigger(e.PLACE_ME)}).on(e.SHOWN+" "+e.PLACE_ME,u,function(n){n.stopPropagation(),function(n,t){if(t&&t.namespace&&s===t.namespace){var e,r,i,o,a,u,l=n.children("."+c);l.length&&(n.css("overflow","hidden"),l.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){d.each(n,function(){var n=d(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=l).parent().closest("."+o.DROPDOWN).hasClass(o.OPEN_PREFIX+i._OPPOSITE)?u(i._OPPOSITE):u(i._DEFAULT),e.offset().left+e.width()>d(window).width()?u("left"):e.offset().left<0&&u("right"),l.css({zIndex:"",display:""}),n.css("overflow",""))}}(d(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",l="sek-collapsing",s="sek-collapsed",d(document).on(o.CLICK_DATA_API,'[data-sek-toggle="sek-collapse"]',function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=d(this),e=t.data("target");d(e).each(function(){var r=d(this),i=r.hasClass(a);r.stop()[i?"slideUp":"slideDown"]({duration:400,start:function(){r.addClass(l).trigger(i?o.HIDE:o.SHOW),i?t.addClass(s).attr("aria-expanded","false"):t.removeClass(s).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(l+" "+n).addClass(t).trigger(e),function(n){(n=n||d(this)).css({display:"",paddingTop:"",marginTop:"",paddingBottom:"",marginBottom:"",height:""})}(r)}})})}),d(document).on("mouseenter",".sek-nav-toggler",function(){d(this).addClass("hovering")}).on("mouseleave",".sek-nav-toggler",function(){d(this).removeClass("hovering")}).on("show.sek.sekCollapse hide.sek.sekCollapse",".sek-nav-collapse",function(){d("[data-target=#"+d(this).attr("id")+"]").removeClass("hovering"),d(window).trigger("scroll")})});
|
inc/sektions/ccat-sektions.php
CHANGED
@@ -617,8 +617,8 @@ function sek_front_needs_font_awesome( $bool = false, $recursive_data = null ) {
|
|
617 |
}
|
618 |
return $bool;
|
619 |
}
|
620 |
-
function sek_front_needs_magnific_popup( $bool =
|
621 |
-
if (
|
622 |
if ( is_null( $recursive_data ) ) {
|
623 |
$local_skope_settings = sek_get_skoped_seks( skp_get_skope_id() );
|
624 |
$local_collection = ( is_array( $local_skope_settings ) && !empty( $local_skope_settings['collection'] ) ) ? $local_skope_settings['collection'] : array();
|
@@ -627,14 +627,14 @@ function sek_front_needs_magnific_popup( $bool = '_not_set_', $recursive_data =
|
|
627 |
|
628 |
$recursive_data = array_merge( $local_collection, $global_collection );
|
629 |
}
|
|
|
630 |
foreach ($recursive_data as $key => $value) {
|
631 |
if ( is_string( $value ) && 'img-lightbox' === $value ) {
|
632 |
$bool = true;
|
633 |
break;
|
634 |
-
}
|
635 |
-
|
636 |
-
|
637 |
-
}
|
638 |
}
|
639 |
}
|
640 |
}
|
617 |
}
|
618 |
return $bool;
|
619 |
}
|
620 |
+
function sek_front_needs_magnific_popup( $bool = false, $recursive_data = null ) {
|
621 |
+
if ( !$bool ) {
|
622 |
if ( is_null( $recursive_data ) ) {
|
623 |
$local_skope_settings = sek_get_skoped_seks( skp_get_skope_id() );
|
624 |
$local_collection = ( is_array( $local_skope_settings ) && !empty( $local_skope_settings['collection'] ) ) ? $local_skope_settings['collection'] : array();
|
627 |
|
628 |
$recursive_data = array_merge( $local_collection, $global_collection );
|
629 |
}
|
630 |
+
|
631 |
foreach ($recursive_data as $key => $value) {
|
632 |
if ( is_string( $value ) && 'img-lightbox' === $value ) {
|
633 |
$bool = true;
|
634 |
break;
|
635 |
+
}
|
636 |
+
if ( is_array( $value ) ) {
|
637 |
+
$bool = sek_front_needs_magnific_popup( $bool, $value );
|
|
|
638 |
}
|
639 |
}
|
640 |
}
|
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.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,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
/* ------------------------------------------------------------------------- *
|
14 |
* CONSTANTS
|
15 |
/* ------------------------------------------------------------------------- */
|
16 |
-
$current_version = "1.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 ) ); }
|
@@ -27,7 +27,7 @@ if ( !defined( 'NIMBLE_SAVED_SECTIONS_ENABLED' ) ) { define ( 'NIMBLE_SAVED_SECT
|
|
27 |
if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
|
28 |
|
29 |
if ( !defined( 'NIMBLE_DISPLAY_UPDATE_NOTICE' ) ) { define( 'NIMBLE_DISPLAY_UPDATE_NOTICE', true ); }
|
30 |
-
if ( !defined( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION', '1.4.
|
31 |
if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
|
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 ); }
|
2 |
/**
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Description: Powerful drag and drop page builder using the native WordPress customizer.
|
5 |
+
* Version: 1.4.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 |
/* ------------------------------------------------------------------------- *
|
14 |
* CONSTANTS
|
15 |
/* ------------------------------------------------------------------------- */
|
16 |
+
$current_version = "1.4.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 ) ); }
|
27 |
if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
|
28 |
|
29 |
if ( !defined( 'NIMBLE_DISPLAY_UPDATE_NOTICE' ) ) { define( 'NIMBLE_DISPLAY_UPDATE_NOTICE', true ); }
|
30 |
+
if ( !defined( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION', '1.4.7' ); }
|
31 |
if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
|
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 ); }
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, customizer, drag and drop, header, footer, landing page
|
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
Tested up to: 5.0.3
|
9 |
-
Stable tag: 1.4.
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -56,13 +56,17 @@ You'll find an online knowledge base for the Nimble builder here : [Nimble build
|
|
56 |
The Nimble builder works with any WordPress theme. If you experience any problem with a specific theme, please report it in the [plugin support forum](https://wordpress.org/support/plugin/nimble-builder).
|
57 |
|
58 |
== Upgrade Notice ==
|
59 |
-
= 1.4.
|
60 |
-
|
61 |
|
62 |
== Changelog ==
|
63 |
-
= 1.4.
|
|
|
|
|
|
|
64 |
* fixed : when no stylesheet file has been generated on front, the fallback hook to print the inline stylesheet is not defined.
|
65 |
* added : [Image module] implement a simple lightbox option
|
|
|
66 |
|
67 |
= 1.4.5 : January 26th, 2019 =
|
68 |
* fixed : Dynamic CSS : the font-size input should not have a default value
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
Tested up to: 5.0.3
|
9 |
+
Stable tag: 1.4.7
|
10 |
License: GPLv3
|
11 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
56 |
The Nimble builder works with any WordPress theme. If you experience any problem with a specific theme, please report it in the [plugin support forum](https://wordpress.org/support/plugin/nimble-builder).
|
57 |
|
58 |
== Upgrade Notice ==
|
59 |
+
= 1.4.7 =
|
60 |
+
Fixed minor bug with recently introduced lightbox for image module.
|
61 |
|
62 |
== Changelog ==
|
63 |
+
= 1.4.7 : February 2nd, 2019 =
|
64 |
+
* fixed : image lightbox not working
|
65 |
+
|
66 |
+
= 1.4.6 : February 1st, 2019 =
|
67 |
* fixed : when no stylesheet file has been generated on front, the fallback hook to print the inline stylesheet is not defined.
|
68 |
* added : [Image module] implement a simple lightbox option
|
69 |
+
* added : an admin bar "quick link" to edit a page, post or term with the Nimble Builder
|
70 |
|
71 |
= 1.4.5 : January 26th, 2019 =
|
72 |
* fixed : Dynamic CSS : the font-size input should not have a default value
|