diff --git a/assets/czr/js/czr-control-base.js b/assets/czr/js/czr-control-base.js
index cac8259d..4b659e8b 100644
--- a/assets/czr/js/czr-control-base.js
+++ b/assets/czr/js/czr-control-base.js
@@ -380,49 +380,6 @@ if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push
'czr-customize-section-pro' : proSectionConstructor
});
}
-
-
-
- /*****************************************************************************
- * FIRE PRESS CUSTOMIZR ON READY
- *****************************************************************************/
- api.bind( 'ready' , function() {
- if ( serverControlParams.isPressCustomizrOn ) {
- api.czr_pcBase = new api.CZR_PCBase();
- }
- } );
-})( wp.customize , jQuery, _);
-/*****************************************************************************
-* THE PC BASE OBJECT
-*****************************************************************************/
-var CZRPCBaseMths = CZRPCBaseMths || {};
-(function ( api, $, _ ) {
- $.extend( CZRPCBaseMths, {
-
- initialize: function() {
- api.czr_PCDataReady = $.Deferred();
- api.czr_PCData = api.czr_PCData || new api.Value();
-
- api.bind( 'ready', function() {
- api.previewer.bind( 'czr-pc-synced', function( data ) {
- api.czr_PCData( data );
- if ( 'pending' == api.czr_PCDataReady.state() ) {
- api.czr_PCDataReady.resolve( data );
- }
- });
- });
-
- api.czr_PCDataReady.done( function( data ) {
- console.log('NOW LET US HAVE FUN', data );
- });
- },//initialize
-
-
-
-
- });//$.extend
-
-
})( wp.customize , jQuery, _);
@@ -5050,7 +5007,7 @@ $.extend( CZRSkopeMths, {
};//api.previewer.query
});//api.bind('ready')
-})( wp.customize , jQuery, _ );//only fired if ( serverControlParams.isSkopOn )
+})( wp.customize , jQuery, _ );
( function ( api, $, _ ) {
api.bind( 'czr-skope-started', function() {
api.previewer.save = function( args ) {
@@ -10313,7 +10270,7 @@ $.extend( CZRLayoutSelectMths , {
});
},
});//$.extend
-})( wp.customize , jQuery, _ );//global serverControlParams
+})( wp.customize , jQuery, _ );
( function ( api, $, _ ) {
$.extend( CZRBaseControlMths, api.Events );
$.extend( api.Control.prototype, api.Events );//ensures that the default WP control constructor is extended as well
@@ -10326,15 +10283,10 @@ $.extend( CZRLayoutSelectMths , {
$.extend( CZRInputMths, api.CZR_Helpers );
$.extend( CZRModuleMths, api.CZR_Helpers );
$.extend( CZRSkopeMths, api.CZR_Helpers );
- if ( serverControlParams.isSkopOn ) {
- api.CZR_skopeBase = api.Class.extend( CZRSkopeBaseMths );
- api.CZR_skopeSave = api.Class.extend( CZRSkopeSaveMths );
- api.CZR_skopeReset = api.Class.extend( CZRSkopeResetMths );
- api.CZR_skope = api.Value.extend( CZRSkopeMths ); //=> used as constructor when creating the collection of skopes
- }
- if ( serverControlParams.isPressCustomizrOn ) {
- api.CZR_PCBase = api.Class.extend( CZRPCBaseMths );
- }
+ api.CZR_skopeBase = api.Class.extend( CZRSkopeBaseMths );
+ api.CZR_skopeSave = api.Class.extend( CZRSkopeSaveMths );
+ api.CZR_skopeReset = api.Class.extend( CZRSkopeResetMths );
+ api.CZR_skope = api.Value.extend( CZRSkopeMths ); //=> used as constructor when creating the collection of skopes
if ( _.has(api, 'HeaderTool') ) {
api.czr_HeaderTool = $.extend( true, {}, api.HeaderTool );
}
diff --git a/assets/czr/js/czr-preview-base.js b/assets/czr/js/czr-preview-base.js
index bc420210..c827f360 100644
--- a/assets/czr/js/czr-preview-base.js
+++ b/assets/czr/js/czr-preview-base.js
@@ -1,236 +1,201 @@
-//@global CZRPreviewParams
-( function( api, $, _ ) {
-
- /* ------------------------------------------------------------------------- *
- * Skop Sync
- /* ------------------------------------------------------------------------- */
- if ( CZRPreviewParams.isSkopOn ) {
- $( function() {
- api.preview.bind( 'sync', function( events ) {
- api.preview.send( 'czr-skopes-synced', {
- czr_skopes : _wpCustomizeSettings.czr_skopes || [],
- isChangesetDirty : _wpCustomizeSettings.isChangesetDirty || false,
- skopeGlobalDBOpt : _wpCustomizeSettings.skopeGlobalDBOpt || [],
- } );
- });
- });
- }
-
-
- /* ------------------------------------------------------------------------- *
- * Press Customizr sync
- /* ------------------------------------------------------------------------- */
- if ( CZRPreviewParams.isPressCustomizrOn ) {
- $( function() {
- api.preview.bind( 'sync', function( events ) {
- api.preview.send( 'czr-pc-synced', {
- czr_pc_skope : _wpCustomizeSettings.czr_pc_skope || [],
- czr_wpQueryInfosForBuilder : _wpCustomizeSettings.czr_wpQueryInfosForBuilder
- // isChangesetDirty : _wpCustomizeSettings.isChangesetDirty || false,
- // skopeGlobalDBOpt : _wpCustomizeSettings.skopeGlobalDBOpt || [],
- } );
- });
- });
- }
-
-
- /* ------------------------------------------------------------------------- *
- * Sektion events
- /* ------------------------------------------------------------------------- */
- wp.customize.bind( 'preview-ready', function() {
- wp.customize.preview.bind('edit_sek', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
- return;
- $('html, body').animate({
- scrollTop : $('[data-sek-id="' + o.id +'"]').offset().top - 50
- }, 'slow');
- });
-
- wp.customize.preview.bind('start_hovering_sek', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
- return;
- var $_sek = $('[data-sek-id="' + o.id +'"]'),
- _width = $_sek.outerWidth(),
- _height = $_sek.outerHeight();
- $_sek.closest('.czr-sektion').find('.czr-hover-placeholder').each( function(){ $(this).remove(); } );
- $.when( $_sek.append( $( '
', {
- class : 'czr-hover-placeholder',
- style : 'width:' + _width +'px;height:' + _height +'px;line-height:' + _height +'px;',
- html : 'create'
- })
- ) ).done( function() {
- $('.czr-hover-placeholder').css('opacity', 1).fitText( 0.3, { minFontSize: '50px', maxFontSize: '100px' } );
- });
- });
-
- wp.customize.preview.bind('stop_hovering_sek', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
- return;
-
- var $_sek = $('[data-sek-id="' + o.id +'"]');
- $.when( $_sek.find('.czr-hover-placeholder').fadeOut(200) ).done( function() {$_sek.find('.czr-hover-placeholder').remove(); });
- });
- wp.customize.preview.bind('edit_module', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
- return;
- $('html, body').animate({
- scrollTop : $('[data-module-id="' + o.id +'"]').offset().top - 50
- }, 'slow');
- });
-
- wp.customize.preview.bind('start_hovering_module', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
- return;
- var $_module = $('[data-module-id="' + o.id +'"]'),
- _width = $_module.outerWidth(),
- _height = $_module.outerHeight();
- $_module.closest('.czr-sektion').find('.czr-hover-placeholder').each( function(){ $(this).remove(); } );
- $.when( $_module.append( $( '', {
- class : 'czr-hover-placeholder',
- style : 'width:' + _width +'px;height:' + _height +'px;line-height:' + _height +'px;',
- html : 'create'
- })
- ) ).done( function() {
- $('.czr-hover-placeholder').css('opacity', 1).fitText( 0.3, { minFontSize: '50px', maxFontSize: '100px' } );
- });
- });
-
- wp.customize.preview.bind('stop_hovering_module', function(o) {
- if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
- return;
-
- var $_module = $('[data-module-id="' + o.id +'"]');
- $.when( $_module.find('.czr-hover-placeholder').fadeOut(200) ).done( function() {$_module.find('.czr-hover-placeholder').remove(); });
- });
- });
-
-
- if ( CZRPreviewParams && ! CZRPreviewParams.preview_ready_event_exists ) {
- api.czr_preview = new api.CZR_preview();
- }
- else {
- api.bind( 'preview-ready', function(){
- api.preview.bind( 'active', function() {
- api.czr_preview = new api.CZR_preview();
- });
- });
- }
-
-
-
-
- api.CZR_preview = api.Class.extend( {
- setting_cbs : {},
- subsetting_cbs : {},//nested sub settings
- input_cbs : {},
- _wp_sets : CZRPreviewParams.wpBuiltinSettings || [],
- _theme_options_name : CZRPreviewParams.themeOptions,
- initialize: function() {
- var self = this;
- this.pre_setting_cbs = _.extend( self.pre_setting_cbs, self.getPreSettingCbs() );
- this.setting_cbs = _.extend( self.setting_cbs, self.getSettingCbs() );
- this.subsetting_cbs = _.extend( self.subsetting_cbs, self.getSubSettingCbs() );
- this.input_cbs = _.extend( self.input_cbs, self.getInputCbs() );
-
- this.syncData();
-
- this.addCbs();
- $( 'body' ).removeClass( 'wp-customizer-unloading' );
- },
- getPreSettingCbs : function() { return {}; },
- getSettingCbs : function() { return {}; },
- getSubSettingCbs : function() { return {}; },
- getInputCbs : function() { return {}; },
- syncData : function() {
- api.preview.send( 'czr-query-data-ready', api.settings.czr_wpQueryInfos );
- api.preview.send( 'houston-widget-settings',
- _.extend( _wpWidgetCustomizerPreviewSettings,
- {
- availableWidgetLocations : _.values( api.settings.availableWidgetLocations )
- }
- )
- );
- api.preview.send(
- 'czr-partial-refresh-data',
- typeof( undefined ) === typeof( _customizePartialRefreshExports ) ? {} : _customizePartialRefreshExports.partials
- );
- },
-
- addCbs : function() {
- var self = this;
- api.preview.bind( 'pre_setting', function( args ) {
- args = args || {};
- var _setId = args.set_id;
- if ( ! api.has( self._build_setId( _setId ) ) )
- return;
- var _opt_name = self._get_option_name( args.set_id );
- if ( ! _.has( self.pre_setting_cbs, _opt_name ) || ! _.isFunction( self.pre_setting_cbs[ _opt_name ] ) )
- return;
- self.pre_setting_cbs[ _opt_name ]( args );
- });
- _.each( self.setting_cbs, function( _cb, _setId ) {
- if ( ! api.has( self._build_setId( _setId ) ) )
- return;
- if ( _.isFunction( self.setting_cbs[ _setId ] ) ) {
- api( self._build_setId(_setId) ).bind( self.setting_cbs[ _setId ] );
+( function( api, $, _ ) {
+ $( function() {
+ api.preview.bind( 'sync', function( events ) {
+ api.preview.send( 'czr-skopes-synced', {
+ czr_skopes : _wpCustomizeSettings.czr_skopes || [],
+ isChangesetDirty : _wpCustomizeSettings.isChangesetDirty || false,
+ skopeGlobalDBOpt : _wpCustomizeSettings.skopeGlobalDBOpt || [],
+ } );
+ });
+ });
+ wp.customize.bind( 'preview-ready', function() {
+ wp.customize.preview.bind('edit_sek', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
+ return;
+ $('html, body').animate({
+ scrollTop : $('[data-sek-id="' + o.id +'"]').offset().top - 50
+ }, 'slow');
+ });
+
+ wp.customize.preview.bind('start_hovering_sek', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
+ return;
+ var $_sek = $('[data-sek-id="' + o.id +'"]'),
+ _width = $_sek.outerWidth(),
+ _height = $_sek.outerHeight();
+ $_sek.closest('.czr-sektion').find('.czr-hover-placeholder').each( function(){ $(this).remove(); } );
+ $.when( $_sek.append( $( '', {
+ class : 'czr-hover-placeholder',
+ style : 'width:' + _width +'px;height:' + _height +'px;line-height:' + _height +'px;',
+ html : 'create'
+ })
+ ) ).done( function() {
+ $('.czr-hover-placeholder').css('opacity', 1).fitText( 0.3, { minFontSize: '50px', maxFontSize: '100px' } );
+ });
+ });
+
+ wp.customize.preview.bind('stop_hovering_sek', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-sek-id="' + o.id +'"]').length )
+ return;
+
+ var $_sek = $('[data-sek-id="' + o.id +'"]');
+ $.when( $_sek.find('.czr-hover-placeholder').fadeOut(200) ).done( function() {$_sek.find('.czr-hover-placeholder').remove(); });
+ });
+ wp.customize.preview.bind('edit_module', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
+ return;
+ $('html, body').animate({
+ scrollTop : $('[data-module-id="' + o.id +'"]').offset().top - 50
+ }, 'slow');
+ });
+
+ wp.customize.preview.bind('start_hovering_module', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
+ return;
+ var $_module = $('[data-module-id="' + o.id +'"]'),
+ _width = $_module.outerWidth(),
+ _height = $_module.outerHeight();
+ $_module.closest('.czr-sektion').find('.czr-hover-placeholder').each( function(){ $(this).remove(); } );
+ $.when( $_module.append( $( '', {
+ class : 'czr-hover-placeholder',
+ style : 'width:' + _width +'px;height:' + _height +'px;line-height:' + _height +'px;',
+ html : 'create'
+ })
+ ) ).done( function() {
+ $('.czr-hover-placeholder').css('opacity', 1).fitText( 0.3, { minFontSize: '50px', maxFontSize: '100px' } );
+ });
+ });
+
+ wp.customize.preview.bind('stop_hovering_module', function(o) {
+ if ( ! _.has( o, 'id') || ! $('[data-module-id="' + o.id +'"]').length )
+ return;
+
+ var $_module = $('[data-module-id="' + o.id +'"]');
+ $.when( $_module.find('.czr-hover-placeholder').fadeOut(200) ).done( function() {$_module.find('.czr-hover-placeholder').remove(); });
+ });
+ });
+ if ( CZRPreviewParams && ! CZRPreviewParams.preview_ready_event_exists ) {
+ api.czr_preview = new api.CZR_preview();
+ }
+ else {
+ api.bind( 'preview-ready', function(){
+ api.preview.bind( 'active', function() {
+ api.czr_preview = new api.CZR_preview();
+ });
+ });
+ }
+ api.CZR_preview = api.Class.extend( {
+ setting_cbs : {},
+ subsetting_cbs : {},//nested sub settings
+ input_cbs : {},
+ _wp_sets : CZRPreviewParams.wpBuiltinSettings || [],
+ _theme_options_name : CZRPreviewParams.themeOptions,
+ initialize: function() {
+ var self = this;
+ this.pre_setting_cbs = _.extend( self.pre_setting_cbs, self.getPreSettingCbs() );
+ this.setting_cbs = _.extend( self.setting_cbs, self.getSettingCbs() );
+ this.subsetting_cbs = _.extend( self.subsetting_cbs, self.getSubSettingCbs() );
+ this.input_cbs = _.extend( self.input_cbs, self.getInputCbs() );
+
+ this.syncData();
+
+ this.addCbs();
+ $( 'body' ).removeClass( 'wp-customizer-unloading' );
+ },
+ getPreSettingCbs : function() { return {}; },
+ getSettingCbs : function() { return {}; },
+ getSubSettingCbs : function() { return {}; },
+ getInputCbs : function() { return {}; },
+ syncData : function() {
+ api.preview.send( 'czr-query-data-ready', api.settings.czr_wpQueryInfos );
+ api.preview.send( 'houston-widget-settings',
+ _.extend( _wpWidgetCustomizerPreviewSettings,
+ {
+ availableWidgetLocations : _.values( api.settings.availableWidgetLocations )
}
- } );
- api.preview.bind( 'sub_setting', function( args ) {
- var _opt_name = self._get_option_name( args.set_id );
- if ( ! _.has(self.subsetting_cbs, _opt_name) )
- return;
- if ( ! _.has( self.subsetting_cbs[ _opt_name ], args.changed_prop ) )
- return;
- self.subsetting_cbs[ _opt_name ][ args.changed_prop ]( args );
- });
- api.preview.bind( 'czr_input', function( args ) {
- var _defaults = {
- set_id : '',
- module_id : '',
- item_id : '',
- input_id : '',
- value : null
- };
- args = _.extend ( _defaults, args );
- var _opt_name = self._get_option_name( args.set_id );
- if ( ! _.has( self.input_cbs, _opt_name ) )
- return;
- if ( ! _.has( self.input_cbs[ _opt_name ], args.input_id ) )
- return;
- self.input_cbs[ _opt_name ][ args.input_id ]( args );
- });
- api.selectiveRefresh.bind( 'partial-content-rendered', function( params ) {
- if ( ! _.has( params, 'partial' ) || ! _.has( params.partial, 'id' ) )
- return;
- var _shortOptName = params.partial.id;
- api.preview.send( 'czr-partial-refresh-done', { set_id : self._build_setId( params.partial.id ) } );
- });
- },
- _build_setId : function ( name ) {
- var self = this;
- if ( _.contains( self._wp_sets, name ) )
- return name;
- return -1 == name.indexOf( self._theme_options_name) ? [ self._theme_options_name + '[' , name , ']' ].join('') : name;
- },
-
- _get_option_name : function(name) {
- var self = this;
- return name.replace(/\[|\]/g, '').replace(self._theme_options_name, '');
- },
- _is_external : function( _href ) {
- var _thisHref = $.trim( _href ),
- _main_domain = (location.host).split('.').slice(-2).join('.'),
- _reg = new RegExp( _main_domain );
-
- if ( _thisHref !== '' && _thisHref != '#' && _isValidURL( _thisHref ) )
- return ! _reg.test( _thisHref );
- return;
- },
- _isValidURL : function(_url){
- var _pattern = /(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
- return _pattern.test( _url );
- }
- });//api.Class.extend
+ )
+ );
+ api.preview.send(
+ 'czr-partial-refresh-data',
+ typeof( undefined ) === typeof( _customizePartialRefreshExports ) ? {} : _customizePartialRefreshExports.partials
+ );
+ },
+
+ addCbs : function() {
+ var self = this;
+ api.preview.bind( 'pre_setting', function( args ) {
+ args = args || {};
+ var _setId = args.set_id;
+ if ( ! api.has( self._build_setId( _setId ) ) )
+ return;
+ var _opt_name = self._get_option_name( args.set_id );
+ if ( ! _.has( self.pre_setting_cbs, _opt_name ) || ! _.isFunction( self.pre_setting_cbs[ _opt_name ] ) )
+ return;
+ self.pre_setting_cbs[ _opt_name ]( args );
+ });
+ _.each( self.setting_cbs, function( _cb, _setId ) {
+ if ( ! api.has( self._build_setId( _setId ) ) )
+ return;
+ if ( _.isFunction( self.setting_cbs[ _setId ] ) ) {
+ api( self._build_setId(_setId) ).bind( self.setting_cbs[ _setId ] );
+ }
+ } );
+ api.preview.bind( 'sub_setting', function( args ) {
+ var _opt_name = self._get_option_name( args.set_id );
+ if ( ! _.has(self.subsetting_cbs, _opt_name) )
+ return;
+ if ( ! _.has( self.subsetting_cbs[ _opt_name ], args.changed_prop ) )
+ return;
+ self.subsetting_cbs[ _opt_name ][ args.changed_prop ]( args );
+ });
+ api.preview.bind( 'czr_input', function( args ) {
+ var _defaults = {
+ set_id : '',
+ module_id : '',
+ item_id : '',
+ input_id : '',
+ value : null
+ };
+ args = _.extend ( _defaults, args );
+ var _opt_name = self._get_option_name( args.set_id );
+ if ( ! _.has( self.input_cbs, _opt_name ) )
+ return;
+ if ( ! _.has( self.input_cbs[ _opt_name ], args.input_id ) )
+ return;
+ self.input_cbs[ _opt_name ][ args.input_id ]( args );
+ });
+ api.selectiveRefresh.bind( 'partial-content-rendered', function( params ) {
+ if ( ! _.has( params, 'partial' ) || ! _.has( params.partial, 'id' ) )
+ return;
+ var _shortOptName = params.partial.id;
+ api.preview.send( 'czr-partial-refresh-done', { set_id : self._build_setId( params.partial.id ) } );
+ });
+ },
+ _build_setId : function ( name ) {
+ var self = this;
+ if ( _.contains( self._wp_sets, name ) )
+ return name;
+ return -1 == name.indexOf( self._theme_options_name) ? [ self._theme_options_name + '[' , name , ']' ].join('') : name;
+ },
+
+ _get_option_name : function(name) {
+ var self = this;
+ return name.replace(/\[|\]/g, '').replace(self._theme_options_name, '');
+ },
+ _is_external : function( _href ) {
+ var _thisHref = $.trim( _href ),
+ _main_domain = (location.host).split('.').slice(-2).join('.'),
+ _reg = new RegExp( _main_domain );
+
+ if ( _thisHref !== '' && _thisHref != '#' && _isValidURL( _thisHref ) )
+ return ! _reg.test( _thisHref );
+ return;
+ },
+ _isValidURL : function(_url){
+ var _pattern = /(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
+ return _pattern.test( _url );
+ }
+ });//api.Class.extend
} )( wp.customize, jQuery, _ );
\ No newline at end of file
diff --git a/assets/czr/js/czr-preview-base.min.js b/assets/czr/js/czr-preview-base.min.js
index c26dd906..7729dcad 100644
--- a/assets/czr/js/czr-preview-base.min.js
+++ b/assets/czr/js/czr-preview-base.min.js
@@ -1 +1 @@
-!function(a,b,c){CZRPreviewParams.isSkopOn&&b(function(){a.preview.bind("sync",function(b){a.preview.send("czr-skopes-synced",{czr_skopes:_wpCustomizeSettings.czr_skopes||[],isChangesetDirty:_wpCustomizeSettings.isChangesetDirty||!1,skopeGlobalDBOpt:_wpCustomizeSettings.skopeGlobalDBOpt||[]})})}),CZRPreviewParams.isPressCustomizrOn&&b(function(){a.preview.bind("sync",function(b){a.preview.send("czr-pc-synced",{czr_pc_skope:_wpCustomizeSettings.czr_pc_skope||[],czr_wpQueryInfosForBuilder:_wpCustomizeSettings.czr_wpQueryInfosForBuilder})})}),wp.customize.bind("preview-ready",function(){wp.customize.preview.bind("edit_sek",function(a){c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length&&b("html, body").animate({scrollTop:b('[data-sek-id="'+a.id+'"]').offset().top-50},"slow")}),wp.customize.preview.bind("start_hovering_sek",function(a){if(c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length){var d=b('[data-sek-id="'+a.id+'"]'),e=d.outerWidth(),f=d.outerHeight();d.closest(".czr-sektion").find(".czr-hover-placeholder").each(function(){b(this).remove()}),b.when(d.append(b("",{"class":"czr-hover-placeholder",style:"width:"+e+"px;height:"+f+"px;line-height:"+f+"px;",html:'create'}))).done(function(){b(".czr-hover-placeholder").css("opacity",1).fitText(.3,{minFontSize:"50px",maxFontSize:"100px"})})}}),wp.customize.preview.bind("stop_hovering_sek",function(a){if(c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length){var d=b('[data-sek-id="'+a.id+'"]');b.when(d.find(".czr-hover-placeholder").fadeOut(200)).done(function(){d.find(".czr-hover-placeholder").remove()})}}),wp.customize.preview.bind("edit_module",function(a){c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length&&b("html, body").animate({scrollTop:b('[data-module-id="'+a.id+'"]').offset().top-50},"slow")}),wp.customize.preview.bind("start_hovering_module",function(a){if(c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length){var d=b('[data-module-id="'+a.id+'"]'),e=d.outerWidth(),f=d.outerHeight();d.closest(".czr-sektion").find(".czr-hover-placeholder").each(function(){b(this).remove()}),b.when(d.append(b("",{"class":"czr-hover-placeholder",style:"width:"+e+"px;height:"+f+"px;line-height:"+f+"px;",html:'create'}))).done(function(){b(".czr-hover-placeholder").css("opacity",1).fitText(.3,{minFontSize:"50px",maxFontSize:"100px"})})}}),wp.customize.preview.bind("stop_hovering_module",function(a){if(c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length){var d=b('[data-module-id="'+a.id+'"]');b.when(d.find(".czr-hover-placeholder").fadeOut(200)).done(function(){d.find(".czr-hover-placeholder").remove()})}})}),CZRPreviewParams&&!CZRPreviewParams.preview_ready_event_exists?a.czr_preview=new a.CZR_preview:a.bind("preview-ready",function(){a.preview.bind("active",function(){a.czr_preview=new a.CZR_preview})}),a.CZR_preview=a.Class.extend({setting_cbs:{},subsetting_cbs:{},input_cbs:{},_wp_sets:CZRPreviewParams.wpBuiltinSettings||[],_theme_options_name:CZRPreviewParams.themeOptions,initialize:function(){var a=this;this.pre_setting_cbs=c.extend(a.pre_setting_cbs,a.getPreSettingCbs()),this.setting_cbs=c.extend(a.setting_cbs,a.getSettingCbs()),this.subsetting_cbs=c.extend(a.subsetting_cbs,a.getSubSettingCbs()),this.input_cbs=c.extend(a.input_cbs,a.getInputCbs()),this.syncData(),this.addCbs(),b("body").removeClass("wp-customizer-unloading")},getPreSettingCbs:function(){return{}},getSettingCbs:function(){return{}},getSubSettingCbs:function(){return{}},getInputCbs:function(){return{}},syncData:function(){a.preview.send("czr-query-data-ready",a.settings.czr_wpQueryInfos),a.preview.send("houston-widget-settings",c.extend(_wpWidgetCustomizerPreviewSettings,{availableWidgetLocations:c.values(a.settings.availableWidgetLocations)})),a.preview.send("czr-partial-refresh-data","undefined"==typeof _customizePartialRefreshExports?{}:_customizePartialRefreshExports.partials)},addCbs:function(){var b=this;a.preview.bind("pre_setting",function(d){d=d||{};var e=d.set_id;if(a.has(b._build_setId(e))){var f=b._get_option_name(d.set_id);c.has(b.pre_setting_cbs,f)&&c.isFunction(b.pre_setting_cbs[f])&&b.pre_setting_cbs[f](d)}}),c.each(b.setting_cbs,function(d,e){a.has(b._build_setId(e))&&c.isFunction(b.setting_cbs[e])&&a(b._build_setId(e)).bind(b.setting_cbs[e])}),a.preview.bind("sub_setting",function(a){var d=b._get_option_name(a.set_id);c.has(b.subsetting_cbs,d)&&c.has(b.subsetting_cbs[d],a.changed_prop)&&b.subsetting_cbs[d][a.changed_prop](a)}),a.preview.bind("czr_input",function(a){var d={set_id:"",module_id:"",item_id:"",input_id:"",value:null};a=c.extend(d,a);var e=b._get_option_name(a.set_id);c.has(b.input_cbs,e)&&c.has(b.input_cbs[e],a.input_id)&&b.input_cbs[e][a.input_id](a)}),a.selectiveRefresh.bind("partial-content-rendered",function(d){if(c.has(d,"partial")&&c.has(d.partial,"id")){d.partial.id;a.preview.send("czr-partial-refresh-done",{set_id:b._build_setId(d.partial.id)})}})},_build_setId:function(a){var b=this;return c.contains(b._wp_sets,a)?a:-1==a.indexOf(b._theme_options_name)?[b._theme_options_name+"[",a,"]"].join(""):a},_get_option_name:function(a){var b=this;return a.replace(/\[|\]/g,"").replace(b._theme_options_name,"")},_is_external:function(a){var c=b.trim(a),d=location.host.split(".").slice(-2).join("."),e=new RegExp(d);if(""!==c&&"#"!=c&&_isValidURL(c))return!e.test(c)},_isValidURL:function(a){var b=/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)}})}(wp.customize,jQuery,_);
\ No newline at end of file
+!function(a,b,c){b(function(){a.preview.bind("sync",function(b){a.preview.send("czr-skopes-synced",{czr_skopes:_wpCustomizeSettings.czr_skopes||[],isChangesetDirty:_wpCustomizeSettings.isChangesetDirty||!1,skopeGlobalDBOpt:_wpCustomizeSettings.skopeGlobalDBOpt||[]})})}),wp.customize.bind("preview-ready",function(){wp.customize.preview.bind("edit_sek",function(a){c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length&&b("html, body").animate({scrollTop:b('[data-sek-id="'+a.id+'"]').offset().top-50},"slow")}),wp.customize.preview.bind("start_hovering_sek",function(a){if(c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length){var d=b('[data-sek-id="'+a.id+'"]'),e=d.outerWidth(),f=d.outerHeight();d.closest(".czr-sektion").find(".czr-hover-placeholder").each(function(){b(this).remove()}),b.when(d.append(b("",{"class":"czr-hover-placeholder",style:"width:"+e+"px;height:"+f+"px;line-height:"+f+"px;",html:'create'}))).done(function(){b(".czr-hover-placeholder").css("opacity",1).fitText(.3,{minFontSize:"50px",maxFontSize:"100px"})})}}),wp.customize.preview.bind("stop_hovering_sek",function(a){if(c.has(a,"id")&&b('[data-sek-id="'+a.id+'"]').length){var d=b('[data-sek-id="'+a.id+'"]');b.when(d.find(".czr-hover-placeholder").fadeOut(200)).done(function(){d.find(".czr-hover-placeholder").remove()})}}),wp.customize.preview.bind("edit_module",function(a){c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length&&b("html, body").animate({scrollTop:b('[data-module-id="'+a.id+'"]').offset().top-50},"slow")}),wp.customize.preview.bind("start_hovering_module",function(a){if(c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length){var d=b('[data-module-id="'+a.id+'"]'),e=d.outerWidth(),f=d.outerHeight();d.closest(".czr-sektion").find(".czr-hover-placeholder").each(function(){b(this).remove()}),b.when(d.append(b("",{"class":"czr-hover-placeholder",style:"width:"+e+"px;height:"+f+"px;line-height:"+f+"px;",html:'create'}))).done(function(){b(".czr-hover-placeholder").css("opacity",1).fitText(.3,{minFontSize:"50px",maxFontSize:"100px"})})}}),wp.customize.preview.bind("stop_hovering_module",function(a){if(c.has(a,"id")&&b('[data-module-id="'+a.id+'"]').length){var d=b('[data-module-id="'+a.id+'"]');b.when(d.find(".czr-hover-placeholder").fadeOut(200)).done(function(){d.find(".czr-hover-placeholder").remove()})}})}),CZRPreviewParams&&!CZRPreviewParams.preview_ready_event_exists?a.czr_preview=new a.CZR_preview:a.bind("preview-ready",function(){a.preview.bind("active",function(){a.czr_preview=new a.CZR_preview})}),a.CZR_preview=a.Class.extend({setting_cbs:{},subsetting_cbs:{},input_cbs:{},_wp_sets:CZRPreviewParams.wpBuiltinSettings||[],_theme_options_name:CZRPreviewParams.themeOptions,initialize:function(){var a=this;this.pre_setting_cbs=c.extend(a.pre_setting_cbs,a.getPreSettingCbs()),this.setting_cbs=c.extend(a.setting_cbs,a.getSettingCbs()),this.subsetting_cbs=c.extend(a.subsetting_cbs,a.getSubSettingCbs()),this.input_cbs=c.extend(a.input_cbs,a.getInputCbs()),this.syncData(),this.addCbs(),b("body").removeClass("wp-customizer-unloading")},getPreSettingCbs:function(){return{}},getSettingCbs:function(){return{}},getSubSettingCbs:function(){return{}},getInputCbs:function(){return{}},syncData:function(){a.preview.send("czr-query-data-ready",a.settings.czr_wpQueryInfos),a.preview.send("houston-widget-settings",c.extend(_wpWidgetCustomizerPreviewSettings,{availableWidgetLocations:c.values(a.settings.availableWidgetLocations)})),a.preview.send("czr-partial-refresh-data","undefined"==typeof _customizePartialRefreshExports?{}:_customizePartialRefreshExports.partials)},addCbs:function(){var b=this;a.preview.bind("pre_setting",function(d){d=d||{};var e=d.set_id;if(a.has(b._build_setId(e))){var f=b._get_option_name(d.set_id);c.has(b.pre_setting_cbs,f)&&c.isFunction(b.pre_setting_cbs[f])&&b.pre_setting_cbs[f](d)}}),c.each(b.setting_cbs,function(d,e){a.has(b._build_setId(e))&&c.isFunction(b.setting_cbs[e])&&a(b._build_setId(e)).bind(b.setting_cbs[e])}),a.preview.bind("sub_setting",function(a){var d=b._get_option_name(a.set_id);c.has(b.subsetting_cbs,d)&&c.has(b.subsetting_cbs[d],a.changed_prop)&&b.subsetting_cbs[d][a.changed_prop](a)}),a.preview.bind("czr_input",function(a){var d={set_id:"",module_id:"",item_id:"",input_id:"",value:null};a=c.extend(d,a);var e=b._get_option_name(a.set_id);c.has(b.input_cbs,e)&&c.has(b.input_cbs[e],a.input_id)&&b.input_cbs[e][a.input_id](a)}),a.selectiveRefresh.bind("partial-content-rendered",function(d){if(c.has(d,"partial")&&c.has(d.partial,"id")){d.partial.id;a.preview.send("czr-partial-refresh-done",{set_id:b._build_setId(d.partial.id)})}})},_build_setId:function(a){var b=this;return c.contains(b._wp_sets,a)?a:-1==a.indexOf(b._theme_options_name)?[b._theme_options_name+"[",a,"]"].join(""):a},_get_option_name:function(a){var b=this;return a.replace(/\[|\]/g,"").replace(b._theme_options_name,"")},_is_external:function(a){var c=b.trim(a),d=location.host.split(".").slice(-2).join("."),e=new RegExp(d);if(""!==c&&"#"!=c&&_isValidURL(c))return!e.test(c)},_isValidURL:function(a){var b=/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)}})}(wp.customize,jQuery,_);
\ No newline at end of file
diff --git a/assets/front/js/scripts.js b/assets/front/js/scripts.js
index 02f14612..8d390652 100644
--- a/assets/front/js/scripts.js
+++ b/assets/front/js/scripts.js
@@ -181,16 +181,23 @@ if (!Array.from) {
defaults = {
load_all_images_on_first_scroll : false,
attribute : [ 'data-src', 'data-srcset', 'data-sizes' ],
- excludeImg : '',
+ excludeImg : [''],
threshold : 200,
fadeIn_options : { duration : 400 },
- delaySmartLoadEvent : 0
- };
+ delaySmartLoadEvent : 0,
+
+ },
+ skipImgClass = 'tc-smart-load-skip';
function Plugin( element, options ) {
this.element = element;
this.options = $.extend( {}, defaults, options) ;
+ if ( _.isArray( this.options.excludeImg ) )
+ this.options.excludeImg.push( '.'+skipImgClass );
+ else
+ this.options.excludeImg = [ '.'+skipImgClass ];
+
this._defaults = defaults;
this._name = pluginName;
this.init();
@@ -201,7 +208,11 @@ if (!Array.from) {
this.increment = 1;//used to wait a little bit after the first user scroll actions to trigger the timer
this.timer = 0;
- $_imgs.bind( 'load_img', {}, function() { self._load_img(this); });
+
+
+ $_imgs
+ .addClass( skipImgClass )
+ .bind( 'load_img', {}, function() { self._load_img(this); });
$(window).scroll( function( _evt ) { self._better_scroll_event_handler( $_imgs, _evt ); } );
$(window).resize( _.debounce( function( _evt ) { self._maybe_trigger_load( $_imgs, _evt ); }, 100 ) );
this._maybe_trigger_load( $_imgs );
diff --git a/assets/front/js/scripts.min.js b/assets/front/js/scripts.min.js
index 09275c56..b5618663 100644
--- a/assets/front/js/scripts.min.js
+++ b/assets/front/js/scripts.min.js
@@ -4,7 +4,7 @@ Date.now||(Date.now=function(){return(new Date).getTime()}),/*! Object.create mo
Object.create||(Object.create=function(a,b){function c(){}if("undefined"!=typeof b)throw"The multiple-argument version of Object.create is not provided by this browser and cannot be shimmed.";return c.prototype=a,new c}),/*! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter */
Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments.length>=2?arguments[1]:void 0,f=0;f>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(arguments.length>1&&(c=b),d=new Array(g),e=0;e0?1:-1)*Math.floor(Math.abs(b)):b},d=Math.pow(2,53)-1,e=function(a){var b=c(a);return Math.min(Math.max(b,0),d)};return function(a){var c=this,d=Object(a);if(null==a)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,g=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof g){if(!b(g))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(f=arguments[2])}for(var h,i=e(d.length),j=b(c)?Object(new c(i)):new Array(i),k=0;k=f-j&&h<=g+j},e.prototype._load_img=function(b){var c=a(b),d=c.attr(this.options.attribute[0]),e=c.attr(this.options.attribute[1]),f=c.attr(this.options.attribute[2]),g=this;c.parent().addClass("smart-loading"),c.unbind("load_img").hide().removeAttr(this.options.attribute.join(" ")).attr("sizes",f).attr("srcset",e).attr("src",d).load(function(){if(c.hasClass("tc-smart-loaded")||c.fadeIn(g.options.fadeIn_options).addClass("tc-smart-loaded"),"undefined"!=typeof c.attr("data-tcjp-recalc-dims")&&!1!==c.attr("data-tcjp-recalc-dims")){var a=c.originalWidth();if(_height=c.originalHeight(),2!=_.size(_.filter([a,_height],function(a){return _.isNumber(parseInt(a,10))&&a>1})))return;c.removeAttr("data-tcjp-recalc-dims scale"),c.attr("width",a),c.attr("height",_height)}c.trigger("smartload")}),c[0].complete&&c.load(),c.parent().removeClass("smart-loading")},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){this.$_el=a(b),this.options=a.extend({},g,c),this._href=a.trim(this.$_el.attr("href")),this.init()}var f="extLinks",g={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};e.prototype.init=function(){var a=this,b=this.$_el.next("."+a.options.iconClassName);return this._is_eligible()?(this.options.addIcon&&0===b.length&&this.$_el.after(''),void(this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank"))):void(b.length&&b.remove())},e.prototype._is_eligible=function(){var b=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter(function(a){return b._is_selector_allowed(a)}).length){var c=!0;return a.each(this.$_el.parents(),function(){if("underline"==a(this).css("textDecoration"))return c=!1,!1}),c}},e.prototype._is_selector_allowed=function(b){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,b);var c="ids"==b?"id":"class",d=this.options.skipSelectors[b];if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[b]||!a.isArray(this.options.skipSelectors[b])||0===this.options.skipSelectors[b].length)return!0;if(this.$_el.parents(d.map(function(a){return"id"==c?"#"+a:"."+a}).join(",")).length>0)return!1;if(!this.$_el.attr(c))return!0;var e=this.$_el.attr(c).split(" "),f=e.filter(function(b){return-1!=a.inArray(b,d)});return 0===f.length},e.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var b=this.$_el.children().first()[0].tagName,c=this.options.skipChildTags;return!a.isArray(c)||(c=c.map(function(a){return a.toUpperCase()}),-1==a.inArray(b,c))},e.prototype._is_external=function(b){var c=location.host.split(".").slice(-2).join("."),d=new RegExp(c);if(b=a.trim(b),""!==b&&"#"!=b&&this._isValidURL(b))return!d.test(b)},e.prototype._isValidURL=function(a){var b=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){var d=this;this.container=b,this.options=a.extend({},g,c),this._defaults=g,this._name=f,this._customEvt=a.isArray(d.options.oncustom)?d.options.oncustom:d.options.oncustom.split(" "),this.init()}var f="centerImages",g={enableCentering:!0,onresize:!0,oncustom:[],imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,enableGoldenRatio:!1,goldenRatioLimitHeightTo:350,goldenRatioVal:1.618,skipGoldenRatioClasses:["no-gold-ratio"],disableGRUnder:767,useImgAttr:!1,setOpacityWhenCentered:!1,opacity:1};e.prototype.init=function(){var c=this,d=function(){c._maybe_apply_golden_r();var d=a(c.options.imgSel,c.container);c.options.enableGoldenRatio&&a(b).bind("resize",{},_.debounce(function(a){c._maybe_apply_golden_r(a)},200)),1<=d.length&&c.options.enableCentering&&c._parse_imgs(d)};d(),a.isArray(c._customEvt)&&c._customEvt.map(function(b){a(c.container).bind(b,{},d)})},e.prototype._maybe_apply_golden_r=function(b){if(this.options.enableGoldenRatio&&this.options.goldenRatioVal&&0!==this.options.goldenRatioVal&&this._is_selector_allowed()){if(!this._is_window_width_allowed())return void a(this.container).attr("style","");var c=Math.round(a(this.container).width()/this.options.goldenRatioVal);c=c>this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:c,a(this.container).css({"line-height":c+"px",height:c+"px"}).trigger("golden-ratio-applied")}},e.prototype._is_window_width_allowed=function(){return a(b).width()>this.options.disableGRUnder-15},e.prototype._parse_imgs=function(c){var d=this;c.each(function(c,e){var f=a(e);d._pre_img_cent(f),d.options.onresize&&a(b).resize(_.debounce(function(){d._pre_img_cent(f)},200)),a.isArray(d._customEvt)&&d._customEvt.map(function(a){f.bind(a,{},function(a){d._pre_img_cent(f)})})})},e.prototype._pre_img_cent=function(b){var c=this._get_current_state(b),d=this,e=c.current,f=c.prop[e],g=c.prop["h"==e?"v":"h"],h="h"==e?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,i=function(a){return a.css(f.dim.name,f.dim.val).css(g.dim.name,d.options.defaultCSSVal[g.dim.name]||"auto").addClass(f._class).removeClass(g._class).css(f.dir.name,f.dir.val).css(g.dir.name,h),a};this.options.setOpacityWhenCentered?a.when(i(b)).done(function(a){a.css("opacity",d.options.opacity)}):i(b)},e.prototype._get_current_state=function(b){var c=b.closest(this.container).outerWidth(),d=a(this.container).outerHeight(),e=this._get_img_dim(b,"x"),f=this._get_img_dim(b,"y"),g=f*d!==0?Math.round(e/f*d):c,h=e*c!==0?Math.round(f/e*c):d,i="h";0!==c*e&&(i=d/c>=f/e?"h":"v");var j={h:{dim:{name:"height",val:d},dir:{name:"left",val:(c-g)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:c},dir:{name:"top",val:(d-h)/2+(this.options.topAdjust||0)},_class:"v-centered"}};return{current:i,prop:j}},e.prototype._get_img_dim=function(a,b){if(!this.options.useImgAttr)return"x"==b?a.outerWidth():a.outerHeight();if(a.is(":visible"))return"x"==b?a.outerWidth():a.outerHeight();if("x"==b){var c=a.originalWidth();return typeof c===d?0:c}if("y"==b){var e=a.originalHeight();return typeof e===d?0:e}},e.prototype._is_selector_allowed=function(){if(!a(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!a.isArray(this.options.skipGoldenRatioClasses))return!0;var b=a(this.container).attr("class").split(" "),c=this.options.skipGoldenRatioClasses,d=b.filter(function(b){return-1!=a.inArray(b,c)});return 0===d.length},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){this.element=a(b),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=a.extend({},g,c,this.parseElementDataOptions()),this._defaults=g,this._name=f,this.init()}var f="czrParallax",g={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};e.prototype.parseElementDataOptions=function(){return this.element.data()},e.prototype.init=function(){this.$_document=a(c),this.$_window=czrapp?czrapp.$_window:a(b),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},e.prototype._bind_evt=function(){a.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" ");_.bindAll(this,"maybeParallaxMe","parallaxMe")},e.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var a=this.element_wrapper;a.length&&a.css("overflow","hidden")}},e.prototype.initWaypoints=function(){var a=this;this.way_start=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1,a.element.css("top",0)):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},e.prototype.maybeParallaxMe=function(){var a=this;return _.isFunction(b.matchMedia)&&matchMedia(a.options.matchMedia).matches?this.setTopPosition():void(this.doingAnimation||(this.doingAnimation=!0,b.requestAnimationFrame(function(){a.parallaxMe(),a.doingAnimation=!1})))},e.prototype.setTopPosition=function(a){a=a||0,this.element.css({transform:"translate3d(0px, "+a+"px, .01px)","-webkit-transform":"translate3d(0px, "+a+"px, .01px)"})},e.prototype.parallaxMe=function(){var a=this.options.parallaxRatio,b=this.options.parallaxDirection,c=a*b*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(b*c<0?0:c)},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){var e="animateSvg",f={filter_opacity:.8,svg_opacity:.8,animation_duration:400},g=function(c){var e=a(this).attr("id");if(d.isUndefined(e)||d.isEmpty(e)||"function"!=typeof Vivus)return void(b.czrapp&&czrapp.consoleLog("An svg icon could not be animated with Vivus."));a("[id="+e+"]").length>1&&b.czrapp&&czrapp.consoleLog("Svg icons must have a unique css #id to be animated. Multiple id found for : "+e);var f=function(){return a("#"+e).siblings(".filter-placeholder").length?a("#"+e).css("opacity",c.svg_opacity).siblings(".filter-placeholder").css("opacity",c.filter_opacity):a("#"+e).css("opacity",c.svg_opacity)};a.when(f()).done(function(){new Vivus(e,{type:"delayed",duration:c.animation_duration})})};a.fn[e]=function(b){return b=a.extend({},f,b),this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,g.call(this,b))})}}(jQuery,window,document,_),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c0?1:-1)*Math.floor(Math.abs(b)):b},d=Math.pow(2,53)-1,e=function(a){var b=c(a);return Math.min(Math.max(b,0),d)};return function(a){var c=this,d=Object(a);if(null==a)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,g=arguments.length>1?arguments[1]:void 0;if("undefined"!=typeof g){if(!b(g))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(f=arguments[2])}for(var h,i=e(d.length),j=b(c)?Object(new c(i)):new Array(i),k=0;k=f-j&&h<=g+j},e.prototype._load_img=function(b){var c=a(b),d=c.attr(this.options.attribute[0]),e=c.attr(this.options.attribute[1]),f=c.attr(this.options.attribute[2]),g=this;c.parent().addClass("smart-loading"),c.unbind("load_img").hide().removeAttr(this.options.attribute.join(" ")).attr("sizes",f).attr("srcset",e).attr("src",d).load(function(){if(c.hasClass("tc-smart-loaded")||c.fadeIn(g.options.fadeIn_options).addClass("tc-smart-loaded"),"undefined"!=typeof c.attr("data-tcjp-recalc-dims")&&!1!==c.attr("data-tcjp-recalc-dims")){var a=c.originalWidth();if(_height=c.originalHeight(),2!=_.size(_.filter([a,_height],function(a){return _.isNumber(parseInt(a,10))&&a>1})))return;c.removeAttr("data-tcjp-recalc-dims scale"),c.attr("width",a),c.attr("height",_height)}c.trigger("smartload")}),c[0].complete&&c.load(),c.parent().removeClass("smart-loading")},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){this.$_el=a(b),this.options=a.extend({},g,c),this._href=a.trim(this.$_el.attr("href")),this.init()}var f="extLinks",g={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};e.prototype.init=function(){var a=this,b=this.$_el.next("."+a.options.iconClassName);return this._is_eligible()?(this.options.addIcon&&0===b.length&&this.$_el.after(''),void(this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank"))):void(b.length&&b.remove())},e.prototype._is_eligible=function(){var b=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter(function(a){return b._is_selector_allowed(a)}).length){var c=!0;return a.each(this.$_el.parents(),function(){if("underline"==a(this).css("textDecoration"))return c=!1,!1}),c}},e.prototype._is_selector_allowed=function(b){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,b);var c="ids"==b?"id":"class",d=this.options.skipSelectors[b];if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[b]||!a.isArray(this.options.skipSelectors[b])||0===this.options.skipSelectors[b].length)return!0;if(this.$_el.parents(d.map(function(a){return"id"==c?"#"+a:"."+a}).join(",")).length>0)return!1;if(!this.$_el.attr(c))return!0;var e=this.$_el.attr(c).split(" "),f=e.filter(function(b){return-1!=a.inArray(b,d)});return 0===f.length},e.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var b=this.$_el.children().first()[0].tagName,c=this.options.skipChildTags;return!a.isArray(c)||(c=c.map(function(a){return a.toUpperCase()}),-1==a.inArray(b,c))},e.prototype._is_external=function(b){var c=location.host.split(".").slice(-2).join("."),d=new RegExp(c);if(b=a.trim(b),""!==b&&"#"!=b&&this._isValidURL(b))return!d.test(b)},e.prototype._isValidURL=function(a){var b=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){var d=this;this.container=b,this.options=a.extend({},g,c),this._defaults=g,this._name=f,this._customEvt=a.isArray(d.options.oncustom)?d.options.oncustom:d.options.oncustom.split(" "),this.init()}var f="centerImages",g={enableCentering:!0,onresize:!0,oncustom:[],imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,enableGoldenRatio:!1,goldenRatioLimitHeightTo:350,goldenRatioVal:1.618,skipGoldenRatioClasses:["no-gold-ratio"],disableGRUnder:767,useImgAttr:!1,setOpacityWhenCentered:!1,opacity:1};e.prototype.init=function(){var c=this,d=function(){c._maybe_apply_golden_r();var d=a(c.options.imgSel,c.container);c.options.enableGoldenRatio&&a(b).bind("resize",{},_.debounce(function(a){c._maybe_apply_golden_r(a)},200)),1<=d.length&&c.options.enableCentering&&c._parse_imgs(d)};d(),a.isArray(c._customEvt)&&c._customEvt.map(function(b){a(c.container).bind(b,{},d)})},e.prototype._maybe_apply_golden_r=function(b){if(this.options.enableGoldenRatio&&this.options.goldenRatioVal&&0!==this.options.goldenRatioVal&&this._is_selector_allowed()){if(!this._is_window_width_allowed())return void a(this.container).attr("style","");var c=Math.round(a(this.container).width()/this.options.goldenRatioVal);c=c>this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:c,a(this.container).css({"line-height":c+"px",height:c+"px"}).trigger("golden-ratio-applied")}},e.prototype._is_window_width_allowed=function(){return a(b).width()>this.options.disableGRUnder-15},e.prototype._parse_imgs=function(c){var d=this;c.each(function(c,e){var f=a(e);d._pre_img_cent(f),d.options.onresize&&a(b).resize(_.debounce(function(){d._pre_img_cent(f)},200)),a.isArray(d._customEvt)&&d._customEvt.map(function(a){f.bind(a,{},function(a){d._pre_img_cent(f)})})})},e.prototype._pre_img_cent=function(b){var c=this._get_current_state(b),d=this,e=c.current,f=c.prop[e],g=c.prop["h"==e?"v":"h"],h="h"==e?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,i=function(a){return a.css(f.dim.name,f.dim.val).css(g.dim.name,d.options.defaultCSSVal[g.dim.name]||"auto").addClass(f._class).removeClass(g._class).css(f.dir.name,f.dir.val).css(g.dir.name,h),a};this.options.setOpacityWhenCentered?a.when(i(b)).done(function(a){a.css("opacity",d.options.opacity)}):i(b)},e.prototype._get_current_state=function(b){var c=b.closest(this.container).outerWidth(),d=a(this.container).outerHeight(),e=this._get_img_dim(b,"x"),f=this._get_img_dim(b,"y"),g=f*d!==0?Math.round(e/f*d):c,h=e*c!==0?Math.round(f/e*c):d,i="h";0!==c*e&&(i=d/c>=f/e?"h":"v");var j={h:{dim:{name:"height",val:d},dir:{name:"left",val:(c-g)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:c},dir:{name:"top",val:(d-h)/2+(this.options.topAdjust||0)},_class:"v-centered"}};return{current:i,prop:j}},e.prototype._get_img_dim=function(a,b){if(!this.options.useImgAttr)return"x"==b?a.outerWidth():a.outerHeight();if(a.is(":visible"))return"x"==b?a.outerWidth():a.outerHeight();if("x"==b){var c=a.originalWidth();return typeof c===d?0:c}if("y"==b){var e=a.originalHeight();return typeof e===d?0:e}},e.prototype._is_selector_allowed=function(){if(!a(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!a.isArray(this.options.skipGoldenRatioClasses))return!0;var b=a(this.container).attr("class").split(" "),c=this.options.skipGoldenRatioClasses,d=b.filter(function(b){return-1!=a.inArray(b,c)});return 0===d.length},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){function e(b,c){this.element=a(b),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=a.extend({},g,c,this.parseElementDataOptions()),this._defaults=g,this._name=f,this.init()}var f="czrParallax",g={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};e.prototype.parseElementDataOptions=function(){return this.element.data()},e.prototype.init=function(){this.$_document=a(c),this.$_window=czrapp?czrapp.$_window:a(b),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},e.prototype._bind_evt=function(){a.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" ");_.bindAll(this,"maybeParallaxMe","parallaxMe")},e.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var a=this.element_wrapper;a.length&&a.css("overflow","hidden")}},e.prototype.initWaypoints=function(){var a=this;this.way_start=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1,a.element.css("top",0)):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:a.element_wrapper.length?a.element_wrapper:a.element,handler:function(){a.maybeParallaxMe(),a.element.hasClass("parallaxing")?(a.element.removeClass("parallaxing"),a.$_window.off("scroll",a.maybeParallaxMe),a.doingAnimation=!1):(a.$_window.on("scroll",a.maybeParallaxMe),a.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},e.prototype.maybeParallaxMe=function(){var a=this;return _.isFunction(b.matchMedia)&&matchMedia(a.options.matchMedia).matches?this.setTopPosition():void(this.doingAnimation||(this.doingAnimation=!0,b.requestAnimationFrame(function(){a.parallaxMe(),a.doingAnimation=!1})))},e.prototype.setTopPosition=function(a){a=a||0,this.element.css({transform:"translate3d(0px, "+a+"px, .01px)","-webkit-transform":"translate3d(0px, "+a+"px, .01px)"})},e.prototype.parallaxMe=function(){var a=this.options.parallaxRatio,b=this.options.parallaxDirection,c=a*b*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(b*c<0?0:c)},a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))})}}(jQuery,window,document),function(a,b,c,d){var e="animateSvg",f={filter_opacity:.8,svg_opacity:.8,animation_duration:400},g=function(c){var e=a(this).attr("id");if(d.isUndefined(e)||d.isEmpty(e)||"function"!=typeof Vivus)return void(b.czrapp&&czrapp.consoleLog("An svg icon could not be animated with Vivus."));a("[id="+e+"]").length>1&&b.czrapp&&czrapp.consoleLog("Svg icons must have a unique css #id to be animated. Multiple id found for : "+e);var f=function(){return a("#"+e).siblings(".filter-placeholder").length?a("#"+e).css("opacity",c.svg_opacity).siblings(".filter-placeholder").css("opacity",c.filter_opacity):a("#"+e).css("opacity",c.svg_opacity)};a.when(f()).done(function(){new Vivus(e,{type:"delayed",duration:c.animation_duration})})};a.fn[e]=function(b){return b=a.extend({},f,b),this.each(function(){a.data(this,"plugin_"+e)||a.data(this,"plugin_"+e,g.call(this,b))})}}(jQuery,window,document,_),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=0?c:b,y=b,a(),top!=self)F=!0;else if(e>d&&(b.offsetHeight<=d||c.offsetHeight<=d)){var f=document.createElement("div");f.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+I.scrollHeight+"px",document.body.appendChild(f);var g,h=function(){g||(g=setTimeout(function(){E||(f.style.height="0",f.style.height=I.scrollHeight+"px",g=null)},500))};setTimeout(h,10);var i={attributes:!0,childList:!0,characterData:!1};if(z=new T(h),z.observe(b,i),I.offsetHeight<=d){var j=document.createElement("div");j.style.clear="both",b.appendChild(j)}}D.fixedBackground||E||(b.style.backgroundAttachment="scroll",c.style.backgroundAttachment="scroll")}}function c(){z&&z.disconnect(),o(R,e),o("mousedown",g),o("keydown",f)}function d(a,b,c){if(q(b,c),1!=D.accelerationMax){var d=Date.now(),e=d-O;if(e1&&(f=Math.min(f,D.accelerationMax),b*=f,c*=f)}O=Date.now()}if(M.push({x:b,y:c,lastX:b<0?.99:-.99,lastY:c<0?.99:-.99,start:Date.now()}),!N){var g=a===document.body,h=function(d){for(var e=Date.now(),f=0,i=0,j=0;j=D.animationTime,n=m?1:l/D.animationTime;D.pulseAlgorithm&&(n=w(n));var o=k.x*n-k.lastX>>0,p=k.y*n-k.lastY>>0;f+=o,i+=p,k.lastX+=o,k.lastY+=p,m&&(M.splice(j,1),j--)}g?window.scrollBy(f,i):(f&&(a.scrollLeft+=f),i&&(a.scrollTop+=i)),b||c||(M=[]),M.length?S(h,a,1e3/D.frameRate+1):N=!1};S(h,a,0),N=!0}}function e(a){H||b();var c=a.target,e=j(c);if(!e||a.defaultPrevented||a.ctrlKey)return!0;if(p(y,"embed")||p(c,"embed")&&/\.pdf/i.test(c.src)||p(y,"object"))return!0;var f=-a.wheelDeltaX||a.deltaX||0,g=-a.wheelDeltaY||a.deltaY||0;return K&&(a.wheelDeltaX&&s(a.wheelDeltaX,120)&&(f=-120*(a.wheelDeltaX/Math.abs(a.wheelDeltaX))),a.wheelDeltaY&&s(a.wheelDeltaY,120)&&(g=-120*(a.wheelDeltaY/Math.abs(a.wheelDeltaY)))),f||g||(g=-a.wheelDelta||0),1===a.deltaMode&&(f*=40,g*=40),!(D.touchpadSupport||!r(g))||(Math.abs(f)>1.2&&(f*=D.stepSize/120),Math.abs(g)>1.2&&(g*=D.stepSize/120),d(e,f,g),a.preventDefault(),void h())}function f(a){var b=a.target,c=a.ctrlKey||a.altKey||a.metaKey||a.shiftKey&&a.keyCode!==L.spacebar;document.contains(y)||(y=document.activeElement);var e=/^(textarea|select|embed|object)$/i,f=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.test(b.nodeName)||p(b,"input")&&!f.test(b.type)||p(y,"video")||u(a)||b.isContentEditable||a.defaultPrevented||c)return!0;if((p(b,"button")||p(b,"input")&&f.test(b.type))&&a.keyCode===L.spacebar)return!0;var g,i=0,k=0,l=j(y),m=l.clientHeight;switch(l==document.body&&(m=window.innerHeight),a.keyCode){case L.up:k=-D.arrowScroll;break;case L.down:k=D.arrowScroll;break;case L.spacebar:g=a.shiftKey?1:-1,k=-g*m*.9;break;case L.pageup:k=.9*-m;break;case L.pagedown:k=.9*m;break;case L.home:k=-l.scrollTop;break;case L.end:var n=l.scrollHeight-l.scrollTop-m;k=n>0?n+10:0;break;case L.left:i=-D.arrowScroll;break;case L.right:i=D.arrowScroll;break;default:return!0}d(l,i,k),a.preventDefault(),h()}function g(a){y=a.target}function h(){clearTimeout(A),A=setInterval(function(){Q={}},1e3)}function i(a,b){for(var c=a.length;c--;)Q[P(a[c])]=b;return b}function j(a){var b=[],c=document.body,d=I.scrollHeight;do{var e=Q[P(a)];if(e)return i(b,e);if(b.push(a),d===a.scrollHeight){var f=l(I)&&l(c),g=f||m(I);if(F&&k(I)||!F&&g)return i(b,U())}else if(k(a)&&m(a))return i(b,a)}while(a=a.parentElement)}function k(a){return a.clientHeight+100?1:-1,b=b>0?1:-1,G.x===a&&G.y===b||(G.x=a,G.y=b,M=[],O=0)}function r(a){if(a)return J.length||(J=[a,a,a]),a=Math.abs(a),J.push(a),J.shift(),clearTimeout(B),B=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=J.join(","))},1e3),!t(120)&&!t(100)}function s(a,b){return Math.floor(a/b)==a/b}function t(a){return s(J[0],a)&&s(J[1],a)&&s(J[2],a)}function u(a){var b=a.target,c=!1;if(document.URL.indexOf("www.youtube.com/watch")!=-1)do if(c=b.classList&&b.classList.contains("html5-video-controls"))break;while(b=b.parentNode);return c}function v(a){var b,c,d;return a*=D.pulseScale,a<1?b=a-(1-Math.exp(-a)):(c=Math.exp(-1),a-=1,d=1-Math.exp(-a),b=c+d*(1-c)),b*D.pulseNormalize}function w(a){return a>=1?1:a<=0?0:(1==D.pulseNormalize&&(D.pulseNormalize/=v(1)),v(a))}function x(a){return R&&(n(R,e),n("mousedown",g),a?b():n("load",b)),!!R}var y,z,A,B,C={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},D=C,E=!1,F=!1,G={x:0,y:0},H=!1,I=document.documentElement,J=[],K=/^Mac/.test(navigator.platform),L={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},D=C,M=[],N=!1,O=Date.now(),P=function(){var a=0;return function(b){return b.uniqueID||(b.uniqueID=a++)}}(),Q={};window.localStorage&&localStorage.SS_deltaBuffer&&(J=localStorage.SS_deltaBuffer.split(","));var R,S=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a,b,c){window.setTimeout(a,c||1e3/60)}}(),T=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,U=function(){var a;return function(){if(!a){var b=document.createElement("div");b.style.cssText="height:10000px;width:1px;",document.body.appendChild(b);var c=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,1),a=document.body.scrollTop!=c?document.body:document.documentElement,window.scrollBy(0,-1),document.body.removeChild(b)}return a}}();"onwheel"in document.createElement("div")?R="wheel":"onmousewheel"in document.createElement("div")&&(R="mousewheel"),smoothScroll=function(a){smoothScroll._setCustomOptions(a),x(),czrapp.$_body.addClass("hu-smoothscroll")},smoothScroll._cleanUp=function(){c(),czrapp.$_body.removeClass("hu-smoothscroll")},smoothScroll._maybeFire=function(){x(!0),czrapp.$_body.addClass("hu-smoothscroll")},smoothScroll._setCustomOptions=function(a){D=a?_.extend(D,a):D}}();var smoothScroll,tcOutline;!function(a){tcOutline=function(){var b=a.createElement("STYLE"),c="addEventListener"in a,d=function(b,d){c?a.addEventListener(b,d):a.attachEvent("on"+b,d)},e=function(a){b.styleSheet?b.styleSheet.cssText=a:b.innerHTML=a};a.getElementsByTagName("HEAD")[0].appendChild(b),d("mousedown",function(){e("input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus,select:focus,a:focus{outline:0}input[type=file]::-moz-focus-inner,input[type=radio]::-moz-focus-inner,input[type=checkbox]::-moz-focus-inner,select::-moz-focus-inner,a::-moz-focus-inner{border:0;}")}),d("keydown",function(){e("")})}}(document),/*!
Waypoints - 4.0.0
Copyright © 2011-2015 Caleb Troughton
diff --git a/languages/es_VE.po b/languages/es_VE.po
index 0d7a6255..179574b3 100644
--- a/languages/es_VE.po
+++ b/languages/es_VE.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"Project-Id-Version: Hueman v3.3.11\n"
+"Project-Id-Version: Hueman v3.3.12\n"
"POT-Creation-Date: 2016-05-30 08:46+0200\n"
"PO-Revision-Date: 2016-05-30 08:46+0200\n"
"Last-Translator: José Subero | @arawako and Ernesto Chapon \n"
diff --git a/languages/id_ID.po b/languages/id_ID.po
index 9dcca30d..cc3c178b 100644
--- a/languages/id_ID.po
+++ b/languages/id_ID.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"Project-Id-Version: Hueman v3.3.11\n"
+"Project-Id-Version: Hueman v3.3.12\n"
"POT-Creation-Date: 2016-08-31 16:10+0200\n"
"PO-Revision-Date: 2016-08-31 16:10+0200\n"
"Last-Translator: \n"
diff --git a/languages/pt_BR.po b/languages/pt_BR.po
index 6ad80d01..387f7a97 100644
--- a/languages/pt_BR.po
+++ b/languages/pt_BR.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"Project-Id-Version: Hueman v3.3.11\n"
+"Project-Id-Version: Hueman v3.3.12\n"
"POT-Creation-Date: 2016-05-30 08:47+0200\n"
"PO-Revision-Date: 2016-05-30 08:47+0200\n"
"Last-Translator: Elvis Henrique Pereira \n"
diff --git a/package.json b/package.json
index 9798ce4e..9dd336eb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hueman",
- "version": "3.3.11",
+ "version": "3.3.12",
"description": "The Hueman theme helps you increase your traffic and engage your visitors. It loads fast and is 100% mobile-friendly according to Google. Best rated theme for blogs and magazines on WordPress.org. Powering 80K+ websites around the world.",
"author": "nikeo",
"license": "GNU GPL v3.0",
diff --git a/readme.md b/readme.md
index 730ba81e..a01a43f2 100644
--- a/readme.md
+++ b/readme.md
@@ -1,4 +1,4 @@
-# Hueman v3.3.11
+# Hueman v3.3.12
![Hueman - Free Wordpress Theme](/screenshot.png)
> The Hueman theme helps you increase your traffic and engage your visitors. It loads fast and is 100% mobile-friendly according to Google. Best rated theme for blogs and magazines on WordPress.org. Powering 80K+ websites around the world.
@@ -82,6 +82,14 @@ Right sidebar, top to bottom:
See headers of files for further details.
## Changelog
+= 3.3.12 June 6th 2017 =
+* fixed : when topbar is sticky and header has an header image, wait for the image to be fully loaded before setting the header's height. Fix #486
+* fixed Issue in hu_get_raw_option, php warning. wp_cache_get( 'alloptions', 'options' ) should always be cast to an array(). It might happen that it returns a boolean. fixes #492
+* fixed : fix inaccurate smartload img regex pattern => file extensions were not correctly taken in account
+* changed : hu_get_placeholder_thumb() to hu_print_placeholder_thumb(). Retrocompatibility handled.
+* added : js matchMedia utility. fallsback on old browsers compatibility
+* improved : in hu_set_option remove redundant retrieving of theme options
+
= 3.3.11 May 16th 2017 =
* fixed : Compatibility issue with the Event Calendar plugin on date picker ( fixes #454 )
* fixed : wrong variable name in HU_utils::hu_cache_dp_options()
diff --git a/readme.txt b/readme.txt
index 780fc216..f31bba5b 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,4 +1,4 @@
-# Hueman v3.3.11
+# Hueman v3.3.12
![Hueman - Free Wordpress Theme](/screenshot.png)
> The Hueman theme helps you increase your traffic and engage your visitors. It loads fast and is 100% mobile-friendly according to Google. Best rated theme for blogs and magazines on WordPress.org. Powering 80K+ websites around the world.
@@ -73,6 +73,14 @@ Right sidebar, top to bottom:
See headers of files for further details.
# Changelog
+= 3.3.12 June 6th 2017 =
+* fixed : when topbar is sticky and header has an header image, wait for the image to be fully loaded before setting the header's height. Fix #486
+* fixed Issue in hu_get_raw_option, php warning. wp_cache_get( 'alloptions', 'options' ) should always be cast to an array(). It might happen that it returns a boolean. fixes #492
+* fixed : fix inaccurate smartload img regex pattern => file extensions were not correctly taken in account
+* changed : hu_get_placeholder_thumb() to hu_print_placeholder_thumb(). Retrocompatibility handled.
+* added : js matchMedia utility. fallsback on old browsers compatibility
+* improved : in hu_set_option remove redundant retrieving of theme options
+
= 3.3.11 May 16th 2017 =
* fixed : Compatibility issue with the Event Calendar plugin on date picker ( fixes #454 )
* fixed : wrong variable name in HU_utils::hu_cache_dp_options()
diff --git a/style.css b/style.css
index 8fd0d368..d8a0cbd7 100644
--- a/style.css
+++ b/style.css
@@ -1,7 +1,7 @@
/*
Theme Name: Hueman
Theme URI: http://presscustomizr.com/hueman/
-Version: 3.3.11
+Version: 3.3.12
Description: The Hueman theme helps you increase your traffic and engage your visitors. It loads fast and is 100% mobile-friendly according to Google. Best rated theme for blogs and magazines on WordPress.org. Powering 80K+ websites around the world.
Author: nikeo
Author URI: http://presscustomizr.com