/*************************************/ // Bottom Footer Hide and Show control /*************************************/ ( function( $ ){ OPNControlTrigger.addHook( 'big-store-toggle-control', function( argument, api ){ OPNCustomizerToggles ['big_store_bottom_footer_layout'] = [ { controls: [ 'big_store_bottom_footer_col1_set', 'big_store_footer_bottom_col1_texthtml', 'big_store_footer_bottom_col1_widget_redirect', 'big_store_footer_bottom_col1_menu_redirect', 'big_store_footer_bottom_col1_social_media_redirect', ], callback: function(layout){ if(layout=='ft-btm-none' || layout=='ft-btm-two' || layout=='ft-btm-three' ){ return false; } return true; } }, { controls: [ 'big_store_footer_bottom_col1_menu_redirect', ], callback: function(layout){ var val = api( 'big_store_bottom_footer_col1_set' ).get(); if((layout!== 'ft-btm-none') && (layout!== 'ft-btm-two') && (layout!== 'ft-btm-three') && val=='menu'){ return true; } return false; } }, { controls: [ 'big_store_footer_bottom_col1_social_media_redirect', ], callback: function(layout){ var val = api( 'big_store_bottom_footer_col1_set' ).get(); if((layout!== 'ft-btm-none') && (layout!== 'ft-btm-two') && (layout!== 'ft-btm-three') && val=='social'){ return true; } return false; } }, ]; OPNCustomizerToggles ['big_store_bottom_footer_col1_set'] = [ { controls: [ 'big_store_footer_bottom_col1_menu_redirect', ], callback: function(layout){ var val = api( 'big_store_bottom_footer_layout' ).get(); if((layout == 'menu') && (val!=='ft-btm-none')){ return true; } return false; } }, { controls: [ 'big_store_footer_bottom_col1_social_media_redirect', ], callback: function(layout){ var val = api( 'big_store_bottom_footer_layout' ).get(); if((layout == 'social') && (val!=='ft-btm-none')){ return true; } return false; } }, ]; }); })( jQuery );