File manager - Edit - /home/premiey/www/wp-includes/images/media/sticky-header.tar
Back
assets/css/minified/style.min.css 0000666 00000024530 15165306611 0013072 0 ustar 00 .ast-sticky-active{position:fixed!important;right:0;left:0;margin:0 auto}.ast-nav-up{transform:translateY(-100%)}.site-header .sticky-custom-logo{display:none}.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a,.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:focus,.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:hover{background:0 0}.ast-fullscreen-active .ast-above-header,.ast-offcanvas-active .ast-above-header{z-index:4}.ast-fullscreen-active .ast-above-header.ast-sticky-active,.ast-offcanvas-active .ast-above-header.ast-sticky-active{z-index:0}#ast-fixed-header{position:fixed;visibility:hidden;top:0;left:0;width:100%}#ast-fixed-header .main-header-bar{box-shadow:0 1px 2px rgba(0,0,0,.2)}#ast-fixed-header.ast-header-slide{transform:translateY(-100%);transition:transform .3s linear,top .3s linear,visibility .3s linear}#ast-fixed-header.ast-header-fade{opacity:0;transition:opacity .3s linear}.main-header-bar.ast-sticky-active{box-shadow:0 2px 10px 0 rgba(36,50,66,.075)}.ast-sticky-custom-logo .ast-header-sticked .custom-logo-link,.ast-sticky-custom-logo .ast-header-sticked .custom-mobile-logo-link{display:none}.ast-sticky-custom-logo .ast-header-sticked .sticky-custom-logo{display:inline-block}.ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo{display:none}.ast-header-stick-fade-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo,.ast-header-stick-scroll-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo,.ast-header-stick-slide-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo{display:inline-block}.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar,.ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar{line-height:55px}.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar .ast-site-identity,.ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-main-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px!important;width:auto}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .main-header-bar,.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk.main-header-bar{padding-bottom:0}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-sticky-above-shrink .ast-sticky-shrunk .ast-above-header-bar .ast-site-identity,.ast-sticky-above-shrink .ast-sticky-shrunk.ast-above-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-above-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-above-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px;width:auto}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-above-header-bar,.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk.ast-above-header-bar{padding-bottom:0}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-sticky-below-shrink .ast-sticky-shrunk .ast-below-header-bar .ast-site-identity,.ast-sticky-below-shrink .ast-sticky-shrunk.ast-below-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-below-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-below-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px;width:auto}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-below-header-bar,.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk.ast-below-header-bar{padding-bottom:0}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-header-break-point .ast-sticky-active .sticky-custom-logo img{display:block}.ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .sticky-custom-logo img{display:block}.ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .ast-mobile-header-logo{display:none}.ast-header-break-point .ast-header-sticked .sticky-custom-logo img{display:block}.ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-logo-link img{display:none}.ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-mobile-logo-link img{display:inline-block}.above-header-toggle-on .main-header-bar{z-index:1}.ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:none}.ast-main-header-nav-open.ast-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content{display:block}.ast-main-header-nav-open.ast-hfb-header .ast-desktop-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content{display:none}.ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:none}.ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content{position:fixed}.site-above-header-wrap,.site-below-header-wrap,.site-primary-header-wrap{transition:all .2s linear}.ast-header-stick-slide-active .ast-flyout-menu-enable.ast-header-break-point #masthead>.main-header-bar-navigation{display:none!important}.ast-header-stick-fade-active .ast-flyout-menu-enable.ast-header-break-point #masthead>.main-header-bar-navigation{display:none!important}.ast-flyout-menu-overlay .ast-stick-primary-below-wrapper.ast-sticky-active{z-index:5}.ast-fullscreen-menu-overlay #ast-fixed-header{z-index:9}.ast-flyout-menu-enable.ast-primary-sticky-enabled .ast-stick-primary-below-wrapper,.ast-flyout-menu-enable.ast-primary-sticky-enabled .main-header-bar{overflow-y:unset!important}#ast-mobile-header .content-align-flex-start{max-height:60vh;overflow:auto} assets/css/minified/style-rtl.min.css 0000666 00000024531 15165306611 0013672 0 ustar 00 .ast-sticky-active{position:fixed!important;left:0;right:0;margin:0 auto}.ast-nav-up{transform:translateY(-100%)}.site-header .sticky-custom-logo{display:none}.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a,.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:focus,.ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:hover{background:0 0}.ast-fullscreen-active .ast-above-header,.ast-offcanvas-active .ast-above-header{z-index:4}.ast-fullscreen-active .ast-above-header.ast-sticky-active,.ast-offcanvas-active .ast-above-header.ast-sticky-active{z-index:0}#ast-fixed-header{position:fixed;visibility:hidden;top:0;right:0;width:100%}#ast-fixed-header .main-header-bar{box-shadow:0 1px 2px rgba(0,0,0,.2)}#ast-fixed-header.ast-header-slide{transform:translateY(-100%);transition:transform .3s linear,top .3s linear,visibility .3s linear}#ast-fixed-header.ast-header-fade{opacity:0;transition:opacity .3s linear}.main-header-bar.ast-sticky-active{box-shadow:0 2px 10px 0 rgba(36,50,66,.075)}.ast-sticky-custom-logo .ast-header-sticked .custom-logo-link,.ast-sticky-custom-logo .ast-header-sticked .custom-mobile-logo-link{display:none}.ast-sticky-custom-logo .ast-header-sticked .sticky-custom-logo{display:inline-block}.ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo{display:none}.ast-header-stick-fade-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo,.ast-header-stick-scroll-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo,.ast-header-stick-slide-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo{display:inline-block}.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar,.ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar{line-height:55px}.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar .ast-site-identity,.ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-main-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px!important;width:auto}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .main-header-bar,.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk.main-header-bar{padding-bottom:0}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-sticky-above-shrink .ast-sticky-shrunk .ast-above-header-bar .ast-site-identity,.ast-sticky-above-shrink .ast-sticky-shrunk.ast-above-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-above-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-above-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px;width:auto}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-above-header-bar,.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk.ast-above-header-bar{padding-bottom:0}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-sticky-below-shrink .ast-sticky-shrunk .ast-below-header-bar .ast-site-identity,.ast-sticky-below-shrink .ast-sticky-shrunk.ast-below-header-bar .ast-site-identity{padding-top:.5em;padding-bottom:.5em}.ast-sticky-below-shrink .ast-sticky-shrunk .site-navigation{line-height:3}.ast-sticky-below-shrink .ast-sticky-shrunk .site-logo-img img{max-height:55px;width:auto}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-below-header-bar,.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk.ast-below-header-bar{padding-bottom:0}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons{line-height:0;padding-bottom:.5em}.ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding{padding-bottom:.5em}.ast-header-break-point .ast-sticky-active .sticky-custom-logo img{display:block}.ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .sticky-custom-logo img{display:block}.ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .ast-mobile-header-logo{display:none}.ast-header-break-point .ast-header-sticked .sticky-custom-logo img{display:block}.ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-logo-link img{display:none}.ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-mobile-logo-link img{display:inline-block}.above-header-toggle-on .main-header-bar{z-index:1}.ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:none}.ast-main-header-nav-open.ast-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content{display:block}.ast-main-header-nav-open.ast-hfb-header .ast-desktop-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:block}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content,.ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content,.ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead>.ast-desktop-header-content{display:none}.ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content,.ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content{display:none}.ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content,.ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content{display:none}.ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>#ast-desktop-header .ast-desktop-header-content,.ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead>.ast-mobile-header-wrap .ast-mobile-header-content{position:fixed}.site-above-header-wrap,.site-below-header-wrap,.site-primary-header-wrap{transition:all .2s linear}.ast-header-stick-slide-active .ast-flyout-menu-enable.ast-header-break-point #masthead>.main-header-bar-navigation{display:none!important}.ast-header-stick-fade-active .ast-flyout-menu-enable.ast-header-break-point #masthead>.main-header-bar-navigation{display:none!important}.ast-flyout-menu-overlay .ast-stick-primary-below-wrapper.ast-sticky-active{z-index:5}.ast-fullscreen-menu-overlay #ast-fixed-header{z-index:9}.ast-flyout-menu-enable.ast-primary-sticky-enabled .ast-stick-primary-below-wrapper,.ast-flyout-menu-enable.ast-primary-sticky-enabled .main-header-bar{overflow-y:unset!important}#ast-mobile-header .content-align-flex-start{max-height:60vh;overflow:auto} assets/css/unminified/style-rtl.css 0000666 00000027715 15165306611 0013462 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ /** * Sticky Header Layouts */ .ast-sticky-active { position: fixed !important; left: 0; right: 0; margin: 0 auto; } .ast-nav-up { transform: translateY(-100%); } .site-header .sticky-custom-logo { display: none; } .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:focus { background: transparent; } .ast-offcanvas-active .ast-above-header, .ast-fullscreen-active .ast-above-header { z-index: 4; } .ast-offcanvas-active .ast-above-header.ast-sticky-active, .ast-fullscreen-active .ast-above-header.ast-sticky-active { z-index: 0; } #ast-fixed-header { position: fixed; visibility: hidden; top: 0; right: 0; width: 100%; } #ast-fixed-header .main-header-bar { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } #ast-fixed-header.ast-header-slide { transform: translateY(-100%); transition: transform 0.3s linear, top 0.3s linear, visibility 0.3s linear; } #ast-fixed-header.ast-header-fade { opacity: 0; transition: opacity 0.3s linear; } .main-header-bar.ast-sticky-active { box-shadow: 0 2px 10px 0 rgba(36, 50, 66, 0.075); } .ast-sticky-custom-logo .ast-header-sticked .custom-logo-link, .ast-sticky-custom-logo .ast-header-sticked .custom-mobile-logo-link { display: none; } .ast-sticky-custom-logo .ast-header-sticked .sticky-custom-logo { display: inline-block; } .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo { display: none; } .ast-header-stick-slide-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo, .ast-header-stick-fade-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo, .ast-header-stick-scroll-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo { display: inline-block; } .ast-sticky-main-shrink { /* Mobile Header */ } .ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar, .ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar { line-height: 55px; } .ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar .ast-site-identity, .ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-main-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px !important; width: auto; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .main-header-bar, .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk.main-header-bar { padding-bottom: 0; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-sticky-above-shrink { /* Mobile Header */ } .ast-sticky-above-shrink .ast-sticky-shrunk.ast-above-header-bar .ast-site-identity, .ast-sticky-above-shrink .ast-sticky-shrunk .ast-above-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-above-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-above-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px; width: auto; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-above-header-bar, .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk.ast-above-header-bar { padding-bottom: 0; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-sticky-below-shrink { /* Mobile Header */ } .ast-sticky-below-shrink .ast-sticky-shrunk.ast-below-header-bar .ast-site-identity, .ast-sticky-below-shrink .ast-sticky-shrunk .ast-below-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-below-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-below-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px; width: auto; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-below-header-bar, .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk.ast-below-header-bar { padding-bottom: 0; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-header-break-point .ast-sticky-active .sticky-custom-logo img { display: block; } .ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .sticky-custom-logo img { display: block; } .ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .ast-mobile-header-logo { display: none; } .ast-header-break-point .ast-header-sticked .sticky-custom-logo img { display: block; } .ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-logo-link img { display: none; } .ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-mobile-logo-link img { display: inline-block; } .above-header-toggle-on .main-header-bar { z-index: 1; } .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: none; } .ast-main-header-nav-open.ast-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-main-header-nav-open.ast-hfb-header .ast-desktop-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: none; } .ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content { position: fixed; } /* Added transition to smoothen shrink effect */ .site-primary-header-wrap, .site-above-header-wrap, .site-below-header-wrap { transition: all 0.2s linear; } .ast-header-stick-slide-active .ast-flyout-menu-enable.ast-header-break-point #masthead > .main-header-bar-navigation { display: none !important; } .ast-header-stick-fade-active .ast-flyout-menu-enable.ast-header-break-point #masthead > .main-header-bar-navigation { display: none !important; } .ast-flyout-menu-overlay .ast-stick-primary-below-wrapper.ast-sticky-active { z-index: 5; } .ast-fullscreen-menu-overlay #ast-fixed-header { z-index: 9; } /** * Need to override the overflow-y which is given form the javascript * To fix the rendering problem with the flyout menu */ .ast-flyout-menu-enable.ast-primary-sticky-enabled .main-header-bar, .ast-flyout-menu-enable.ast-primary-sticky-enabled .ast-stick-primary-below-wrapper { overflow-y: unset !important; } #ast-mobile-header .content-align-flex-start { max-height: 60vh; overflow: auto; } assets/css/unminified/style.css 0000666 00000027714 15165306611 0012662 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ /** * Sticky Header Layouts */ .ast-sticky-active { position: fixed !important; right: 0; left: 0; margin: 0 auto; } .ast-nav-up { transform: translateY(-100%); } .site-header .sticky-custom-logo { display: none; } .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a:focus { background: transparent; } .ast-offcanvas-active .ast-above-header, .ast-fullscreen-active .ast-above-header { z-index: 4; } .ast-offcanvas-active .ast-above-header.ast-sticky-active, .ast-fullscreen-active .ast-above-header.ast-sticky-active { z-index: 0; } #ast-fixed-header { position: fixed; visibility: hidden; top: 0; left: 0; width: 100%; } #ast-fixed-header .main-header-bar { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } #ast-fixed-header.ast-header-slide { transform: translateY(-100%); transition: transform 0.3s linear, top 0.3s linear, visibility 0.3s linear; } #ast-fixed-header.ast-header-fade { opacity: 0; transition: opacity 0.3s linear; } .main-header-bar.ast-sticky-active { box-shadow: 0 2px 10px 0 rgba(36, 50, 66, 0.075); } .ast-sticky-custom-logo .ast-header-sticked .custom-logo-link, .ast-sticky-custom-logo .ast-header-sticked .custom-mobile-logo-link { display: none; } .ast-sticky-custom-logo .ast-header-sticked .sticky-custom-logo { display: inline-block; } .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo { display: none; } .ast-header-stick-slide-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo, .ast-header-stick-fade-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo, .ast-header-stick-scroll-active .ast-sticky-custom-logo.ast-primary-sticky-header-active.ast-header-break-point.ast-replace-site-logo-transparent.ast-theme-transparent-header .transparent-custom-logo { display: inline-block; } .ast-sticky-main-shrink { /* Mobile Header */ } .ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar, .ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar { line-height: 55px; } .ast-sticky-main-shrink .ast-sticky-shrunk.main-header-bar .ast-site-identity, .ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-main-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px !important; width: auto; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .main-header-bar, .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk.main-header-bar { padding-bottom: 0; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-main-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-sticky-above-shrink { /* Mobile Header */ } .ast-sticky-above-shrink .ast-sticky-shrunk.ast-above-header-bar .ast-site-identity, .ast-sticky-above-shrink .ast-sticky-shrunk .ast-above-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-above-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-above-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px; width: auto; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-above-header-bar, .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk.ast-above-header-bar { padding-bottom: 0; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-above-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-sticky-below-shrink { /* Mobile Header */ } .ast-sticky-below-shrink .ast-sticky-shrunk.ast-below-header-bar .ast-site-identity, .ast-sticky-below-shrink .ast-sticky-shrunk .ast-below-header-bar .ast-site-identity { padding-top: 0.5em; padding-bottom: 0.5em; } .ast-sticky-below-shrink .ast-sticky-shrunk .site-navigation { line-height: 3; } .ast-sticky-below-shrink .ast-sticky-shrunk .site-logo-img img { max-height: 55px; width: auto; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-below-header-bar, .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk.ast-below-header-bar { padding-bottom: 0; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .ast-mobile-menu-buttons { line-height: 0; padding-bottom: 0.5em; } .ast-sticky-below-shrink.ast-header-break-point .ast-sticky-shrunk .site-branding { padding-bottom: 0.5em; } .ast-header-break-point .ast-sticky-active .sticky-custom-logo img { display: block; } .ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .sticky-custom-logo img { display: block; } .ast-header-break-point .ast-has-mobile-header-logo .ast-header-sticked .ast-mobile-header-logo { display: none; } .ast-header-break-point .ast-header-sticked .sticky-custom-logo img { display: block; } .ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-logo-link img { display: none; } .ast-header-break-point.ast-inherit-site-logo-sticky .ast-has-mobile-header-logo .ast-header-sticked .custom-mobile-logo-link img { display: inline-block; } .above-header-toggle-on .main-header-bar { z-index: 1; } .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: none; } .ast-main-header-nav-open.ast-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-main-header-nav-open.ast-hfb-header .ast-desktop-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.ast-hfb-header #masthead > .ast-desktop-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.ast-hfb-header #ast-fixed-header .ast-desktop-header-content { display: none; } .ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-primary-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.ast-hfb-header #masthead > #ast-desktop-header .ast-desktop-header-content { position: fixed; } /* Added transition to smoothen shrink effect */ .site-primary-header-wrap, .site-above-header-wrap, .site-below-header-wrap { transition: all 0.2s linear; } .ast-header-stick-slide-active .ast-flyout-menu-enable.ast-header-break-point #masthead > .main-header-bar-navigation { display: none !important; } .ast-header-stick-fade-active .ast-flyout-menu-enable.ast-header-break-point #masthead > .main-header-bar-navigation { display: none !important; } .ast-flyout-menu-overlay .ast-stick-primary-below-wrapper.ast-sticky-active { z-index: 5; } .ast-fullscreen-menu-overlay #ast-fixed-header { z-index: 9; } /** * Need to override the overflow-y which is given form the javascript * To fix the rendering problem with the flyout menu */ .ast-flyout-menu-enable.ast-primary-sticky-enabled .main-header-bar, .ast-flyout-menu-enable.ast-primary-sticky-enabled .ast-stick-primary-below-wrapper { overflow-y: unset !important; } #ast-mobile-header .content-align-flex-start { max-height: 60vh; overflow: auto; } assets/js/unminified/metabox.js 0000666 00000007701 15165306611 0012623 0 ustar 00 /** * Sticky Header Metabox * * @package Astra Addon * @since 1.0.0 */ (function( $ ) { function toggle_sticky_header_options( value ) { if ( 'enabled' == value ) { $( '#stick-header-meta-options' ).slideDown(); toggle_sticky_header_opacity(); } else { $( '#stick-header-meta-options' ).slideUp(); $( '.sticky-header-bg-opc-wrap' ).slideUp(); } } $( '#stick-header-meta' ).each(function(index, el) { var value = $( el ).val(); toggle_sticky_header_options( value ); $( el ).change(function(event) { value = $( el ).val(); toggle_sticky_header_options( value ); }); }); $( '#stick-header-meta-options input' ).click(function() { toggle_sticky_header_opacity(); }); function toggle_sticky_header_opacity() { var checkedValues = $( '#stick-header-meta-options input[type=checkbox]:checked' ).map(function () { return this.value; }).get(); if (checkedValues == '') { $( '.sticky-header-bg-opc-wrap' ).slideUp(); } else { $( '.sticky-header-bg-opc-wrap' ).slideDown(); } } /** * Below Header meta option */ toggle_sticky_suppl_options(); $( '#ast-below-header-display').click(function(){ toggle_sticky_suppl_options(); toggle_stick_wrapper(); }) function toggle_sticky_suppl_options(){ if ( $( '#ast-below-header-display' ).is(':checked')) { $( '.sticky-below-header-meta-wrapper' ).slideUp(); } else{ $( '.sticky-below-header-meta-wrapper' ).slideDown(); } } /** * Above Header meta option */ toggle_sticky_above_header_options(); $( '#ast-above-header-display').click(function(){ toggle_sticky_above_header_options(); toggle_stick_wrapper(); }) function toggle_sticky_above_header_options(){ if ( $( '#ast-above-header-display' ).is(':checked')) { $( '.sticky-above-header-meta-wrapper' ).slideUp(); } else{ $( '.sticky-above-header-meta-wrapper' ).slideDown(); } } /** * Above Header meta option */ toggle_sticky_primary_header_options(); $( '#ast-main-header-display').click(function(){ toggle_sticky_primary_header_options(); toggle_stick_wrapper(); }) function toggle_sticky_primary_header_options(){ if ( $( '#ast-main-header-display' ).is(':checked')) { $( '.stick-main-header-meta-wrapper' ).slideUp(); } else{ $( '.stick-main-header-meta-wrapper' ).slideDown(); } } /** * Header meta option disabled */ toggle_stick_wrapper(); function toggle_stick_wrapper(){ //Main Header & Above Header & Below Header if( $('#ast-main-header-display').length && $('#ast-above-header-display').length && $('#ast-below-header-display').length) { if ( $( '#ast-main-header-display' ).is(':checked') && $( '#ast-above-header-display' ).is(':checked') && $( '#ast-below-header-display' ).is(':checked')) { $( '.stick-header-wrapper' ).slideUp(); } else{ $( '.stick-header-wrapper' ).slideDown(); } } //Main Header & Above Header else if( $('#ast-main-header-display').length && $('#ast-above-header-display').length) { if ( $( '#ast-main-header-display' ).is(':checked') && $( '#ast-above-header-display' ).is(':checked')) { $( '.stick-header-wrapper' ).slideUp(); } else{ $( '.stick-header-wrapper' ).slideDown(); } } //Main Header & Below Header else if( $('#ast-main-header-display').length && $('#ast-below-header-display').length) { if ( $( '#ast-main-header-display' ).is(':checked') && $( '#ast-below-header-display' ).is(':checked')) { $( '.stick-header-wrapper' ).slideUp(); } else{ $( '.stick-header-wrapper' ).slideDown(); } } //Main Header else{ if ( $( '#ast-main-header-display' ).is(':checked') ) { $( '.stick-header-wrapper' ).slideUp(); } else{ $( '.stick-header-wrapper' ).slideDown(); } } } })( jQuery ); assets/js/unminified/customizer-preview.js 0000666 00000226644 15165306611 0015060 0 ustar 00 /** * This file adds some LIVE to the Customizer live preview. To leverage * this, set your custom settings to 'postMessage' and then add your handling * here. Your javascript should grab settings from customizer controls, and * then make any necessary changes to the page using jQuery. * * @package Astra Addon * @since 1.0.0 */ ( function( $ ) { let tablet_break_point = ast_preview.tablet_break_point || 768, mobile_break_point = ast_preview.mobile_break_point || 544; wp.customize( 'astra-settings[site-layout-box-width]', function( value ) { value.bind( function( width ) { /** * Has sticky header? */ if ( jQuery( '*[data-stick-maxwidth]' ).length ) { jQuery( '*[data-stick-maxwidth]' ).find( '.ast-sticky-active, .ast-header-sticky-active, .ast-custom-footer' ).css( { 'max-width': width + 'px', 'transition': 'none' } ); jQuery( '*[data-stick-maxwidth]' ).attr( 'data-stick-maxwidth', width ); } } ); } ); wp.customize( 'astra-settings[site-layout-box-tb-margin]', function( value ) { value.bind( function( margin ) { header_top = (typeof ( wp.customize._value['astra-settings[above-header-layout]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[above-header-layout]']._value: ''; header_below = (typeof ( wp.customize._value['astra-settings[below-header-layout]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[below-header-layout]']._value: ''; header_above_stick = (typeof ( wp.customize._value['astra-settings[header-above-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-above-stick]']._value: ''; header_below_stick = (typeof ( wp.customize._value['astra-settings[header-below-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-below-stick]']._value: ''; header_main_stick = (typeof ( wp.customize._value['astra-settings[header-main-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-main-stick]']._value: ''; if( header_main_stick || ( header_top != 'disabled' && header_above_stick ) || ( header_below != 'disabled' && header_below_stick ) ) { wp.customize.preview.send( 'refresh' ); } } ); } ); wp.customize( 'astra-settings[site-layout-padded-pad]', function( value ) { value.bind( function( padding ) { header_top = (typeof ( wp.customize._value['astra-settings[above-header-layout]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[above-header-layout]']._value : ''; header_below = (typeof ( wp.customize._value['astra-settings[below-header-layout]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[below-header-layout]']._value : ''; header_above_stick = (typeof ( wp.customize._value['astra-settings[header-above-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-above-stick]']._value : ''; header_below_stick = (typeof ( wp.customize._value['astra-settings[header-below-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-below-stick]']._value : ''; header_main_stick = (typeof ( wp.customize._value['astra-settings[header-main-stick]'] ) != 'undefined' ) ? wp.customize._value['astra-settings[header-main-stick]']._value : ''; if( header_main_stick || ( header_top != 'disabled' && header_above_stick ) || ( header_below != 'disabled' && header_below_stick ) ) { wp.customize.preview.send( 'refresh' ); } } ); } ); var sticky_header_style = astSticky.sticky_header_style || ''; var sticky_hide_on_scroll = astSticky.sticky_hide_on_scroll || ''; var isHeaderBuilderActive = astSticky.header_builder_active || false; if( isHeaderBuilderActive ) { // Site Identity preview styles. astra_css( 'astra-settings[sticky-header-builder-site-title-color]', 'color', '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:focus, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:hover, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:visited' ); astra_css( 'astra-settings[sticky-header-builder-site-title-h-color]', 'color', '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a:hover, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:hover' ); astra_css( 'astra-settings[sticky-header-builder-site-tagline-color]', 'color', '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .ast-site-identity .site-description, [CLASS*="-sticky-header-active"] .ast-header-sticked .ast-site-identity .site-description' ); for ( var index = 1; index <= astSticky.component_limit; index++ ) { // Menu color preview styles. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' > .menu-item > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-bg-obj-responsive]', 'background-color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-h-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item:hover > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-h-bg-color-responsive]', 'background-color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item:hover > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-a-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item.current-menu-item > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-a-bg-color-responsive]', 'background-color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .menu-item.current-menu-item > .menu-link' ); // Submenu color preview styles. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-bg-color-responsive]', 'background-color', '.ast-header-sticked .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu, .ast-header-sticked .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-h-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item:hover > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-h-bg-color-responsive]', 'background-color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item:hover > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-a-color-responsive]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu'+ index +'-submenu-a-bg-color-responsive]', 'background-color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +' .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); if ( 3 > index ) { // Megamenu Heading color preview styles. astra_css( 'astra-settings[sticky-header-menu'+ index +'-header-megamenu-heading-color]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +'.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link' ); astra_css( 'astra-settings[sticky-header-menu'+ index +'-header-megamenu-heading-h-color]', 'color', '[CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +'.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading:hover > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+ index +' #ast-hf-menu-'+ index +'.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link:hover' ); } } } else { if ( 'none' === sticky_header_style && '1' != sticky_hide_on_scroll ) { astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-site-title-responsive]','color', '.ast-primary-sticky-header-active .site-title a, .ast-primary-sticky-header-active .site-title a:focus, .ast-primary-sticky-header-active .site-title a:hover, .ast-primary-sticky-header-active .site-title a:visited' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-h-site-title-responsive]','color', '.ast-primary-sticky-header-active .site-header .site-title a:hover' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-site-tagline-responsive]','color', '.ast-primary-sticky-header-active .site-header .site-description' ); } else { astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-site-title-responsive]','color', '#ast-fixed-header .site-title a, #ast-fixed-header .site-title a:focus, #ast-fixed-header .site-title a:hover, #ast-fixed-header .site-title a:visited' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-h-site-title-responsive]','color', '#ast-fixed-header.site-header .site-title a:hover' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-color-site-tagline-responsive]','color', '#ast-fixed-header.site-header .site-description' ); } } if ( 'none' === sticky_header_style && '1' != sticky_hide_on_scroll ) { /** * Sticky Primary Header */ astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-bg-color-responsive]','background', '.ast-transparent-header.ast-primary-sticky-header-active .main-header-bar, .ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active.ast-header-break-point .main-header-bar, .ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked' ); // Sticky -- Primary Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-bg-color-responsive]','background-color', '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-color-responsive]','color', '.ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .main-header-menu .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-header-custom-item, .ast-header-custom-item a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active .ast-masthead-custom-menu-items .ast-inline-search form' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-h-color-responsive]','color', '.ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link:hover, .ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-h-a-bg-color-responsive]','background-color', '.ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link,.ast-primary-sticky-header-active .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link' ); // Sticky -- Primary Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-bg-color-responsive]','background-color', '.ast-primary-sticky-header-active .main-navigation .main-header-menu .sub-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-menu .sub-menu, .ast-flyout-menu-enable.ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-color-responsive]','color', '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-h-color-responsive]','color', '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-h-a-bg-color-responsive]','background-color', '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); // Sticky -- Custom Menu item outside astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-text-color-responsive]','color', '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-link-color-responsive]','color', '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-link-h-color-responsive]','color', '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a:hover' ); /** * Sticky Above Header */ if( isHeaderBuilderActive ) { var above_header_sticky_selctor = '.ast-above-sticky-header-active .ast-above-header.ast-header-sticked'; } else { var above_header_sticky_selctor = '.ast-above-sticky-header-active .ast-above-header-wrap .ast-above-header'; } astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-bg-color-responsive]','background', above_header_sticky_selctor ); // Sticky -- Above Header Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-bg-color-responsive]','background-color', '.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation > ul, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field:focus, .ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .menu-link, .ast-header-break-point .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-h-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-header-break-point .ast-above-header-navigation > ul > .menu-item-has-children.current-menu-item > .ast-menu-toggle, .ast-header-break-point .ast-above-header-navigation .menu-item-has-children:hover > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-h-a-bg-color-responsive]','background-color', '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link' ); // Sticky -- Above Header Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-bg-color-responsive]','background-color', '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .submenu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-h-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.ast-submenu-expanded + .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-h-a-bg-color-responsive]','background-color', '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.ast-submenu-expanded > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); // Sticky -- Above Header Content Section. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-text-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-section .user-select, .ast-above-sticky-header-active .ast-above-header-section .widget, .ast-above-sticky-header-active .ast-above-header-section .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-link-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-section .user-select a, .ast-above-sticky-header-active .ast-above-header-section .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-link-h-color-responsive]','color', '.ast-above-sticky-header-active .ast-above-header-section .user-select a:hover, .ast-above-sticky-header-active .ast-above-header-section .widget a:hover' ); /** * Sticky Below Header */ astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-bg-color-responsive]','background', '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' ); // Sticky -- below Header Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-bg-color-responsive]','background-color', '.ast-below-sticky-header-active .ast-below-header-actual-nav, .ast-flyout-below-menu-enable.ast-header-break-point.ast-below-sticky-header-active .ast-below-header-navigation-wrap .ast-below-header-actual-nav, .ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation-wrap' ); astra_color_responsive_css('sticky-header-menu-link', 'astra-settings[sticky-below-header-menu-color-responsive]','color', '.ast-below-sticky-header-active .ast-below-header-menu, .ast-below-sticky-header-active .ast-below-header-menu .menu-link,.ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title,.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a' ); astra_color_responsive_css('sticky-header-search-border', 'astra-settings[sticky-below-header-menu-color-responsive]','border-color', '.ast-below-sticky-header-active .below-header-user-select input.search-field:focus, .ast-below-sticky-header-active .below-header-user-select input.search-field.focus' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-h-color-responsive]','color', '.ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link,.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover, #ast-fixed-header .below-header-user-select .widget a:hover, .ast-header-break-point .ast-below-header-menu .menu-item:hover > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-h-a-bg-color-responsive]','background-color', '.ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-desktop .ast-mega-menu-enabled.ast-below-header-menu .menu-item .menu-link:hover' ); // Sticky -- below Header Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-bg-color-responsive]','background-color', '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-color-responsive]','color', '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-h-color-responsive]','color', '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-h-a-bg-color-responsive]','background-color', '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); // Sticky -- Below Header Content Section. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-text-color-responsive]','color', '.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-link-color-responsive]','color', '.ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-link-h-color-responsive]','color', '.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover' ); } else{ /** * Sticky Primary Header */ astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-bg-color-responsive]','background', '.ast-transparent-header #ast-fixed-header .main-header-bar, #ast-fixed-header .main-header-bar, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field:focus' ); // Sticky -- Primary Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-bg-color-responsive]','background-color', '#ast-fixed-header .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-color-responsive]','color', '#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu .menu-link, #ast-fixed-header .ast-header-custom-item, .ast-header-custom-item a, #ast-fixed-header li.ast-masthead-custom-menu-items, #ast-fixed-header li.ast-masthead-custom-menu-items a, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search form' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-h-color-responsive]','color', '#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-menu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link,#ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link' ); // Sticky -- Primary Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-bg-color-responsive]','background-color', '#ast-fixed-header .main-navigation ul .sub-menu, .ast-header-break-point #ast-fixed-header .main-header-menu .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-color-responsive]','color', '#ast-fixed-header .main-header-menu .sub-menu, #ast-fixed-header .main-header-menu .sub-menu .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-h-color-responsive]','color', '#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-submenu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' ); // Sticky -- Custom Menu item outside astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-text-color-responsive]','color', '#ast-fixed-header div.ast-masthead-custom-menu-items, #ast-fixed-header div.ast-masthead-custom-menu-items .widget, #ast-fixed-header div.ast-masthead-custom-menu-items .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-link-color-responsive]','color', '#ast-fixed-header div.ast-masthead-custom-menu-items a, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-header-content-section-link-h-color-responsive]','color', '#ast-fixed-header div.ast-masthead-custom-menu-items a:hover, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a:hover' ); /** * Sticky Above Header */ astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-bg-color-responsive]','background', '#ast-fixed-header .ast-above-header' ); // Sticky -- Above Header Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-bg-color-responsive]','background-color', '.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation ul, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field:focus, #ast-fixed-header .ast-above-header-navigation .ast-above-header-menu,.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-color-responsive]','color', '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .menu-link, #ast-fixed-header .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-h-color-responsive]','color', '#ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-menu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link' ); // Sticky -- Above Header Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-bg-color-responsive]','background-color', '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-color-responsive]','color', '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, #ast-fixed-header .ast-above-header-navigation .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-h-color-responsive]','color', '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-submenu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); // Sticky -- Above Header Content Section. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-text-color-responsive]','color', '#ast-fixed-header .ast-above-header-section .user-select, #ast-fixed-header .ast-above-header-section .widget, #ast-fixed-header .ast-above-header-section .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-link-color-responsive]','color', '#ast-fixed-header .ast-above-header-section .user-select a, #ast-fixed-header .ast-above-header-section .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-above-header-content-section-link-h-color-responsive]','color', '#ast-fixed-header .ast-above-header-section .user-select a:hover, #ast-fixed-header .ast-above-header-section .widget a:hover' ); /** * Sticky Below Header */ astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-bg-color-responsive]','background', '#ast-fixed-header .ast-below-header' ); // Sticky -- below Header Menu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-bg-color-responsive]','background-color', '#ast-fixed-header .ast-below-header-actual-nav' ); astra_color_responsive_css('sticky-header-menu-link', 'astra-settings[sticky-below-header-menu-color-responsive]','color', '#ast-fixed-header .ast-below-header-menu, #ast-fixed-header .ast-below-header-menu .menu-link,#ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title,#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a' ); astra_color_responsive_css('sticky-header-search-border', 'astra-settings[sticky-below-header-menu-color-responsive]','border-color', '#ast-fixed-header .below-header-user-select input.search-field:focus, #ast-fixed-header .below-header-user-select input.search-field.focus' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-h-color-responsive]','color', '#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-menu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); // Sticky -- below Header Submenu. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-bg-color-responsive]','background-color', '#ast-fixed-header .ast-below-header-menu .sub-menu' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-color-responsive]','color', '#ast-fixed-header .ast-below-header-menu .sub-menu, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-h-color-responsive]','color', '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-submenu-h-a-bg-color-responsive]','background-color', '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' ); // Sticky -- Below Header Content Section. astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-text-color-responsive]','color', '#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-link-color-responsive]','color', '#ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a' ); astra_color_responsive_css('sticky-header', 'astra-settings[sticky-below-header-content-section-link-h-color-responsive]','color', '#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover' ); } /** * Sticky Above Header background color opacity */ wp.customize( 'astra-settings[sticky-header-logo-width]', function( setting ) { setting.bind( function( logo_width ) { if ( logo_width['desktop'] != '' || logo_width['tablet'] != '' || logo_width['mobile'] != '' ) { var dynamicStyle = '.ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: ' + logo_width['desktop'] + 'px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: ' + logo_width['desktop'] + 'px;} @media( max-width: 768px ) { .ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: ' + logo_width['tablet'] + 'px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: ' + logo_width['tablet'] + 'px;} } @media( max-width: 544px ) { .ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: ' + logo_width['mobile'] + 'px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: ' + logo_width['mobile'] + 'px;} }' astra_add_dynamic_css( 'sticky-header-logo-width', dynamicStyle ); } else{ wp.customize.preview.send( 'refresh' ); } }); }); astra_css( 'astra-settingsheader-main-rt-sticky-section-button-text-color]', 'color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' ); astra_css( 'astra-settingsheader-main-rt-sticky-section-button-back-color]', 'background-color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' ); astra_css( 'astra-settingsheader-main-rt-sticky-section-button-text-h-color]', 'color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' ); astra_css( 'astra-settingsheader-main-rt-sticky-section-button-back-h-color]', 'background-color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' ); astra_responsive_spacing( 'astra-settings[header-main-rt-sticky-section-button-padding]','.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button', 'padding', ['top', 'right', 'bottom', 'left' ] ); astra_css( 'astra-settings[header-main-rt-sticky-section-button-border-radius]', 'border-radius', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button', 'px' ); astra_css( 'astra-settings[header-main-rt-sticky-section-button-border-color]', 'border-color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' ); astra_css( 'astra-settings[header-main-rt-sticky-section-button-border-h-color]', 'border-color', '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' ); /** * Button border */ wp.customize( 'astra-settings[sticky-header-button-border-group]', function( value ) { value.bind( function( value ) { var optionValue = JSON.parse(value); var border = optionValue['header-main-rt-sticky-section-button-border-size']; if( '' != border.top || '' != border.right || '' != border.bottom || '' != border.left ) { var dynamicStyle = '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button'; dynamicStyle += '{'; dynamicStyle += 'border-top-width:' + border.top + 'px;'; dynamicStyle += 'border-right-width:' + border.right + 'px;'; dynamicStyle += 'border-left-width:' + border.left + 'px;'; dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;'; dynamicStyle += 'border-style: solid;'; dynamicStyle += '}'; astra_add_dynamic_css( 'header-main-rt-sticky-section-button-border-size', dynamicStyle ); } else { wp.customize.preview.send( 'refresh' ); } } ); } ); /** * Sticky Header Site Title color */ wp.customize( 'astra-settings[header-color-site-title]', function( setting ) { setting.bind( function( site_title ) { if ( site_title != '' ) { var dynamicStyle = '#ast-fixed-header .main-header-bar .site-title a, #ast-fixed-header .main-header-bar .site-title a:focus, #ast-fixed-header .main-header-bar .site-title a:hover, #ast-fixed-header .main-header-bar .site-title a:visited, .main-header-bar.ast-sticky-active .site-title a, .main-header-bar.ast-sticky-active .site-title a:focus, .main-header-bar.ast-sticky-active .site-title a:hover, .main-header-bar.ast-sticky-active .site-title a:visited { color: ' + site_title + '}'; astra_add_dynamic_css( 'sticky-header-site-title-color', dynamicStyle ); } else{ wp.customize.preview.send( 'refresh' ); } }); }); /** * Sticky Header Site Title Hover color */ wp.customize( 'astra-settings[header-color-h-site-title]', function( setting ) { setting.bind( function( site_title_hover ) { if ( site_title_hover != '' ) { var dynamicStyle = '#ast-fixed-header .main-header-bar .site-title a:hover, .main-header-bar.ast-sticky-active .site-title a:hover { color: ' + site_title_hover + '}'; astra_add_dynamic_css( 'sticky-header-site-title-hover-color', dynamicStyle ); } else{ wp.customize.preview.send( 'refresh' ); } }); }); /** * Sticky Header Site Tagline color */ wp.customize( 'astra-settings[header-color-site-tagline]', function( setting ) { setting.bind( function( site_tagline_hover ) { if ( site_tagline_hover != '' ) { var dynamicStyle = '#ast-fixed-header .main-header-bar .site-description, .main-header-bar.ast-sticky-active .site-description { color: ' + site_tagline_hover + '}'; astra_add_dynamic_css( 'sticky-header-site-tagline-hover-color', dynamicStyle ); } else{ wp.customize.preview.send( 'refresh' ); } }); }); /** * Sticky Header Button Dynamic CSS. * */ function prepare_button_preview( index ) { var prefix = 'button' + index; var selector = '.ast-header-sticked .ast-header-button-' + index + ' .ast-builder-button-wrap'; var padding_selector = '.ast-header-sticked .ast-header-button-' + index + '[data-section*="section-hb-button-"] .ast-builder-button-wrap'; // Button Text Color. astra_color_responsive_css( 'hfb-button-color', 'astra-settings[sticky-header-' + prefix + '-text-color]', 'color', selector + ' .ast-custom-button' ); astra_color_responsive_css( 'hfb-button-color-h', 'astra-settings[sticky-header-' + prefix + '-text-h-color]', 'color', selector + ':hover .ast-custom-button' ); // Button Background Color. astra_color_responsive_css( 'hfb-button-bg-color', 'astra-settings[sticky-header-' + prefix + '-back-color]', 'background-color', selector + ' .ast-custom-button' ); astra_color_responsive_css( 'hfb-button-bg-color-h', 'astra-settings[sticky-header-' + prefix + '-back-h-color]', 'background-color', selector + ':hover .ast-custom-button' ); // Border Color. astra_color_responsive_css( 'hfb-button-border-color', 'astra-settings[sticky-header-' + prefix + '-border-color]', 'border-color', selector + ' .ast-custom-button' ); astra_color_responsive_css( 'hfb-button-border-color-h', 'astra-settings[sticky-header-' + prefix + '-border-h-color]', 'border-color', selector + ' .ast-custom-button:hover' ); astra_responsive_spacing( 'astra-settings[sticky-header-' + prefix + '-padding]', padding_selector + ' .ast-custom-button', 'padding', [ 'top', 'bottom', 'right', 'left' ] ); (function( index ) { // Border Size for Button. wp.customize( 'astra-settings[sticky-header-button' + index + '-border-size]', function( setting ) { setting.bind( function( border ) { var dynamicStyle = '.ast-header-sticked .ast-header-button-' + index + ' .ast-builder-button-wrap .ast-custom-button {'; dynamicStyle += 'border-top-width:' + border.top + 'px;'; dynamicStyle += 'border-right-width:' + border.right + 'px;'; dynamicStyle += 'border-left-width:' + border.left + 'px;'; dynamicStyle += 'border-bottom-width:' + border.bottom + 'px;'; dynamicStyle += '} '; astra_add_dynamic_css( 'astra-settings[sticky-header-button' + index + '-border-size]', dynamicStyle ); } ); } ); // Border Radius Fields for Button. wp.customize( 'astra-settings[sticky-header-button' + index + '-border-radius-fields]', function( setting ) { setting.bind( function( border ) { let globalSelector = '.ast-header-sticked .ast-header-button-' + index + ' .ast-builder-button-wrap .ast-custom-button'; let dynamicStyle = globalSelector + '{ border-top-left-radius :' + border['desktop']['top'] + border['desktop-unit'] + '; border-bottom-right-radius :' + border['desktop']['bottom'] + border['desktop-unit'] + '; border-bottom-left-radius :' + border['desktop']['left'] + border['desktop-unit'] + '; border-top-right-radius :' + border['desktop']['right'] + border['desktop-unit'] + '; } '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) { ' + globalSelector + '{ border-top-left-radius :' + border['tablet']['top'] + border['tablet-unit'] + '; border-bottom-right-radius :' + border['tablet']['bottom'] + border['tablet-unit'] + '; border-bottom-left-radius :' + border['tablet']['left'] + border['tablet-unit'] + '; border-top-right-radius :' + border['tablet']['right'] + border['tablet-unit'] + '; } } '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) { ' + globalSelector + '{ border-top-left-radius :' + border['mobile']['top'] + border['mobile-unit'] + '; border-bottom-right-radius :' + border['mobile']['bottom'] + border['mobile-unit'] + '; border-bottom-left-radius :' + border['mobile']['left'] + border['mobile-unit'] + '; border-top-right-radius :' + border['mobile']['right'] + border['mobile-unit'] + '; } } '; astra_add_dynamic_css( 'astra-settings[sticky-header-button' + index + '-border-radius-fields]', dynamicStyle ); } ); } ); })( index ); } function prepare_social_preview(index) { var selector = '.ast-header-sticked .ast-header-social-' + index + '-wrap'; // Icon Color. astra_color_responsive_css( index + 'hfb-soc-color', 'astra-settings[sticky-header-social-' + index + '-color]', 'color', selector + ' .ast-social-color-type-custom .ast-builder-social-element' ); astra_color_responsive_css( index + 'hfb-soc-svg-color', 'astra-settings[sticky-header-social-' + index + '-color]', 'fill', selector + ' .ast-social-color-type-custom .ast-builder-social-element svg' ); astra_color_responsive_css( index + 'hfb-soc-color-h', 'astra-settings[sticky-header-social-' + index + '-h-color]', 'color', selector + ' .ast-social-color-type-custom .ast-builder-social-element:hover' ); astra_color_responsive_css( index + 'hfb-soc-svg-color-label', 'astra-settings[sticky-header-social-' + index + '-color]', 'color', selector + ' .ast-social-color-type-custom .ast-builder-social-element .social-item-label' ); astra_color_responsive_css( index + 'hfb-soc-color-h-label', 'astra-settings[sticky-header-social-' + index + '-h-color]', 'color', selector + ' .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' ); astra_color_responsive_css( index + 'hfb-soc-svg-color-h', 'astra-settings[sticky-header-social-' + index + '-h-color]', 'fill', selector + ' .ast-social-color-type-custom .ast-builder-social-element:hover svg' ); // Icon Background Color. astra_color_responsive_css( index + 'hfb-soc-bg-color', 'astra-settings[sticky-header-social-' + index + '-bg-color]', 'background-color', selector + ' .ast-social-color-type-custom .ast-builder-social-element' ); astra_color_responsive_css( index + 'hfb-soc-bg-color-h', 'astra-settings[sticky-header-social-' + index + '-bg-h-color]', 'background-color', selector + ' .ast-social-color-type-custom .ast-builder-social-element:hover' ); } function prepare_html_preview(index) { var selector = '.ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-html-' + index; // HTML color. astra_css( 'astra-settings[sticky-header-html-' + index + 'color]', 'color', selector + ' .ast-builder-html-element' ); } function prepare_divider_preview( index ) { var selector = '.ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-divider-' + index; // Divider color. astra_css( 'astra-settings[sticky-header-divider-' + index + '-color]', 'border-color', selector + ' .ast-divider-wrapper' ); } for ( var index = 1; index <= astSticky.component_limit; index++ ) { prepare_button_preview(index); prepare_social_preview(index); prepare_html_preview(index); prepare_divider_preview(index); } /** * Sticky Header Search Dynamic CSS. * */ var selector = '.ast-header-sticked .ast-header-search'; // Icon Color. astra_css( 'astra-settings[sticky-header-search-icon-color]', 'color', selector + ' .astra-search-icon, ' + selector + ' .search-field::placeholder,' + selector + ' .ast-icon' ); // Box icon hover Color. astra_css( 'astra-settings[sticky-header-search-icon-h-color]', 'color', selector + ' .astra-search-icon:hover,' + selector + ' .ast-icon:hover' ); // search text Color. astra_css( 'astra-settings[sticky-header-search-text-placeholder-color]', 'color', selector + ' .ast-search-menu-icon .search-field, ' + selector + ' .ast-search-menu-icon .search-field::placeholder' ); // Box Background Color. astra_css( 'astra-settings[sticky-header-search-box-background-color]', 'background-color', selector + ' .ast-search-menu-icon .search-field, ' + selector + ' .ast-search-menu-icon .search-form, ' + selector + ' .ast-search-menu-icon .search-submit ' ); // Box Background hover Color. astra_css( 'astra-settings[sticky-header-search-box-background-h-color]', 'background-color', selector + ' .ast-search-menu-icon:hover .search-field, ' + selector + ' .ast-search-menu-icon:hover .search-form, ' + selector + ' .ast-search-menu-icon:hover .search-submit,' + selector + ' .ast-search-menu-icon:focus .search-field, ' + selector + ' .ast-search-menu-icon:focus .search-form, ' + selector + ' .ast-search-menu-icon:focus .search-submit ' ); /** * Sticky Header language switcher Dynamic CSS. * */ wp.customize( 'astra-settings[sticky-header-language-switcher-color]', function( value ) { value.bind( function( color ) { if( ! color ) { color = 'inherit'; } var dynamicStyle = '.ast-header-sticked .ast-lswitcher-item-header {'; dynamicStyle += 'color: ' + color + ';'; dynamicStyle += '} '; astra_add_dynamic_css( 'sticky-header-language-switcher-color', dynamicStyle ); } ); } ); /** * Sticky Header Widget Dynamic CSS. * */ for ( var index = 1; index <= astSticky.component_limit; index++ ) { var selector = '.ast-header-sticked .header-widget-area[data-section="sidebar-widgets-header-widget-' + index + '"]'; if( astSticky.is_flex_based_css ){ selector = selector + '.header-widget-area-inner'; }else{ selector = selector + ' .header-widget-area-inner'; } // Widget Content Color. astra_css( 'astra-settings[sticky-header-widget-' + index + '-color]', 'color', selector ); // Widget Link Color. astra_css( 'astra-settings[sticky-header-widget-' + index + '-link-color]', 'color', selector + ' a' ); // Widget Link Hover Color. astra_css( 'astra-settings[sticky-header-widget-' + index + '-link-h-color]', 'color', selector + ' a:hover' ); // Widget Title Color. astra_css( 'astra-settings[sticky-header-widget-' + index + '-title-color]', 'color', selector + ' .widget-title' ); } /** * Sticky Header account Dynamic CSS. * */ var account_selector = '.ast-header-sticked .ast-header-account-wrap'; // Icon Color. wp.customize( 'astra-settings[sticky-header-account-icon-color]', function( value ) { value.bind( function( color ) { if( ! color ) { color = 'inherit'; } var dynamicStyle = account_selector + ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not(.ast-hf-account-unfill), ' + account_selector + ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle {'; dynamicStyle += 'fill: ' + color + ';'; dynamicStyle += '} '; astra_add_dynamic_css( 'sticky-header-account-icon-color', dynamicStyle ); } ); } ); // Icon Color. astra_css( 'astra-settings[sticky-header-account-type-text-color]', 'color', account_selector + ' .ast-header-account-text' ); // Menu - Normal Color astra_css( 'astra-settings[sticky-header-account-menu-color]', 'color', account_selector + ' .main-header-menu .menu-item > .menu-link' ); // Menu - Hover Color astra_css( 'astra-settings[sticky-header-account-menu-h-color]', 'color', account_selector + ' .menu-item:hover > .menu-link' ); // Menu - Active Color astra_css( 'astra-settings[sticky-header-account-menu-a-color]', 'color', account_selector + ' .menu-item.current-menu-item > .menu-link' ); // Menu - Background astra_css( 'astra-settings[sticky-header-account-menu-bg-obj]', 'background', account_selector + ' .account-main-navigation ul, ' + account_selector + ' .account-woo-navigation ul,' + account_selector + ' .main-header-menu.ast-account-nav-menu .menu-item > .menu-link' ); // Menu - Hover Background astra_css( 'astra-settings[sticky-header-account-menu-h-bg-color]', 'background', account_selector + ' .main-header-menu.ast-account-nav-menu .menu-item:hover > .menu-link' ); // Menu - Active Background astra_css( 'astra-settings[sticky-header-account-menu-a-bg-color]', 'background', account_selector + ' .main-header-menu.ast-account-nav-menu .menu-item.current-menu-item > .menu-link' ); /** * Sticky Header menu-toggle Dynamic CSS. */ var toggle_selector = '[CLASS*="-sticky-header-active"] .ast-header-sticked [data-section="section-header-mobile-trigger"]'; // Trigger Icon Color. astra_css( 'astra-settings[sticky-header-toggle-btn-color]', 'fill', toggle_selector + ' .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg' ); // Trigger Label Color. astra_css( 'astra-settings[sticky-header-toggle-btn-color]', 'color', toggle_selector + ' .ast-button-wrap .mobile-menu-wrap .mobile-menu' ); // Trigger Button Background Color. astra_css( 'astra-settings[sticky-header-toggle-btn-bg-color]', 'background', toggle_selector + ' .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-fill' ); // Border Color. astra_css( 'astra-settings[sticky-header-toggle-border-color]', 'border-color', toggle_selector + ' .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-outline' ); } )( jQuery ); assets/js/unminified/sticky-header.js 0000666 00000105467 15165306611 0013730 0 ustar 00 /** * Stick elements * * => How to use? * * jQuery( {SELECTOR} ).astExtSticky( { * dependent: [{selectors}], // Not required. Default: []. Stick element dependent selectors. * stick_upto_scroll: {value}, // Not required. Default: 0. Stick element after scroll upto the {value} in px. * gutter: {value}, // Not required. Default: 0. Stick element from top of the window in px\. * }); * * @package Astra Addon * @since 1.0.0 */ ;(function ( $, window, undefined ) { var pluginName = 'astExtSticky', document = window.document, windowWidth = jQuery( window ).outerWidth(), viewPortWidth = jQuery( window ).width(), header_builder_active = astraAddon.header_builder_active, defaults = { dependent : [], max_width : '', site_layout : '', break_point : 920, admin_bar_height_lg : 32, admin_bar_height_sm : 46, admin_bar_height_xs : 0, stick_upto_scroll : 0, gutter : 0, wrap : '<div></div>', // Padding support of <body> tag. body_padding_support : true, // Padding support of <html> tag. html_padding_support : true, // Added shrink option. shrink : { padding_top : '', padding_bottom : '', }, // Enable sticky on mobile sticky_on_device : 'desktop', header_style : 'none', hide_on_scroll : 'no', }, /* Manage hide on scroll down */ lastScrollTop = 0, delta = 5, navbarHeight = 0, loginPopup = document.querySelector('#ast-hb-account-login-wrap') !== null, should_stick = true, hideScrollInterval; /** * Init * * @since 1.0.0 */ function astExtSticky( element, options ) { this.element = element; this.options = $.extend( {}, defaults, options ); this._defaults = defaults; this._name = pluginName; /* Manage hide on scroll down */ if ( '1' == this.options.hide_on_scroll ) { this.navbarHeight = $(element).outerHeight(); } this.lastScrollTop = 0; this.delta = 5; this.should_stick = true; this.hideScrollInterval = ''; this.init(); } /** * Stick element * * @since 1.0.0 */ astExtSticky.prototype.stick_me = function( self, type ) { var selector = jQuery( self.element ), windowWidth = jQuery( window ).outerWidth(); stick_upto_scroll = parseInt( self.options.stick_upto_scroll ), max_width = parseInt( selector.parent().attr( 'data-stick-maxwidth' ) ), // parseInt( self.options.max_width ), gutter = parseInt( selector.parent().attr( 'data-stick-gutter' ) ), // parseInt( self.options.gutter ). aboveHeaderSelectorValue = gutter; if ( header_builder_active && astraAddon.header_main_shrink ) { // Decrese the top of primary / below as we decrease the min-height of all sticked headers by 20. if ( ( selector.hasClass( 'ast-stick-primary-below-wrapper' ) || ( selector.hasClass( 'ast-primary-header' ) ) ) && 1 == astraAddon.header_above_stick && gutter > 0 ) { gutter = gutter - 10; } var aboveHeaderSelector = document.querySelector('.ast-above-header-bar'); if ( 1 == astraAddon.header_above_stick && null !== aboveHeaderSelector ) { aboveHeaderSelectorValue = aboveHeaderSelector.getBoundingClientRect().height + parseInt( aboveHeaderSelector.parentNode.getAttribute( 'data-stick-gutter' ) ); } } /** * Check window width */ if ( 'desktop' == self.options.sticky_on_device && jQuery( 'body' ).hasClass( 'ast-header-break-point' ) ) { self.stickRelease( self ); } else if ( 'mobile' == self.options.sticky_on_device && ! jQuery( 'body' ).hasClass( 'ast-header-break-point' ) ) { self.stickRelease( self ); } else { // stick_upto_scroll with negative value enables a sticky by default so rounding up to zero. if ( stick_upto_scroll < 0 ) { stick_upto_scroll = 0; } // Check if the Elementor Motion Effect class present var stcikyHeaderElementor = document.getElementsByClassName('elementor-motion-effects-parent'); var stickyHeaderFlag = stcikyHeaderElementor.length > 0 ? true : false; if ( jQuery( window ).scrollTop() > stick_upto_scroll ) { var fixed_header = selector; if ( header_builder_active ) { var mobile_parent = selector.closest( '.ast-mobile-header-wrap' ); var desktop_parent = selector.closest( '#ast-desktop-header' ); mobile_parent = ( 0 === mobile_parent.length ) ? selector.find( '.ast-mobile-header-wrap' ) : mobile_parent; desktop_parent = ( 0 === desktop_parent.length ) ? selector.find( '#ast-desktop-header' ) : desktop_parent; mobile_parent.find( '.ast-mobile-header-content' ).css( 'top', selector.outerHeight() + gutter ); if ( 'ast-box-layout' == self.options.site_layout ) { var max_width_mobile = jQuery( 'body' ).width(); mobile_parent.find( '.ast-mobile-header-content' ).css( 'width', max_width_mobile ); } else { mobile_parent.find( '.ast-mobile-header-content' ).css( 'width', max_width ); } desktop_parent.find( '.ast-desktop-header-content' ).css( 'top', selector.outerHeight() + gutter ); desktop_parent.find( '.ast-desktop-header-content' ).css( 'width', max_width ); } if ( '1' === self.options.hide_on_scroll ) { self.hasScrolled( self, 'stick' ); }else if ( 'none' == self.options.header_style ) { if ( ! stickyHeaderFlag ) { selector.parent().css( 'min-height', selector.outerHeight() ); } if ( ! document.querySelector('body').classList.contains( 'fl-builder-edit' ) ) { selector.addClass('ast-sticky-active').stop().css({ 'top': gutter, }); } selector.addClass( 'ast-sticky-active' ).stop().css({ 'max-width' : max_width, 'padding-top' : self.options.shrink.padding_top, 'padding-bottom' : self.options.shrink.padding_bottom, }); if ( ( selector.hasClass( 'ast-stick-primary-below-wrapper' ) || selector.hasClass( 'ast-primary-header' ) ) && 1 == astraAddon.header_above_stick && 70 > selector.closest('#ast-desktop-header').find('.ast-above-header-bar').outerHeight() ) { selector.addClass( 'ast-sticky-active' ).stop().css({ 'top' : stickyHeaderFlag ? aboveHeaderSelectorValue : 'unset', }); selector.parent().css( 'min-height', 'unset' ); } selector.addClass( 'ast-sticky-shrunk' ).stop(); $( document ).trigger( "addStickyClass" ); fixed_header.addClass('ast-header-sticked'); }else if ( 'slide' == self.options.header_style ) { fixed_header.css({ 'top' : gutter, }); fixed_header.addClass('ast-header-slide'); fixed_header.css( 'visibility', 'visible' ); fixed_header.addClass( 'ast-sticky-active' ).stop().css({ 'transform': loginPopup ? 'none' : 'translateY(0)', }); $('html').addClass('ast-header-stick-slide-active'); $( document ).trigger( "addStickyClass" ); fixed_header.addClass('ast-header-sticked'); }else if( 'fade' == self.options.header_style ) { fixed_header.css({ 'top' : gutter, }); fixed_header.addClass('ast-header-fade'); fixed_header.css( 'visibility', 'visible' ); fixed_header.addClass( 'ast-sticky-active' ).stop().css({ 'opacity' : '1', }); $('html').addClass('ast-header-stick-fade-active'); $( document ).trigger( "addStickyClass" ); fixed_header.addClass('ast-header-sticked'); } } else { self.stickRelease( self ); if ( header_builder_active ) { var mobile_parent = selector.closest( '.ast-mobile-header-wrap' ); mobile_parent = ( 0 === mobile_parent.length ) ? selector.find( '.ast-mobile-header-wrap' ) : mobile_parent; if ( !jQuery( 'body' ).hasClass( 'ast-primary-sticky-header-active' ) || !jQuery( 'body' ).hasClass( 'ast-above-sticky-header-active' ) || !jQuery( 'body' ).hasClass( 'ast-below-sticky-header-active' ) ) { mobile_parent.find( '.ast-mobile-header-content' ).removeAttr( 'style' ); } } } } } astExtSticky.prototype.update_attrs = function () { var self = this, selector = jQuery( self.element ), gutter = parseInt( self.options.gutter ), max_width = self.options.max_width; if ( 'none' == self.options.header_style && ! jQuery( 'body' ).hasClass( 'ast-sticky-toggled-off' ) ) { var stick_upto_scroll = selector.offset().top || 0; }else{ if ( $('#masthead').length ) { var masthead = $('#masthead'); var masthead_bottom = masthead.offset().top + masthead.outerHeight() + 100; var stick_upto_scroll = masthead_bottom || 0; } } /** * Update Max-Width */ if ( 'ast-box-layout' != self.options.site_layout ) { max_width = jQuery( 'body' ).width(); } /** * Check dependent element * - Is exist? * - Has attr 'data-stick-support' with status 'on' */ if ( self.options.dependent ) { jQuery.each( self.options.dependent, function(index, val) { if ( ( jQuery( val ).length ) && ( jQuery( val ).parent().attr( 'data-stick-support' ) == 'on' ) ) { dependent_height = jQuery( val ).outerHeight(); gutter += parseInt( dependent_height ); stick_upto_scroll -= parseInt( dependent_height ); } }); } /** * Add support for Admin bar height */ if ( self.options.admin_bar_height_lg && jQuery( '#wpadminbar' ).length && viewPortWidth > 782 ) { gutter += parseInt( self.options.admin_bar_height_lg ); stick_upto_scroll -= parseInt( self.options.admin_bar_height_lg ); } if ( self.options.admin_bar_height_sm && jQuery( '#wpadminbar' ).length && ( viewPortWidth >= 600 && viewPortWidth <= 782 ) ) { gutter += parseInt( self.options.admin_bar_height_sm ); stick_upto_scroll -= parseInt( self.options.admin_bar_height_sm ); } if( self.options.admin_bar_height_xs && jQuery( '#wpadminbar' ).length ){ gutter += parseInt( self.options.admin_bar_height_xs ); stick_upto_scroll -= parseInt( self.options.admin_bar_height_xs ); } /** * Add support for <body> tag */ if ( self.options.body_padding_support ) { gutter += parseInt( jQuery( 'body' ).css( 'padding-top' ), 10 ); stick_upto_scroll -= parseInt( jQuery( 'body' ).css( 'padding-top' ), 10 ); } /** * Add support for <html> tag */ if ( self.options.html_padding_support ) { gutter += parseInt( jQuery( 'html' ).css( 'padding-top' ), 10 ); stick_upto_scroll -= parseInt( jQuery( 'html' ).css( 'padding-top' ), 10 ); } /** * Reduce the stick_upto_scrll by one if filter `astra_addon_sticky_header_stick_origin_position` is set true. * This will make the sticky header appear sticky on initial load. */ if ( stick_origin_position ) { stick_upto_scroll--; } /** * Updated vars */ self.options.stick_upto_scroll = stick_upto_scroll; /** * Update Attributes */ if ( 'none' == self.options.header_style ) { selector.parent() .css( 'min-height', selector.outerHeight() ) .attr( 'data-stick-gutter', parseInt( gutter ) ) .attr( 'data-stick-maxwidth', parseInt( max_width ) ); }else{ selector.parent() .attr( 'data-stick-gutter', parseInt( gutter ) ) .attr( 'data-stick-maxwidth', parseInt( max_width ) ); if ( 'ast-padded-layout' === self.options.site_layout ) { selector.css( 'max-width', parseInt( max_width ) ); } } } astExtSticky.prototype.hasScrolled = function( self, method ) { var st = $( window ).scrollTop(); // Make sure they scroll more than delta if(Math.abs(lastScrollTop - st) <= delta) return; // If they scrolled down and are past the navbar, add class .nav-up. // This is necessary so you never see what is "behind" the navbar. var fixed_header = jQuery(self.element); if (st > lastScrollTop && st > navbarHeight){ // Scroll Down jQuery(self.element).removeClass('ast-nav-down').addClass('ast-nav-up'); } else { // Scroll Up if(st + $(window).height() < $(document).height()) { jQuery(self.element).removeClass('ast-nav-up').addClass('ast-nav-down'); } } lastScrollTop = st; if ( !$(self.element).hasClass('ast-nav-up') && 'stick' == method ) { fixed_header.css({ 'top' : gutter, }); fixed_header.addClass('ast-header-sticked'); fixed_header.addClass('ast-header-slide'); fixed_header.css( 'visibility', 'visible' ); fixed_header.addClass( 'ast-sticky-active' ).stop().css({ 'transform':'translateY(0)', }); $( document ).trigger( "addStickyClass" ); $('html').addClass('ast-header-stick-scroll-active'); }else{ fixed_header.css({ 'transform':'translateY(-100%)', }).stop(); setTimeout(function() { fixed_header.removeClass( 'ast-sticky-active' ); }, 300); fixed_header.css({ 'visibility' : 'hidden', 'top' : '', }); $( document ).trigger( "removeStickyClass" ); $('html').removeClass('ast-header-stick-scroll-active'); fixed_header.removeClass('ast-header-sticked'); } } astExtSticky.prototype.stickRelease = function( self ) { var selector = jQuery( self.element ); var fixed_header = selector; if ( '1' === self.options.hide_on_scroll ) { self.hasScrolled( self, 'release' ); }else{ if ( 'none' == self.options.header_style ) { selector.removeClass( 'ast-sticky-active' ).stop().css({ 'max-width' : '', 'top' : '', 'padding' : '', }); selector.parent().css( 'min-height', '' ); $( document ).trigger( "removeStickyClass" ); fixed_header.removeClass('ast-header-sticked'); selector.removeClass( 'ast-sticky-shrunk' ).stop(); }else if ( 'slide' == self.options.header_style ) { fixed_header.removeClass( 'ast-sticky-active' ).stop().css({ 'transform': loginPopup ? 'translateY(-100vh)' : 'translateY(-100%)', }); fixed_header.css({ 'visibility' : 'hidden', 'top' : '', }); $('html').removeClass('ast-header-stick-slide-active'); $( document ).trigger( "removeStickyClass" ); fixed_header.removeClass('ast-header-sticked'); }else if( 'fade' == self.options.header_style ) { fixed_header.removeClass( 'ast-sticky-active' ).stop().css({ 'opacity' : '0', }); fixed_header.css({ 'visibility' : 'hidden', }); fixed_header.removeClass('ast-header-sticked'); $( document ).trigger( "removeStickyClass" ); $('html').removeClass('ast-header-stick-fade-active'); } } } /** * Init Prototype * * @since 1.0.0 */ astExtSticky.prototype.init = function () { /** * If custom stick options are set */ if ( jQuery( this.element ) ) { var self = this, selector = jQuery( self.element ); /** * Add parent <div> wrapper with height element for smooth scroll * * Added 'data-stick-support' to all sticky elements * To know the {dependent} element has support of 'stick' */ if ( 'none' == self.options.header_style ) { selector.wrap( self.options.wrap ) .parent().css( 'min-height', selector.outerHeight() ) .attr( 'data-stick-support', 'on' ) .attr( 'data-stick-maxwidth', parseInt( self.options.max_width ) ); }else{ selector.wrap( self.options.wrap ) .attr( 'data-stick-support', 'on' ) .attr( 'data-stick-maxwidth', parseInt( self.options.max_width ) ); } self.update_attrs(); // Stick me!. jQuery( window ).on('resize', function() { self.stickRelease( self ); self.update_attrs(); self.stick_me( self ); } ); jQuery( window ).on('scroll', function() { // update the stick_upto_scroll if normal main header navigation is opend. self.stick_me( self, 'scroll' ); if( jQuery( 'body' ).hasClass( 'ast-sticky-toggled-off' ) ){ self.update_attrs(); self.stick_me( self, 'scroll' ); } } ); jQuery( document ).ready(function($) { self.stick_me( self ); } ); } }; $.fn[pluginName] = function ( options ) { return this.each(function () { if ( ! $.data( this, 'plugin_' + pluginName )) { $.data( this, 'plugin_' + pluginName, new astExtSticky( this, options ) ); } }); } var $body = jQuery( 'body' ), layout_width = $body.width(), stick_header_meta = astraAddon.stick_header_meta || 'default', stick_main = astraAddon.header_main_stick || '', main_shrink = astraAddon.header_main_shrink || '', stick_above = astraAddon.header_above_stick || '', stick_below = astraAddon.header_below_stick || '', header_main_stick_meta = astraAddon.header_main_stick_meta || '', header_above_stick_meta = astraAddon.header_above_stick_meta || '', header_below_stick_meta = astraAddon.header_below_stick_meta || '', site_layout = astraAddon.site_layout || '', site_layout_box_width = astraAddon.site_layout_box_width || 1200, sticky_header_on_devices = astraAddon.sticky_header_on_devices || 'desktop', sticky_header_style = astraAddon.sticky_header_style || 'none', sticky_hide_on_scroll = astraAddon.sticky_hide_on_scroll || '', header_logo_width = astraAddon.header_logo_width || '', responsive_header_logo_width = astraAddon.responsive_header_logo_width || '', stick_origin_position = astraAddon.stick_origin_position || '', tablet_break_point = astraAddon.tablet_break_point || 768, mobile_break_point = astraAddon.mobile_break_point || 544; /** * Check meta options */ if ( 'disabled' == stick_header_meta ) { return; } if ( 'enabled' === stick_header_meta ) { stick_main = header_main_stick_meta; stick_above = header_above_stick_meta; stick_below = header_below_stick_meta; } if ( $('header .site-logo-img img').length > 0 ) { var id_img = $('header .site-logo-img img'); var id_height = id_img.attr('height'); if ( typeof id_height === 'undefined' ) { id_height = id_img.height(); } if ( id_height == 0 ) { id_height = ''; } if ( -1 === id_height.toString().indexOf('%') ) { id_height += 'px'; } if ( '' != responsive_header_logo_width.desktop || '' != responsive_header_logo_width.tablet || '' != responsive_header_logo_width.mobile ) { var output = "<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: " + responsive_header_logo_width.desktop + "px; } @media (max-width: " + tablet_break_point + "px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: " + responsive_header_logo_width.tablet + "px; } } @media (max-width: " + mobile_break_point + "px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg{ width: " + responsive_header_logo_width.mobile + "px; } } </style>"; }else if( '' != header_logo_width ){ var output = "<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: " + header_logo_width + "px; } #masthead .ast-header-sticked .site-logo-img img { max-height: " + id_height + "; width: auto; } </style>"; } $("head").append( output ); } // Any stick header is enabled? if ( stick_main || stick_above || stick_below ) { // Add Respective class to the body dependent on which sticky header is activated. $( document ).on( "addStickyClass", function() { var bodyClass = ''; if ( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) { bodyClass += " ast-primary-sticky-header-active"; } if ( '1' == stick_above || 'on' == stick_above || 'disabled' == stick_above ) { bodyClass += " ast-above-sticky-header-active"; } if ( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) { bodyClass += " ast-below-sticky-header-active"; } $('body').addClass(bodyClass); }); // Remove Respective class from the body dependent on which sticky header is not activated. $( document ).on( "removeStickyClass", function() { var bodyClass = ''; if ( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) { bodyClass += " ast-primary-sticky-header-active"; } if ( '1' == stick_above || 'on' == stick_above || 'disabled' == stick_above ) { bodyClass += " ast-above-sticky-header-active"; } if ( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) { bodyClass += " ast-below-sticky-header-active"; } $('body').removeClass(bodyClass); }); switch ( site_layout ) { case 'ast-box-layout': layout_width = parseInt( site_layout_box_width ); break; } jQuery( document ).on('ready astLayoutWidthChanged', function( e ) { if( 'astLayoutWidthChanged' === e.type ) { // return if sticky not enabled. if (!(parseInt( stick_main ) || parseInt( stick_below ) || parseInt( stick_above ))) { return; } // Unwrapping sticky to reapply again. jQuery('div.ast-stick-primary-below-wrapper').children().unwrap(); jQuery('div[data-stick-support="on"]').children().unwrap(); } if ( '1' == sticky_hide_on_scroll ) { if ( '1' == main_shrink ) { jQuery( '#ast-fixed-header' ).addClass( 'ast-sticky-shrunk' ).stop(); } if( !( '1' == stick_above || 'on' == stick_above || 'disabled' == stick_above ) ) { jQuery( '#ast-fixed-header .ast-above-header' ).hide(); } if( !( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) ) { jQuery( '#ast-fixed-header .main-header-bar' ).hide(); } if( !( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) ) { jQuery( '#ast-fixed-header .ast-below-header' ).hide(); } jQuery( '#ast-fixed-header' ).astExtSticky({ //dependent: ['#masthead .ast-above-header'], max_width: layout_width, site_layout: site_layout, sticky_on_device: sticky_header_on_devices, header_style: 'slide', hide_on_scroll: sticky_hide_on_scroll, }); }else{ if ('none' == sticky_header_style) { if (header_builder_active) { var headers = 'both' === sticky_header_on_devices ? ['desktop', 'mobile'] : [sticky_header_on_devices]; headers.forEach(function (header) { /** * Stick Above Header */ if ('1' == stick_above || 'on' == stick_above || 'disabled' == stick_above) { jQuery('#masthead #ast-' + header + '-header .ast-above-header').astExtSticky({ max_width: layout_width, site_layout: site_layout, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } // Add wrapper class to primary header & below header if stick primary header , stick below header and shrink primary header is enabled. // stick wrapper class of primary header and below header if (('1' == stick_main || 'on' == stick_main || 'disabled' == stick_main) && ('1' == stick_below || 'on' == stick_below || 'disabled' == stick_below) ) { var selector = jQuery('#masthead #ast-' + header + '-header .main-header-bar-wrap').length ? jQuery('#masthead #ast-' + header + '-header .main-header-bar-wrap') : jQuery('#masthead #ast-' + header + '-header .ast-below-header-wrap'); selector.wrap('<div class="ast-stick-primary-below-wrapper"></div>') jQuery('#masthead #ast-' + header + '-header .ast-below-header-wrap').prependTo('#masthead #ast-' + header + '-header .ast-stick-primary-below-wrapper'); jQuery('#masthead #ast-' + header + '-header .main-header-bar-wrap').prependTo('#masthead #ast-' + header + '-header .ast-stick-primary-below-wrapper'); jQuery('#masthead #ast-' + header + '-header .ast-stick-primary-below-wrapper').astExtSticky({ dependent: ['#masthead #ast-' + header + '-header .ast-above-header'], max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } else { /** * Stick Main Header */ if ('1' == stick_main || 'on' == stick_main || 'disabled' == stick_main) { // If shrink is enabled // then add shrink top and bottom paddings. var shrink_options = ''; if (main_shrink) { shrink_options = { padding_top: '', padding_bottom: '', } } jQuery('#masthead #ast-' + header + '-header .main-header-bar').astExtSticky({ dependent: ['#masthead #ast-' + header + '-header .ast-above-header'], max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); jQuery('#masthead #ast-' + header + '-header .ast-custom-header').astExtSticky({ max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } /** * Stick Below Header */ if (('1' == stick_below || 'on' == stick_below || 'disabled' == stick_below)) { jQuery('#masthead #ast-' + header + '-header .ast-below-header').astExtSticky({ dependent: ['#masthead #ast-' + header + '-header .main-header-bar', '#masthead #ast-' + header + '-header .ast-above-header'], max_width: layout_width, site_layout: site_layout, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } } }); } else { /** * Stick Above Header */ if ('1' == stick_above || 'on' == stick_above || 'disabled' == stick_above) { jQuery('#masthead .ast-above-header').astExtSticky({ max_width: layout_width, site_layout: site_layout, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } // Add wrapper class to primary header & below header if stick primary header , stick below header and shrink primary header is enabled. // stick wrapper class of primary header and below header if (('1' == stick_main || 'on' == stick_main || 'disabled' == stick_main) && ('1' == stick_below || 'on' == stick_below || 'disabled' == stick_below) ) { jQuery('#masthead .main-header-bar-wrap').wrap('<div class="ast-stick-primary-below-wrapper"></div>') jQuery('#masthead .ast-below-header-wrap').prependTo('.ast-stick-primary-below-wrapper'); jQuery('#masthead .main-header-bar-wrap').prependTo('.ast-stick-primary-below-wrapper'); jQuery('#masthead .ast-stick-primary-below-wrapper').astExtSticky({ dependent: ['#masthead .ast-above-header'], max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } else { /** * Stick Main Header */ if ('1' == stick_main || 'on' == stick_main || 'disabled' == stick_main) { // If shrink is enabled // then add shrink top and bottom paddings. var shrink_options = ''; if (main_shrink) { shrink_options = { padding_top: '', padding_bottom: '', } } jQuery('#masthead .main-header-bar').astExtSticky({ dependent: ['#masthead .ast-above-header'], max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); jQuery('#masthead .ast-custom-header').astExtSticky({ max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } /** * Stick Below Header */ if (('1' == stick_below || 'on' == stick_below || 'disabled' == stick_below)) { jQuery('#masthead .ast-below-header').astExtSticky({ dependent: ['#masthead .main-header-bar', '#masthead .ast-above-header'], max_width: layout_width, site_layout: site_layout, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } } } } else{ jQuery( '#ast-fixed-header' ).addClass( 'ast-sticky-shrunk' ).stop(); if( !( '1' == stick_above || 'on' == stick_above || 'disabled' == stick_above ) ) { jQuery( '#ast-fixed-header .ast-above-header' ).hide(); } if( !( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) ) { jQuery( '#ast-fixed-header .main-header-bar' ).hide(); } if( !( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below) ) { jQuery( '#ast-fixed-header .ast-below-header' ).hide(); } /** * Stick Main Header */ if ( '1' == stick_above || 'on' == stick_above || 'disabled' == stick_above || '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main || '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) { // If shrink is enabled // then add shrink top and bottom paddings. var shrink_options = ''; if( main_shrink ) { shrink_options = { padding_top: '', padding_bottom: '', } } jQuery( '#ast-fixed-header' ).astExtSticky({ //dependent: ['#masthead .ast-above-header'], max_width: layout_width, site_layout: site_layout, shrink: shrink_options, sticky_on_device: sticky_header_on_devices, header_style: sticky_header_style, hide_on_scroll: sticky_hide_on_scroll, }); } } } // If Sticky Header for both mobile , desktops. if ( 'mobile' == sticky_header_on_devices || 'both' == sticky_header_on_devices ) { // Normal Header Mobile Menu Toggled jQuery( '#masthead .main-header-menu-toggle' ).click(function(event) { /* If menu navigation is opened and has sticky active */ if( jQuery( '#masthead .main-header-menu-toggle' ).hasClass( 'toggled' ) ){ // Add body class to update the stick_upto_scroll. $body.addClass('ast-sticky-toggled-off'); if ( 'none' == defaults['header_style'] && ( jQuery( '#masthead .main-header-bar' ).hasClass('ast-sticky-active') || jQuery( '#masthead .ast-stick-primary-below-wrapper' ).hasClass('ast-sticky-active') ) ){ // Only If none style is selected var windowHeight = jQuery( window ).height(), headerSectionHeight = 0; if ( jQuery( '#masthead .ast-above-header' ) && jQuery( '#masthead .ast-above-header' ).length ) { headerSectionHeight = jQuery( '#masthead .ast-above-header' ).height(); } // overflow hide for html. if ( '1' == sticky_hide_on_scroll ) { jQuery( 'html' ).css({ 'overflow' : 'hidden', }); } // add min height to wrapper class of primary header and below header if ( '1' == main_shrink && ( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) && ( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) ) { jQuery( '#masthead .ast-stick-primary-below-wrapper' ).css({ 'max-height' : ( windowHeight - headerSectionHeight ) +'px', 'overflow-y' : 'auto', }); } else { // ass max height to sticky header. jQuery( '#masthead .main-header-bar.ast-sticky-active' ).css({ 'max-height' : ( windowHeight - headerSectionHeight ) +'px', 'overflow-y' : 'auto', }); } } } else{ $body.addClass('ast-sticky-toggled-off'); jQuery( 'html' ).css({ 'overflow' : '', }); if ( '1' == main_shrink && ( '1' == stick_main || 'on' == stick_main || 'disabled' == stick_main ) && ( '1' == stick_below || 'on' == stick_below || 'disabled' == stick_below ) ) { jQuery( '#masthead .ast-stick-primary-below-wrapper' ).css({ 'max-height' : '', 'overflow-y' : '', }); } else { // ass max height to sticky header. jQuery( '#masthead .main-header-bar.ast-sticky-active' ).css({ 'max-height' : '', 'overflow-y' : '', }); } } }); // Fixed Header Mobile Menu Toggled jQuery( '#ast-fixed-header .main-header-menu-toggle' ).click(function(event) { /* If menu navigation is opened and has sticky active */ if( jQuery( '#ast-fixed-header .main-header-menu-toggle' ).hasClass( 'toggled' ) ){ var windowHeight = jQuery( window ).height(); // overflow hide for html. if ( '1' == sticky_hide_on_scroll ) { jQuery( 'html' ).css({ 'overflow' : 'auto', }); } // ass max height to sticky header. jQuery( '#ast-fixed-header' ).css({ 'max-height' : ( windowHeight ) +'px', 'overflow-y' : 'auto', }); } // remove css if menu toggle is closed. else{ jQuery( 'html' ).css({ 'overflow' : '', }); jQuery( '#ast-fixed-header' ).css({ 'max-height' : '', 'overflow-y' : '', }); } }); } }); } }(jQuery, window)); assets/js/unminified/sticky-header-compatibility.js 0000666 00000022771 15165306611 0016573 0 ustar 00 ( function() { var __fixed_header = document.getElementById('ast-fixed-header'); var __main_header = __fixed_header.querySelector( '.main-header-bar-navigation' ); var menu_toggle = __fixed_header.querySelector( '.main-header-menu-toggle' ); /* Main Menu toggle click */ if ( null != menu_toggle ) { menu_toggle.addEventListener( 'click', function( event ) { event.preventDefault(); var menuHasChildren = __fixed_header.querySelectorAll( '.menu-item-has-children' ); for ( var i = 0; i < menuHasChildren.length; i++ ) { menuHasChildren[i].classList.remove( 'ast-submenu-expanded' ); var menuHasChildrenSubMenu = menuHasChildren[i].querySelectorAll( '.sub-menu' ); for (var j = 0; j < menuHasChildrenSubMenu.length; j++) { menuHasChildrenSubMenu[j].style.display = 'none'; }; } var menu_class = this.getAttribute('class') || ''; if ( menu_class.indexOf('main-header-menu-toggle') !== -1 ) { if (typeof astraToggleClass === "function") { astraToggleClass(__main_header_all[event_index], 'toggle-on'); astraToggleClass(menu_toggle_all[event_index], 'toggled'); } else { toggleClass(__main_header_all[event_index], 'toggle-on'); toggleClass(menu_toggle_all[event_index], 'toggled'); } if (__main_header_all[event_index].classList.contains('toggle-on')) { __main_header_all[event_index].style.display = 'block'; document.body.classList.add("ast-main-header-nav-open"); } else { __main_header_all[event_index].style.display = ''; document.body.classList.remove("ast-main-header-nav-open"); } } }, false); } CAstraNavigationMenu = function( selector ) { var parentList = __fixed_header.querySelectorAll( selector ); //console.log( parentList ); for (var i = 0; i < parentList.length; i++) { if ( null != parentList[i].querySelector( '.sub-menu' ) ) { // Insert Toggle Button. var toggleButton = document.createElement("BUTTON"); // Create a <button> element toggleButton.setAttribute("role", "button"); toggleButton.setAttribute("class", "ast-menu-toggle"); toggleButton.setAttribute("aria-expanded", "false"); toggleButton.innerHTML="<span class='screen-reader-text'>Menu Toggle</span>"; parentList[i].insertBefore( toggleButton, parentList[i].childNodes[1] ); var menuLeft = parentList[i].getBoundingClientRect().left, windowWidth = window.innerWidth, menuFromLeft = (parseInt( windowWidth ) - parseInt( menuLeft ) ), menuGoingOutside = false; if( menuFromLeft < 500 ) { menuGoingOutside = true; } // Submenu items goes outside? if( menuGoingOutside ) { parentList[i].classList.add( 'ast-left-align-sub-menu' ); var all_submenu_parents = parentList[i].querySelectorAll( '.menu-item-has-children' ); for (var k = 0; k < all_submenu_parents.length; k++) { all_submenu_parents[k].classList.add( 'ast-left-align-sub-menu' ); } } // Submenu Container goes to outside? if( menuFromLeft < 240 ) { parentList[i].classList.add( 'ast-sub-menu-goes-outside' ); } }; }; }; //CAstraNavigationMenu( '.main-header-menu .menu-item' ); CAstraToggleMenu = function( selector ) { var astra_menu_toggle = __fixed_header.querySelectorAll( selector ); console.log( astra_menu_toggle ); /* Submenu button click */ for (var i = 0; i < astra_menu_toggle.length; i++) { astra_menu_toggle[i].addEventListener( 'click', function ( event ) { event.preventDefault(); var parent_li = this.parentNode; var parent_li_child = parent_li.querySelectorAll( '.menu-item-has-children' ); for (var j = 0; j < parent_li_child.length; j++) { parent_li_child[j].classList.remove( 'ast-submenu-expanded' ); var parent_li_child_sub_menu = parent_li_child[j].querySelector( '.sub-menu' ); parent_li_child_sub_menu.style.display = 'none'; }; var parent_li_sibling = parent_li.parentNode.querySelectorAll( '.menu-item-has-children' ); for (var j = 0; j < parent_li_sibling.length; j++) { if ( parent_li_sibling[j] != parent_li ) { parent_li_sibling[j].classList.remove( 'ast-submenu-expanded' ); var all_sub_menu = parent_li_sibling[j].querySelectorAll( '.sub-menu' ); for (var k = 0; k < all_sub_menu.length; k++) { all_sub_menu[k].style.display = 'none'; }; } }; if ( parent_li.classList.contains( 'menu-item-has-children' ) ) { if (typeof astraToggleClass === "function") { astraToggleClass( parent_li, 'ast-submenu-expanded' ); } else { toggleClass( parent_li, 'ast-submenu-expanded' ); } if ( parent_li.classList.contains( 'ast-submenu-expanded' ) ) { parent_li.querySelector( '.sub-menu' ).style.display = 'block'; } else { parent_li.querySelector( '.sub-menu' ).style.display = 'none'; } } }, false); }; }; //CAstraToggleMenu('.main-header-menu .ast-menu-toggle'); document.body.addEventListener("Castra-header-responsive-enabled", function() { if( null != __main_header ) { __main_header.classList.remove( 'toggle-on' ); __main_header.style.display = ''; } var sub_menu = __fixed_header.getElementsByClassName( 'sub-menu' ); for ( var i = 0; i < sub_menu.length; i++ ) { if( ! sub_menu[i].classList.contains( 'astra-megamenu' ) ) { sub_menu[i].style.display = ''; } } var searchIcons = __fixed_header.getElementsByClassName( 'ast-search-menu-icon' ); for ( var i = 0; i < searchIcons.length; i++ ) { searchIcons[i].classList.remove( 'ast-dropdown-active' ); searchIcons[i].style.display = ''; } }, false); /* Add break point Class and related trigger */ var CupdateHeaderBreakPoint = function () { if( null != document.getElementById( 'ast-fixed-header' ) ) { var break_point = astra.break_point, headerWrap = document.getElementById( 'ast-fixed-header' ).childNodes; for ( var i = 0; i < headerWrap.length; i++ ) { if ( headerWrap[i].tagName == 'DIV' && headerWrap[i].classList.contains( 'main-header-bar-wrap' ) ) { var header_content_bp = window.getComputedStyle( headerWrap[i] ).content; header_content_bp = header_content_bp.replace( /[^0-9]/g, '' ); header_content_bp = parseInt( header_content_bp ); // `ast-header-break-point` class will use for Responsive Style of Header. if ( header_content_bp != break_point ) { //remove menu toggled class. if ( null != menu_toggle ) { menu_toggle.classList.remove( 'toggled' ); } document.body.classList.remove( "ast-header-break-point" ); var responsive_enabled = new CustomEvent( "Castra-header-responsive-enabled" ); document.body.dispatchEvent( responsive_enabled ); } else { document.body.classList.add( "ast-header-break-point" ); var responsive_disabled = new CustomEvent( "Castra-header-responsive-disabled" ); document.body.dispatchEvent( responsive_disabled ); } } } } } window.addEventListener("resize", function() { if( 'BODY' !== document.activeElement.tagName ) { return; } CupdateHeaderBreakPoint(); }); CupdateHeaderBreakPoint(); /** * Navigation Keyboard Navigation. */ var container, button, menu, links, subMenus, i, len; container = document.querySelector('#ast-fixed-header .site-navigation' ); if ( ! container ) { return; } button = container.getElementsByTagName( 'button' )[0]; if ( 'undefined' === typeof button ) { return; } menu = container.getElementsByTagName( 'ul' )[0]; // Hide menu toggle button if menu is empty and return early. if ( 'undefined' === typeof menu ) { button.style.display = 'none'; return; } menu.setAttribute( 'aria-expanded', 'false' ); if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { menu.className += ' nav-menu'; } button.onclick = function() { if ( -1 !== container.className.indexOf( 'toggled' ) ) { container.className = container.className.replace( ' toggled', '' ); button.setAttribute( 'aria-expanded', 'false' ); menu.setAttribute( 'aria-expanded', 'false' ); } else { container.className += ' toggled'; button.setAttribute( 'aria-expanded', 'true' ); menu.setAttribute( 'aria-expanded', 'true' ); } }; // Get all the link elements within the menu. links = menu.getElementsByTagName( 'a' ); subMenus = menu.getElementsByTagName( 'ul' ); // Set menu items with submenus to aria-haspopup="true". for ( i = 0, len = subMenus.length; i < len; i++ ) { subMenus[i].parentNode.setAttribute( 'aria-haspopup', 'true' ); } // Each time a menu link is focused or blurred, toggle focus. for ( i = 0, len = links.length; i < len; i++ ) { links[i].addEventListener( 'focus', CtoggleFocus, true ); links[i].addEventListener( 'blur', CtoggleFocus, true ); } /** * Sets or removes .focus class on an element. */ function CtoggleFocus() { var self = this; // Move up through the ancestors of the current link until we hit .nav-menu. while ( -1 === self.className.indexOf( 'nav-menu' ) ) { // On li elements toggle the class .focus. if ( 'li' === self.tagName.toLowerCase() ) { if ( -1 !== self.className.indexOf( 'focus' ) ) { self.className = self.className.replace( ' focus', '' ); } else { self.className += ' focus'; } } self = self.parentElement; } } } )(); assets/js/minified/sticky-header-compatibility.min.js 0000666 00000011415 15165306611 0017003 0 ustar 00 !function(){function e(){if(null!=document.getElementById("ast-fixed-header"))for(var e,t=astra.break_point,a=document.getElementById("ast-fixed-header").childNodes,n=0;n<a.length;n++)"DIV"==a[n].tagName&&a[n].classList.contains("main-header-bar-wrap")&&(e=(e=window.getComputedStyle(a[n]).content).replace(/[^0-9]/g,""),(e=parseInt(e))!=t?(null!=u&&u.classList.remove("toggled"),document.body.classList.remove("ast-header-break-point"),e=new CustomEvent("Castra-header-responsive-enabled"),document.body.dispatchEvent(e)):(document.body.classList.add("ast-header-break-point"),e=new CustomEvent("Castra-header-responsive-disabled"),document.body.dispatchEvent(e)))}var t,a,n,s,l,r,i,o=document.getElementById("ast-fixed-header"),d=o.querySelector(".main-header-bar-navigation"),u=o.querySelector(".main-header-menu-toggle");null!=u&&u.addEventListener("click",function(e){e.preventDefault();for(var t=o.querySelectorAll(".menu-item-has-children"),a=0;a<t.length;a++){t[a].classList.remove("ast-submenu-expanded");for(var n=t[a].querySelectorAll(".sub-menu"),s=0;s<n.length;s++)n[s].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&("function"==typeof astraToggleClass?(astraToggleClass(__main_header_all[event_index],"toggle-on"),astraToggleClass(menu_toggle_all[event_index],"toggled")):(toggleClass(__main_header_all[event_index],"toggle-on"),toggleClass(menu_toggle_all[event_index],"toggled")),__main_header_all[event_index].classList.contains("toggle-on")?(__main_header_all[event_index].style.display="block",document.body.classList.add("ast-main-header-nav-open")):(__main_header_all[event_index].style.display="",document.body.classList.remove("ast-main-header-nav-open")))},!1),CAstraNavigationMenu=function(e){for(var t=o.querySelectorAll(e),a=0;a<t.length;a++)if(null!=t[a].querySelector(".sub-menu")){var n=document.createElement("BUTTON"),n=(n.setAttribute("role","button"),n.setAttribute("class","ast-menu-toggle"),n.setAttribute("aria-expanded","false"),n.innerHTML="<span class='screen-reader-text'>Menu Toggle</span>",t[a].insertBefore(n,t[a].childNodes[1]),t[a].getBoundingClientRect().left),s=window.innerWidth,s=parseInt(s)-parseInt(n);if(s<500?!0:!1){t[a].classList.add("ast-left-align-sub-menu");for(var l=t[a].querySelectorAll(".menu-item-has-children"),r=0;r<l.length;r++)l[r].classList.add("ast-left-align-sub-menu")}s<240&&t[a].classList.add("ast-sub-menu-goes-outside")}},CAstraToggleMenu=function(e){for(var t=o.querySelectorAll(e),a=0;a<t.length;a++)t[a].addEventListener("click",function(e){e.preventDefault();for(var t=this.parentNode,a=t.querySelectorAll(".menu-item-has-children"),n=0;n<a.length;n++)a[n].classList.remove("ast-submenu-expanded"),a[n].querySelector(".sub-menu").style.display="none";for(var s=t.parentNode.querySelectorAll(".menu-item-has-children"),n=0;n<s.length;n++)if(s[n]!=t){s[n].classList.remove("ast-submenu-expanded");for(var l=s[n].querySelectorAll(".sub-menu"),r=0;r<l.length;r++)l[r].style.display="none"}t.classList.contains("menu-item-has-children")&&(("function"==typeof astraToggleClass?astraToggleClass:toggleClass)(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},!1)},document.body.addEventListener("Castra-header-responsive-enabled",function(){null!=d&&(d.classList.remove("toggle-on"),d.style.display="");for(var e=o.getElementsByClassName("sub-menu"),t=0;t<e.length;t++)e[t].classList.contains("astra-megamenu")||(e[t].style.display="");for(var a=o.getElementsByClassName("ast-search-menu-icon"),t=0;t<a.length;t++)a[t].classList.remove("ast-dropdown-active"),a[t].style.display=""},!1);if(window.addEventListener("resize",function(){"BODY"===document.activeElement.tagName&&e()}),e(),(t=document.querySelector("#ast-fixed-header .site-navigation"))&&void 0!==(a=t.getElementsByTagName("button")[0]))if(void 0===(n=t.getElementsByTagName("ul")[0]))a.style.display="none";else{for(n.setAttribute("aria-expanded","false"),-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))},s=n.getElementsByTagName("a"),r=0,i=(l=n.getElementsByTagName("ul")).length;r<i;r++)l[r].parentNode.setAttribute("aria-haspopup","true");for(r=0,i=s.length;r<i;r++)s[r].addEventListener("focus",c,!0),s[r].addEventListener("blur",c,!0)}function c(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}(); assets/js/minified/customizer-preview.min.js 0000666 00000202626 15165306611 0015271 0 ustar 00 !function(){let i=ast_preview.tablet_break_point||768,n=ast_preview.mobile_break_point||544;wp.customize("astra-settings[site-layout-box-width]",function(e){e.bind(function(e){jQuery("*[data-stick-maxwidth]").length&&(jQuery("*[data-stick-maxwidth]").find(".ast-sticky-active, .ast-header-sticky-active, .ast-custom-footer").css({"max-width":e+"px",transition:"none"}),jQuery("*[data-stick-maxwidth]").attr("data-stick-maxwidth",e))})}),wp.customize("astra-settings[site-layout-box-tb-margin]",function(e){e.bind(function(e){header_top=void 0!==wp.customize._value["astra-settings[above-header-layout]"]?wp.customize._value["astra-settings[above-header-layout]"]._value:"",header_below=void 0!==wp.customize._value["astra-settings[below-header-layout]"]?wp.customize._value["astra-settings[below-header-layout]"]._value:"",header_above_stick=void 0!==wp.customize._value["astra-settings[header-above-stick]"]?wp.customize._value["astra-settings[header-above-stick]"]._value:"",header_below_stick=void 0!==wp.customize._value["astra-settings[header-below-stick]"]?wp.customize._value["astra-settings[header-below-stick]"]._value:"",((header_main_stick=void 0!==wp.customize._value["astra-settings[header-main-stick]"]?wp.customize._value["astra-settings[header-main-stick]"]._value:"")||"disabled"!=header_top&&header_above_stick||"disabled"!=header_below&&header_below_stick)&&wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[site-layout-padded-pad]",function(e){e.bind(function(e){header_top=void 0!==wp.customize._value["astra-settings[above-header-layout]"]?wp.customize._value["astra-settings[above-header-layout]"]._value:"",header_below=void 0!==wp.customize._value["astra-settings[below-header-layout]"]?wp.customize._value["astra-settings[below-header-layout]"]._value:"",header_above_stick=void 0!==wp.customize._value["astra-settings[header-above-stick]"]?wp.customize._value["astra-settings[header-above-stick]"]._value:"",header_below_stick=void 0!==wp.customize._value["astra-settings[header-below-stick]"]?wp.customize._value["astra-settings[header-below-stick]"]._value:"",((header_main_stick=void 0!==wp.customize._value["astra-settings[header-main-stick]"]?wp.customize._value["astra-settings[header-main-stick]"]._value:"")||"disabled"!=header_top&&header_above_stick||"disabled"!=header_below&&header_below_stick)&&wp.customize.preview.send("refresh")})});var e=astSticky.sticky_header_style||"",a=astSticky.sticky_hide_on_scroll||"",t=astSticky.header_builder_active||!1;if(t){astra_css("astra-settings[sticky-header-builder-site-title-color]","color",'[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:focus, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:hover, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:visited'),astra_css("astra-settings[sticky-header-builder-site-title-h-color]","color",'[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a:hover, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:hover'),astra_css("astra-settings[sticky-header-builder-site-tagline-color]","color",'[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .ast-site-identity .site-description, [CLASS*="-sticky-header-active"] .ast-header-sticked .ast-site-identity .site-description');for(var s=1;s<=astSticky.component_limit;s++)astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" > .menu-item > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-bg-obj-responsive]","background-color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-h-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .menu-item:hover > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-h-bg-color-responsive]","background-color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .menu-item:hover > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-a-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .menu-item.current-menu-item > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-a-bg-color-responsive]","background-color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .menu-item.current-menu-item > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .sub-menu .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-bg-color-responsive]","background-color",".ast-header-sticked .ast-builder-menu-"+s+" #ast-hf-menu-"+s+" .sub-menu, .ast-header-sticked .ast-builder-menu-"+s+" #ast-hf-menu-"+s+" .sub-menu .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-h-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .sub-menu .menu-item:hover > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-h-bg-color-responsive]","background-color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .sub-menu .menu-item:hover > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-a-color-responsive]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .sub-menu .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu"+s+"-submenu-a-bg-color-responsive]","background-color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+" .sub-menu .menu-item.current-menu-ancestor > .menu-link"),s<3&&(astra_css("astra-settings[sticky-header-menu"+s+"-header-megamenu-heading-color]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+".ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link"),astra_css("astra-settings[sticky-header-menu"+s+"-header-megamenu-heading-h-color]","color",'[CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+'.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading:hover > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-'+s+" #ast-hf-menu-"+s+".ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link:hover"))}else"none"===e&&"1"!=a?(astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-site-title-responsive]","color",".ast-primary-sticky-header-active .site-title a, .ast-primary-sticky-header-active .site-title a:focus, .ast-primary-sticky-header-active .site-title a:hover, .ast-primary-sticky-header-active .site-title a:visited"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-h-site-title-responsive]","color",".ast-primary-sticky-header-active .site-header .site-title a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-site-tagline-responsive]","color",".ast-primary-sticky-header-active .site-header .site-description")):(astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-site-title-responsive]","color","#ast-fixed-header .site-title a, #ast-fixed-header .site-title a:focus, #ast-fixed-header .site-title a:hover, #ast-fixed-header .site-title a:visited"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-h-site-title-responsive]","color","#ast-fixed-header.site-header .site-title a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-color-site-tagline-responsive]","color","#ast-fixed-header.site-header .site-description"));"none"===e&&"1"!=a?(astra_color_responsive_css("sticky-header","astra-settings[sticky-header-bg-color-responsive]","background",".ast-transparent-header.ast-primary-sticky-header-active .main-header-bar, .ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active.ast-header-break-point .main-header-bar, .ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-bg-color-responsive]","background-color",".ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-color-responsive]","color",".ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .main-header-menu .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-header-custom-item, .ast-header-custom-item a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active .ast-masthead-custom-menu-items .ast-inline-search form"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-h-color-responsive]","color",".ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link:hover, .ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-h-a-bg-color-responsive]","background-color",".ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link,.ast-primary-sticky-header-active .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-bg-color-responsive]","background-color",".ast-primary-sticky-header-active .main-navigation .main-header-menu .sub-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-menu .sub-menu, .ast-flyout-menu-enable.ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-color-responsive]","color",".ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-h-color-responsive]","color",".ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-h-a-bg-color-responsive]","background-color",".ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-text-color-responsive]","color",".ast-primary-sticky-header-active div.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-link-color-responsive]","color",".ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-link-h-color-responsive]","color",".ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a:hover"),e=t?".ast-above-sticky-header-active .ast-above-header.ast-header-sticked":".ast-above-sticky-header-active .ast-above-header-wrap .ast-above-header",astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-bg-color-responsive]","background",e),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-bg-color-responsive]","background-color",".ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation > ul, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field:focus, .ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .menu-link, .ast-header-break-point .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-h-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-header-break-point .ast-above-header-navigation > ul > .menu-item-has-children.current-menu-item > .ast-menu-toggle, .ast-header-break-point .ast-above-header-navigation .menu-item-has-children:hover > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-h-a-bg-color-responsive]","background-color",".ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-bg-color-responsive]","background-color",".ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .submenu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-h-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.ast-submenu-expanded + .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-h-a-bg-color-responsive]","background-color",".ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.ast-submenu-expanded > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-text-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-section .user-select, .ast-above-sticky-header-active .ast-above-header-section .widget, .ast-above-sticky-header-active .ast-above-header-section .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-link-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-section .user-select a, .ast-above-sticky-header-active .ast-above-header-section .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-link-h-color-responsive]","color",".ast-above-sticky-header-active .ast-above-header-section .user-select a:hover, .ast-above-sticky-header-active .ast-above-header-section .widget a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-bg-color-responsive]","background",".ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-bg-color-responsive]","background-color",".ast-below-sticky-header-active .ast-below-header-actual-nav, .ast-flyout-below-menu-enable.ast-header-break-point.ast-below-sticky-header-active .ast-below-header-navigation-wrap .ast-below-header-actual-nav, .ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation-wrap"),astra_color_responsive_css("sticky-header-menu-link","astra-settings[sticky-below-header-menu-color-responsive]","color",".ast-below-sticky-header-active .ast-below-header-menu, .ast-below-sticky-header-active .ast-below-header-menu .menu-link,.ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title,.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a"),astra_color_responsive_css("sticky-header-search-border","astra-settings[sticky-below-header-menu-color-responsive]","border-color",".ast-below-sticky-header-active .below-header-user-select input.search-field:focus, .ast-below-sticky-header-active .below-header-user-select input.search-field.focus"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-h-color-responsive]","color",".ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link,.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover, #ast-fixed-header .below-header-user-select .widget a:hover, .ast-header-break-point .ast-below-header-menu .menu-item:hover > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-h-a-bg-color-responsive]","background-color",".ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-desktop .ast-mega-menu-enabled.ast-below-header-menu .menu-item .menu-link:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-bg-color-responsive]","background-color",".ast-below-sticky-header-active .ast-below-header-menu .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-color-responsive]","color",".ast-below-sticky-header-active .ast-below-header-menu .sub-menu, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-h-color-responsive]","color",".ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-h-a-bg-color-responsive]","background-color",".ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-text-color-responsive]","color",".ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-link-color-responsive]","color",".ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-link-h-color-responsive]","color",".ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover")):(astra_color_responsive_css("sticky-header","astra-settings[sticky-header-bg-color-responsive]","background",".ast-transparent-header #ast-fixed-header .main-header-bar, #ast-fixed-header .main-header-bar, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field:focus"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-bg-color-responsive]","background-color","#ast-fixed-header .main-header-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-color-responsive]","color","#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu .menu-link, #ast-fixed-header .ast-header-custom-item, .ast-header-custom-item a, #ast-fixed-header li.ast-masthead-custom-menu-items, #ast-fixed-header li.ast-masthead-custom-menu-items a, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search form"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-h-color-responsive]","color","#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-menu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link,#ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-bg-color-responsive]","background-color","#ast-fixed-header .main-navigation ul .sub-menu, .ast-header-break-point #ast-fixed-header .main-header-menu .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-color-responsive]","color","#ast-fixed-header .main-header-menu .sub-menu, #ast-fixed-header .main-header-menu .sub-menu .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-h-color-responsive]","color","#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-submenu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-text-color-responsive]","color","#ast-fixed-header div.ast-masthead-custom-menu-items, #ast-fixed-header div.ast-masthead-custom-menu-items .widget, #ast-fixed-header div.ast-masthead-custom-menu-items .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-link-color-responsive]","color","#ast-fixed-header div.ast-masthead-custom-menu-items a, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-header-content-section-link-h-color-responsive]","color","#ast-fixed-header div.ast-masthead-custom-menu-items a:hover, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-bg-color-responsive]","background","#ast-fixed-header .ast-above-header"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-bg-color-responsive]","background-color",".ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation ul, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field:focus, #ast-fixed-header .ast-above-header-navigation .ast-above-header-menu,.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-color-responsive]","color","#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .menu-link, #ast-fixed-header .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-h-color-responsive]","color","#ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-menu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-bg-color-responsive]","background-color","#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-color-responsive]","color","#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, #ast-fixed-header .ast-above-header-navigation .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-h-color-responsive]","color","#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-submenu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-text-color-responsive]","color","#ast-fixed-header .ast-above-header-section .user-select, #ast-fixed-header .ast-above-header-section .widget, #ast-fixed-header .ast-above-header-section .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-link-color-responsive]","color","#ast-fixed-header .ast-above-header-section .user-select a, #ast-fixed-header .ast-above-header-section .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-above-header-content-section-link-h-color-responsive]","color","#ast-fixed-header .ast-above-header-section .user-select a:hover, #ast-fixed-header .ast-above-header-section .widget a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-bg-color-responsive]","background","#ast-fixed-header .ast-below-header"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-bg-color-responsive]","background-color","#ast-fixed-header .ast-below-header-actual-nav"),astra_color_responsive_css("sticky-header-menu-link","astra-settings[sticky-below-header-menu-color-responsive]","color","#ast-fixed-header .ast-below-header-menu, #ast-fixed-header .ast-below-header-menu .menu-link,#ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title,#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a"),astra_color_responsive_css("sticky-header-search-border","astra-settings[sticky-below-header-menu-color-responsive]","border-color","#ast-fixed-header .below-header-user-select input.search-field:focus, #ast-fixed-header .below-header-user-select input.search-field.focus"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-h-color-responsive]","color","#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle,#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-menu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-bg-color-responsive]","background-color","#ast-fixed-header .ast-below-header-menu .sub-menu"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-color-responsive]","color","#ast-fixed-header .ast-below-header-menu .sub-menu, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-h-color-responsive]","color","#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-submenu-h-a-bg-color-responsive]","background-color","#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-text-color-responsive]","color","#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-link-color-responsive]","color","#ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a"),astra_color_responsive_css("sticky-header","astra-settings[sticky-below-header-content-section-link-h-color-responsive]","color","#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover")),wp.customize("astra-settings[sticky-header-logo-width]",function(e){e.bind(function(e){""!=e.desktop||""!=e.tablet||""!=e.mobile?(e=".ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: "+e.desktop+"px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: "+e.desktop+"px;} @media( max-width: 768px ) { .ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: "+e.tablet+"px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: "+e.tablet+"px;} } @media( max-width: 544px ) { .ast-hfb-header .site-logo-img .sticky-custom-logo img {max-width: "+e.mobile+"px;} #masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg { width: "+e.mobile+"px;} }",astra_add_dynamic_css("sticky-header-logo-width",e)):wp.customize.preview.send("refresh")})}),astra_css("astra-settingsheader-main-rt-sticky-section-button-text-color]","color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settingsheader-main-rt-sticky-section-button-back-color]","background-color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settingsheader-main-rt-sticky-section-button-text-h-color]","color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),astra_css("astra-settingsheader-main-rt-sticky-section-button-back-h-color]","background-color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),astra_responsive_spacing("astra-settings[header-main-rt-sticky-section-button-padding]",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button","padding",["top","right","bottom","left"]),astra_css("astra-settings[header-main-rt-sticky-section-button-border-radius]","border-radius",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button","px"),astra_css("astra-settings[header-main-rt-sticky-section-button-border-color]","border-color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button"),astra_css("astra-settings[header-main-rt-sticky-section-button-border-h-color]","border-color",".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover"),wp.customize("astra-settings[sticky-header-button-border-group]",function(e){e.bind(function(e){var a,e=JSON.parse(e)["header-main-rt-sticky-section-button-border-size"];""!=e.top||""!=e.right||""!=e.bottom||""!=e.left?(a=(a=(a=(a=(a=".ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button")+"{border-top-width:"+e.top+"px;")+"border-right-width:"+e.right+"px;")+"border-left-width:"+e.left+"px;")+"border-bottom-width:"+e.bottom+"px;border-style: solid;}",astra_add_dynamic_css("header-main-rt-sticky-section-button-border-size",a)):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[header-color-site-title]",function(e){e.bind(function(e){""!=e?astra_add_dynamic_css("sticky-header-site-title-color","#ast-fixed-header .main-header-bar .site-title a, #ast-fixed-header .main-header-bar .site-title a:focus, #ast-fixed-header .main-header-bar .site-title a:hover, #ast-fixed-header .main-header-bar .site-title a:visited, .main-header-bar.ast-sticky-active .site-title a, .main-header-bar.ast-sticky-active .site-title a:focus, .main-header-bar.ast-sticky-active .site-title a:hover, .main-header-bar.ast-sticky-active .site-title a:visited { color: "+e+"}"):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[header-color-h-site-title]",function(e){e.bind(function(e){""!=e?astra_add_dynamic_css("sticky-header-site-title-hover-color","#ast-fixed-header .main-header-bar .site-title a:hover, .main-header-bar.ast-sticky-active .site-title a:hover { color: "+e+"}"):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[header-color-site-tagline]",function(e){e.bind(function(e){""!=e?astra_add_dynamic_css("sticky-header-site-tagline-hover-color","#ast-fixed-header .main-header-bar .site-description, .main-header-bar.ast-sticky-active .site-description { color: "+e+"}"):wp.customize.preview.send("refresh")})});for(var r,o,s=1;s<=astSticky.component_limit;s++)!function(e){var s,a="button"+e,t=".ast-header-sticked .ast-header-button-"+e+" .ast-builder-button-wrap",r=".ast-header-sticked .ast-header-button-"+e+'[data-section*="section-hb-button-"] .ast-builder-button-wrap';astra_color_responsive_css("hfb-button-color","astra-settings[sticky-header-"+a+"-text-color]","color",t+" .ast-custom-button"),astra_color_responsive_css("hfb-button-color-h","astra-settings[sticky-header-"+a+"-text-h-color]","color",t+":hover .ast-custom-button"),astra_color_responsive_css("hfb-button-bg-color","astra-settings[sticky-header-"+a+"-back-color]","background-color",t+" .ast-custom-button"),astra_color_responsive_css("hfb-button-bg-color-h","astra-settings[sticky-header-"+a+"-back-h-color]","background-color",t+":hover .ast-custom-button"),astra_color_responsive_css("hfb-button-border-color","astra-settings[sticky-header-"+a+"-border-color]","border-color",t+" .ast-custom-button"),astra_color_responsive_css("hfb-button-border-color-h","astra-settings[sticky-header-"+a+"-border-h-color]","border-color",t+" .ast-custom-button:hover"),astra_responsive_spacing("astra-settings[sticky-header-"+a+"-padding]",r+" .ast-custom-button","padding",["top","bottom","right","left"]),s=e,wp.customize("astra-settings[sticky-header-button"+s+"-border-size]",function(e){e.bind(function(e){var a=".ast-header-sticked .ast-header-button-"+s+" .ast-builder-button-wrap .ast-custom-button {",a=(a=(a=(a+="border-top-width:"+e.top+"px;")+("border-right-width:"+e.right+"px;"))+("border-left-width:"+e.left+"px;"))+("border-bottom-width:"+e.bottom+"px;")+"} ";astra_add_dynamic_css("astra-settings[sticky-header-button"+s+"-border-size]",a)})}),wp.customize("astra-settings[sticky-header-button"+s+"-border-radius-fields]",function(e){e.bind(function(e){var a=".ast-header-sticked .ast-header-button-"+s+" .ast-builder-button-wrap .ast-custom-button",t=a+"{ border-top-left-radius :"+e.desktop.top+e["desktop-unit"]+"; border-bottom-right-radius :"+e.desktop.bottom+e["desktop-unit"]+"; border-bottom-left-radius :"+e.desktop.left+e["desktop-unit"]+"; border-top-right-radius :"+e.desktop.right+e["desktop-unit"]+"; } ",t=(t+="@media (max-width: "+i+"px) { "+a+"{ border-top-left-radius :"+e.tablet.top+e["tablet-unit"]+"; border-bottom-right-radius :"+e.tablet.bottom+e["tablet-unit"]+"; border-bottom-left-radius :"+e.tablet.left+e["tablet-unit"]+"; border-top-right-radius :"+e.tablet.right+e["tablet-unit"]+"; } } ")+("@media (max-width: "+n+"px) { "+a+"{ border-top-left-radius :"+e.mobile.top+e["mobile-unit"]+"; border-bottom-right-radius :"+e.mobile.bottom+e["mobile-unit"]+"; border-bottom-left-radius :"+e.mobile.left+e["mobile-unit"]+"; border-top-right-radius :"+e.mobile.right+e["mobile-unit"]+"; } } ");astra_add_dynamic_css("astra-settings[sticky-header-button"+s+"-border-radius-fields]",t)})})}(s),o=void 0,o=".ast-header-sticked .ast-header-social-"+(r=s)+"-wrap",astra_color_responsive_css(r+"hfb-soc-color","astra-settings[sticky-header-social-"+r+"-color]","color",o+" .ast-social-color-type-custom .ast-builder-social-element"),astra_color_responsive_css(r+"hfb-soc-svg-color","astra-settings[sticky-header-social-"+r+"-color]","fill",o+" .ast-social-color-type-custom .ast-builder-social-element svg"),astra_color_responsive_css(r+"hfb-soc-color-h","astra-settings[sticky-header-social-"+r+"-h-color]","color",o+" .ast-social-color-type-custom .ast-builder-social-element:hover"),astra_color_responsive_css(r+"hfb-soc-svg-color-label","astra-settings[sticky-header-social-"+r+"-color]","color",o+" .ast-social-color-type-custom .ast-builder-social-element .social-item-label"),astra_color_responsive_css(r+"hfb-soc-color-h-label","astra-settings[sticky-header-social-"+r+"-h-color]","color",o+" .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label"),astra_color_responsive_css(r+"hfb-soc-svg-color-h","astra-settings[sticky-header-social-"+r+"-h-color]","fill",o+" .ast-social-color-type-custom .ast-builder-social-element:hover svg"),astra_color_responsive_css(r+"hfb-soc-bg-color","astra-settings[sticky-header-social-"+r+"-bg-color]","background-color",o+" .ast-social-color-type-custom .ast-builder-social-element"),astra_color_responsive_css(r+"hfb-soc-bg-color-h","astra-settings[sticky-header-social-"+r+"-bg-h-color]","background-color",o+" .ast-social-color-type-custom .ast-builder-social-element:hover"),astra_css("astra-settings[sticky-header-html-"+s+"color]","color",".ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-html-"+s+" .ast-builder-html-element"),astra_css("astra-settings[sticky-header-divider-"+s+"-color]","border-color",".ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-divider-"+s+" .ast-divider-wrapper");var u=".ast-header-sticked .ast-header-search";astra_css("astra-settings[sticky-header-search-icon-color]","color",u+" .astra-search-icon, "+u+" .search-field::placeholder,"+u+" .ast-icon"),astra_css("astra-settings[sticky-header-search-icon-h-color]","color",u+" .astra-search-icon:hover,"+u+" .ast-icon:hover"),astra_css("astra-settings[sticky-header-search-text-placeholder-color]","color",u+" .ast-search-menu-icon .search-field, "+u+" .ast-search-menu-icon .search-field::placeholder"),astra_css("astra-settings[sticky-header-search-box-background-color]","background-color",u+" .ast-search-menu-icon .search-field, "+u+" .ast-search-menu-icon .search-form, "+u+" .ast-search-menu-icon .search-submit "),astra_css("astra-settings[sticky-header-search-box-background-h-color]","background-color",u+" .ast-search-menu-icon:hover .search-field, "+u+" .ast-search-menu-icon:hover .search-form, "+u+" .ast-search-menu-icon:hover .search-submit,"+u+" .ast-search-menu-icon:focus .search-field, "+u+" .ast-search-menu-icon:focus .search-form, "+u+" .ast-search-menu-icon:focus .search-submit "),wp.customize("astra-settings[sticky-header-language-switcher-color]",function(e){e.bind(function(e){var a=(a=".ast-header-sticked .ast-lswitcher-item-header {")+("color: "+(e=e||"inherit")+";")+"} ";astra_add_dynamic_css("sticky-header-language-switcher-color",a)})});for(s=1;s<=astSticky.component_limit;s++){u='.ast-header-sticked .header-widget-area[data-section="sidebar-widgets-header-widget-'+s+'"]';astSticky.is_flex_based_css?u+=".header-widget-area-inner":u+=" .header-widget-area-inner",astra_css("astra-settings[sticky-header-widget-"+s+"-color]","color",u),astra_css("astra-settings[sticky-header-widget-"+s+"-link-color]","color",u+" a"),astra_css("astra-settings[sticky-header-widget-"+s+"-link-h-color]","color",u+" a:hover"),astra_css("astra-settings[sticky-header-widget-"+s+"-title-color]","color",u+" .widget-title")}var m=".ast-header-sticked .ast-header-account-wrap",a=(wp.customize("astra-settings[sticky-header-account-icon-color]",function(e){e.bind(function(e){var a=(a=m+" .ast-header-account-type-icon .ahfb-svg-iconset svg path:not(.ast-hf-account-unfill), "+m+" .ast-header-account-type-icon .ahfb-svg-iconset svg circle {")+("fill: "+(e=e||"inherit")+";")+"} ";astra_add_dynamic_css("sticky-header-account-icon-color",a)})}),astra_css("astra-settings[sticky-header-account-type-text-color]","color",m+" .ast-header-account-text"),astra_css("astra-settings[sticky-header-account-menu-color]","color",m+" .main-header-menu .menu-item > .menu-link"),astra_css("astra-settings[sticky-header-account-menu-h-color]","color",m+" .menu-item:hover > .menu-link"),astra_css("astra-settings[sticky-header-account-menu-a-color]","color",m+" .menu-item.current-menu-item > .menu-link"),astra_css("astra-settings[sticky-header-account-menu-bg-obj]","background",m+" .account-main-navigation ul, "+m+" .account-woo-navigation ul,"+m+" .main-header-menu.ast-account-nav-menu .menu-item > .menu-link"),astra_css("astra-settings[sticky-header-account-menu-h-bg-color]","background",m+" .main-header-menu.ast-account-nav-menu .menu-item:hover > .menu-link"),astra_css("astra-settings[sticky-header-account-menu-a-bg-color]","background",m+" .main-header-menu.ast-account-nav-menu .menu-item.current-menu-item > .menu-link"),'[CLASS*="-sticky-header-active"] .ast-header-sticked [data-section="section-header-mobile-trigger"]');astra_css("astra-settings[sticky-header-toggle-btn-color]","fill",a+" .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg"),astra_css("astra-settings[sticky-header-toggle-btn-color]","color",a+" .ast-button-wrap .mobile-menu-wrap .mobile-menu"),astra_css("astra-settings[sticky-header-toggle-btn-bg-color]","background",a+" .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-fill"),astra_css("astra-settings[sticky-header-toggle-border-color]","border-color",a+" .ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-outline")}(jQuery); assets/js/minified/sticky-header-builder-compatibility.min.js 0000666 00000001124 15165306611 0020423 0 ustar 00 !function(){jQuery("body");var t=astraAddon.header_main_stick||"",s=astraAddon.header_above_stick||"",n=astraAddon.header_below_stick||"",a=astraAddon.sticky_header_style||"none",i=["astra-settings[header-desktop-items]","astra-settings[header-mobile-items]"];wp.customize.bind("preview-ready",function(){wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){"section-sticky-header"===sessionStorage.getItem("ast_expanded_section")&&-1<i.indexOf(e.partial.id)&&("1"!=s&&"on"!=s&&"1"!=t&&"on"!=t&&"1"!=n&&"on"!=n||"none"!==a||wp.customize.preview.send("refresh"))})})}(jQuery); assets/js/minified/sticky-header.min.js 0000666 00000040564 15165306611 0014143 0 ustar 00 !function(n,h){var a="astExtSticky",l=h.document,r=(jQuery(h).outerWidth(),jQuery(h).width()),c=astraAddon.header_builder_active,s={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"<div></div>",body_padding_support:!0,html_padding_support:!0,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"},d=0,p=null!==l.querySelector("#ast-hb-account-login-wrap");function t(e,t){this.element=e,this.options=n.extend({},s,t),this._defaults=s,this._name=a,"1"==this.options.hide_on_scroll&&(this.navbarHeight=n(e).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}t.prototype.stick_me=function(e,t){var a,s,d,i,r,o=jQuery(e.element);jQuery(h).outerWidth();stick_upto_scroll=parseInt(e.options.stick_upto_scroll),max_width=parseInt(o.parent().attr("data-stick-maxwidth")),gutter=parseInt(o.parent().attr("data-stick-gutter")),aboveHeaderSelectorValue=gutter,c&&astraAddon.header_main_shrink&&((o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&0<gutter&&(gutter-=10),a=l.querySelector(".ast-above-header-bar"),1==astraAddon.header_above_stick&&null!==a&&(aboveHeaderSelectorValue=a.getBoundingClientRect().height+parseInt(a.parentNode.getAttribute("data-stick-gutter")))),("desktop"!=e.options.sticky_on_device||!jQuery("body").hasClass("ast-header-break-point"))&&("mobile"!=e.options.sticky_on_device||jQuery("body").hasClass("ast-header-break-point"))?(stick_upto_scroll<0&&(stick_upto_scroll=0),a=0<l.getElementsByClassName("elementor-motion-effects-parent").length,jQuery(h).scrollTop()>stick_upto_scroll?(s=o,c&&(r=o.closest(".ast-mobile-header-wrap"),d=o.closest("#ast-desktop-header"),r=0===r.length?o.find(".ast-mobile-header-wrap"):r,d=0===d.length?o.find("#ast-desktop-header"):d,r.find(".ast-mobile-header-content").css("top",o.outerHeight()+gutter),"ast-box-layout"==e.options.site_layout?(i=jQuery("body").width(),r.find(".ast-mobile-header-content").css("width",i)):r.find(".ast-mobile-header-content").css("width",max_width),d.find(".ast-desktop-header-content").css("top",o.outerHeight()+gutter),d.find(".ast-desktop-header-content").css("width",max_width)),"1"===e.options.hide_on_scroll?e.hasScrolled(e,"stick"):"none"==e.options.header_style?(a||o.parent().css("min-height",o.outerHeight()),l.querySelector("body").classList.contains("fl-builder-edit")||o.addClass("ast-sticky-active").stop().css({top:gutter}),o.addClass("ast-sticky-active").stop().css({"max-width":max_width,"padding-top":e.options.shrink.padding_top,"padding-bottom":e.options.shrink.padding_bottom}),(o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&o.closest("#ast-desktop-header").find(".ast-above-header-bar").outerHeight()<70&&(o.addClass("ast-sticky-active").stop().css({top:a?aboveHeaderSelectorValue:"unset"}),o.parent().css("min-height","unset")),o.addClass("ast-sticky-shrunk").stop(),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"slide"==e.options.header_style?(s.css({top:gutter}),s.addClass("ast-header-slide"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({transform:p?"none":"translateY(0)"}),n("html").addClass("ast-header-stick-slide-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"fade"==e.options.header_style&&(s.css({top:gutter}),s.addClass("ast-header-fade"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({opacity:"1"}),n("html").addClass("ast-header-stick-fade-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked"))):(e.stickRelease(e),c&&(r=0===(r=o.closest(".ast-mobile-header-wrap")).length?o.find(".ast-mobile-header-wrap"):r,jQuery("body").hasClass("ast-primary-sticky-header-active")&&jQuery("body").hasClass("ast-above-sticky-header-active")&&jQuery("body").hasClass("ast-below-sticky-header-active")||r.find(".ast-mobile-header-content").removeAttr("style")))):e.stickRelease(e)},t.prototype.update_attrs=function(){var e,a,t=this,s=jQuery(t.element),d=parseInt(t.options.gutter),i=t.options.max_width;"none"!=t.options.header_style||jQuery("body").hasClass("ast-sticky-toggled-off")?n("#masthead").length&&(e=n("#masthead"),a=e.offset().top+e.outerHeight()+100||0):a=s.offset().top||0,"ast-box-layout"!=t.options.site_layout&&(i=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(e,t){jQuery(t).length&&"on"==jQuery(t).parent().attr("data-stick-support")&&(dependent_height=jQuery(t).outerHeight(),d+=parseInt(dependent_height),a-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782<r&&(d+=parseInt(t.options.admin_bar_height_lg),a-=parseInt(t.options.admin_bar_height_lg)),t.options.admin_bar_height_sm&&jQuery("#wpadminbar").length&&600<=r&&r<=782&&(d+=parseInt(t.options.admin_bar_height_sm),a-=parseInt(t.options.admin_bar_height_sm)),t.options.admin_bar_height_xs&&jQuery("#wpadminbar").length&&(d+=parseInt(t.options.admin_bar_height_xs),a-=parseInt(t.options.admin_bar_height_xs)),t.options.body_padding_support&&(d+=parseInt(jQuery("body").css("padding-top"),10),a-=parseInt(jQuery("body").css("padding-top"),10)),t.options.html_padding_support&&(d+=parseInt(jQuery("html").css("padding-top"),10),a-=parseInt(jQuery("html").css("padding-top"),10)),I&&a--,t.options.stick_upto_scroll=a,"none"==t.options.header_style?s.parent().css("min-height",s.outerHeight()).attr("data-stick-gutter",parseInt(d)).attr("data-stick-maxwidth",parseInt(i)):(s.parent().attr("data-stick-gutter",parseInt(d)).attr("data-stick-maxwidth",parseInt(i)),"ast-padded-layout"===t.options.site_layout&&s.css("max-width",parseInt(i)))},t.prototype.hasScrolled=function(e,t){var a,s=n(h).scrollTop();Math.abs(d-s)<=5||(a=jQuery(e.element),d<s&&0<s?jQuery(e.element).removeClass("ast-nav-down").addClass("ast-nav-up"):s+n(h).height()<n(l).height()&&jQuery(e.element).removeClass("ast-nav-up").addClass("ast-nav-down"),d=s,n(e.element).hasClass("ast-nav-up")||"stick"!=t?(a.css({transform:"translateY(-100%)"}).stop(),setTimeout(function(){a.removeClass("ast-sticky-active")},300),a.css({visibility:"hidden",top:""}),n(l).trigger("removeStickyClass"),n("html").removeClass("ast-header-stick-scroll-active"),a.removeClass("ast-header-sticked")):(a.css({top:gutter}),a.addClass("ast-header-sticked"),a.addClass("ast-header-slide"),a.css("visibility","visible"),a.addClass("ast-sticky-active").stop().css({transform:"translateY(0)"}),n(l).trigger("addStickyClass"),n("html").addClass("ast-header-stick-scroll-active")))},t.prototype.stickRelease=function(e){var t=jQuery(e.element),a=t;"1"===e.options.hide_on_scroll?e.hasScrolled(e,"release"):"none"==e.options.header_style?(t.removeClass("ast-sticky-active").stop().css({"max-width":"",top:"",padding:""}),t.parent().css("min-height",""),n(l).trigger("removeStickyClass"),a.removeClass("ast-header-sticked"),t.removeClass("ast-sticky-shrunk").stop()):"slide"==e.options.header_style?(a.removeClass("ast-sticky-active").stop().css({transform:p?"translateY(-100vh)":"translateY(-100%)"}),a.css({visibility:"hidden",top:""}),n("html").removeClass("ast-header-stick-slide-active"),n(l).trigger("removeStickyClass"),a.removeClass("ast-header-sticked")):"fade"==e.options.header_style&&(a.removeClass("ast-sticky-active").stop().css({opacity:"0"}),a.css({visibility:"hidden"}),a.removeClass("ast-header-sticked"),n(l).trigger("removeStickyClass"),n("html").removeClass("ast-header-stick-fade-active"))},t.prototype.init=function(){var t,e;jQuery(this.element)&&(t=this,e=jQuery(t.element),("none"==t.options.header_style?e.wrap(t.options.wrap).parent().css("min-height",e.outerHeight()):e.wrap(t.options.wrap)).attr("data-stick-support","on").attr("data-stick-maxwidth",parseInt(t.options.max_width)),t.update_attrs(),jQuery(h).on("resize",function(){t.stickRelease(t),t.update_attrs(),t.stick_me(t)}),jQuery(h).on("scroll",function(){t.stick_me(t,"scroll"),jQuery("body").hasClass("ast-sticky-toggled-off")&&(t.update_attrs(),t.stick_me(t,"scroll"))}),jQuery(l).ready(function(e){t.stick_me(t)}))},n.fn[a]=function(e){return this.each(function(){n.data(this,"plugin_"+a)||n.data(this,"plugin_"+a,new t(this,e))})};var e,i=jQuery("body"),o=i.width(),y=astraAddon.stick_header_meta||"default",_=astraAddon.header_main_stick||"",m=astraAddon.header_main_shrink||"",u=astraAddon.header_above_stick||"",b=astraAddon.header_below_stick||"",k=astraAddon.header_main_stick_meta||"",g=astraAddon.header_above_stick_meta||"",v=astraAddon.header_below_stick_meta||"",w=astraAddon.site_layout||"",j=astraAddon.site_layout_box_width||1200,Q=astraAddon.sticky_header_on_devices||"desktop",f=astraAddon.sticky_header_style||"none",x=astraAddon.sticky_hide_on_scroll||"",C=astraAddon.header_logo_width||"",S=astraAddon.responsive_header_logo_width||"",I=astraAddon.stick_origin_position||"",A=astraAddon.tablet_break_point||768,E=astraAddon.mobile_break_point||544;"disabled"!=y&&("enabled"===y&&(_=k,u=g,b=v),0<n("header .site-logo-img img").length&&(-1===(k=0==(k=void 0===(k=(y=n("header .site-logo-img img")).attr("height"))?y.height():k)?"":k).toString().indexOf("%")&&(k+="px"),""!=S.desktop||""!=S.tablet||""!=S.mobile?e="<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+S.desktop+"px; } @media (max-width: "+A+"px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+S.tablet+"px; } } @media (max-width: "+E+"px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg{ width: "+S.mobile+"px; } } </style>":""!=C&&(e="<style type='text/css' id='ast-site-identity-img' class='ast-site-identity-img' > #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+C+"px; } #masthead .ast-header-sticked .site-logo-img img { max-height: "+k+"; width: auto; } </style>"),n("head").append(e)),(_||u||b)&&(n(l).on("addStickyClass",function(){var e="";"1"!=_&&"on"!=_&&"disabled"!=_||(e+=" ast-primary-sticky-header-active"),"1"!=u&&"on"!=u&&"disabled"!=u||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").addClass(e)}),n(l).on("removeStickyClass",function(){var e="";"1"!=_&&"on"!=_&&"disabled"!=_||(e+=" ast-primary-sticky-header-active"),"1"!=u&&"on"!=u&&"disabled"!=u||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").removeClass(e)}),"ast-box-layout"===w&&(o=parseInt(j)),jQuery(l).on("ready astLayoutWidthChanged",function(e){if("astLayoutWidthChanged"===e.type){if(!(parseInt(_)||parseInt(b)||parseInt(u)))return;jQuery("div.ast-stick-primary-below-wrapper").children().unwrap(),jQuery('div[data-stick-support="on"]').children().unwrap()}var t;"1"==x?("1"==m&&jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=u&&"on"!=u&&"disabled"!=u&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=_&&"on"!=_&&"disabled"!=_&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),jQuery("#ast-fixed-header").astExtSticky({max_width:o,site_layout:w,sticky_on_device:Q,header_style:"slide",hide_on_scroll:x})):"none"==f?c?("both"===Q?["desktop","mobile"]:[Q]).forEach(function(e){var t;"1"!=u&&"on"!=u&&"disabled"!=u||jQuery("#masthead #ast-"+e+"-header .ast-above-header").astExtSticky({max_width:o,site_layout:w,sticky_on_device:Q,header_style:f,hide_on_scroll:x}),"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=_&&"on"!=_&&"disabled"!=_||(t=m?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead #ast-"+e+"-header .main-header-bar").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x}),jQuery("#masthead #ast-"+e+"-header .ast-custom-header").astExtSticky({max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead #ast-"+e+"-header .ast-below-header").astExtSticky({dependent:["#masthead #ast-"+e+"-header .main-header-bar","#masthead #ast-"+e+"-header .ast-above-header"],max_width:o,site_layout:w,sticky_on_device:Q,header_style:f,hide_on_scroll:x})):((jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").length?jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap"):jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap")).wrap('<div class="ast-stick-primary-below-wrapper"></div>'),jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x}))}):("1"!=u&&"on"!=u&&"disabled"!=u||jQuery("#masthead .ast-above-header").astExtSticky({max_width:o,site_layout:w,sticky_on_device:Q,header_style:f,hide_on_scroll:x}),"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=_&&"on"!=_&&"disabled"!=_||(t=m?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead .main-header-bar").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x}),jQuery("#masthead .ast-custom-header").astExtSticky({max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead .ast-below-header").astExtSticky({dependent:["#masthead .main-header-bar","#masthead .ast-above-header"],max_width:o,site_layout:w,sticky_on_device:Q,header_style:f,hide_on_scroll:x})):(jQuery("#masthead .main-header-bar-wrap").wrap('<div class="ast-stick-primary-below-wrapper"></div>'),jQuery("#masthead .ast-below-header-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .main-header-bar-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x}))):(jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=u&&"on"!=u&&"disabled"!=u&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=_&&"on"!=_&&"disabled"!=_&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),"1"!=u&&"on"!=u&&"disabled"!=u&&"1"!=_&&"on"!=_&&"disabled"!=_&&"1"!=b&&"on"!=b&&"disabled"!=b||(t=m?{padding_top:"",padding_bottom:""}:"",jQuery("#ast-fixed-header").astExtSticky({max_width:o,site_layout:w,shrink:t,sticky_on_device:Q,header_style:f,hide_on_scroll:x}))),"mobile"!=Q&&"both"!=Q||(jQuery("#masthead .main-header-menu-toggle").click(function(e){var t,a;jQuery("#masthead .main-header-menu-toggle").hasClass("toggled")?(i.addClass("ast-sticky-toggled-off"),"none"==s.header_style&&(jQuery("#masthead .main-header-bar").hasClass("ast-sticky-active")||jQuery("#masthead .ast-stick-primary-below-wrapper").hasClass("ast-sticky-active"))&&(t=jQuery(h).height(),a=0,jQuery("#masthead .ast-above-header")&&jQuery("#masthead .ast-above-header").length&&(a=jQuery("#masthead .ast-above-header").height()),"1"==x&&jQuery("html").css({overflow:"hidden"}),("1"!=m||"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":t-a+"px","overflow-y":"auto"}))):(i.addClass("ast-sticky-toggled-off"),jQuery("html").css({overflow:""}),("1"!=m||"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":"","overflow-y":""}))}),jQuery("#ast-fixed-header .main-header-menu-toggle").click(function(e){var t;jQuery("#ast-fixed-header .main-header-menu-toggle").hasClass("toggled")?(t=jQuery(h).height(),"1"==x&&jQuery("html").css({overflow:"auto"}),jQuery("#ast-fixed-header").css({"max-height":t+"px","overflow-y":"auto"})):(jQuery("html").css({overflow:""}),jQuery("#ast-fixed-header").css({"max-height":"","overflow-y":""}))}))})))}(jQuery,window); assets/js/minified/metabox.min.js 0000666 00000004163 15165306611 0013041 0 ustar 00 !function(i){function s(e){"enabled"==e?(i("#stick-header-meta-options").slideDown(),a()):(i("#stick-header-meta-options").slideUp(),i(".sticky-header-bg-opc-wrap").slideUp())}function a(){""==i("#stick-header-meta-options input[type=checkbox]:checked").map(function(){return this.value}).get()?i(".sticky-header-bg-opc-wrap").slideUp():i(".sticky-header-bg-opc-wrap").slideDown()}function e(){i("#ast-below-header-display").is(":checked")?i(".sticky-below-header-meta-wrapper").slideUp():i(".sticky-below-header-meta-wrapper").slideDown()}function d(){i("#ast-above-header-display").is(":checked")?i(".sticky-above-header-meta-wrapper").slideUp():i(".sticky-above-header-meta-wrapper").slideDown()}function t(){i("#ast-main-header-display").is(":checked")?i(".stick-main-header-meta-wrapper").slideUp():i(".stick-main-header-meta-wrapper").slideDown()}function r(){i("#ast-main-header-display").length&&i("#ast-above-header-display").length&&i("#ast-below-header-display").length?i("#ast-main-header-display").is(":checked")&&i("#ast-above-header-display").is(":checked")&&i("#ast-below-header-display").is(":checked")?i(".stick-header-wrapper").slideUp():i(".stick-header-wrapper").slideDown():i("#ast-main-header-display").length&&i("#ast-above-header-display").length?i("#ast-main-header-display").is(":checked")&&i("#ast-above-header-display").is(":checked")?i(".stick-header-wrapper").slideUp():i(".stick-header-wrapper").slideDown():i("#ast-main-header-display").length&&i("#ast-below-header-display").length?i("#ast-main-header-display").is(":checked")&&i("#ast-below-header-display").is(":checked")?i(".stick-header-wrapper").slideUp():i(".stick-header-wrapper").slideDown():i("#ast-main-header-display").is(":checked")?i(".stick-header-wrapper").slideUp():i(".stick-header-wrapper").slideDown()}i("#stick-header-meta").each(function(e,a){s(i(a).val()),i(a).change(function(e){s(i(a).val())})}),i("#stick-header-meta-options input").click(function(){a()}),e(),i("#ast-below-header-display").click(function(){e(),r()}),d(),i("#ast-above-header-display").click(function(){d(),r()}),t(),i("#ast-main-header-display").click(function(){t(),r()}),r()}(jQuery); classes/dynamic-css/search-dynamic.css.php 0000666 00000004226 15165306611 0014616 0 ustar 00 <?php /** * Sticky Header Social Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_search_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_search_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $selector = '.ast-header-sticked .ast-header-search'; if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'search', 'header' ) ) { return $dynamic_css; } /** * Search CSS. */ $css_output_desktop = array( $selector . ' .astra-search-icon, ' . $selector . ' .search-field::placeholder,' . $selector . ' .ast-icon' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-search-icon-color' ) ), ), $selector . ' .astra-search-icon:hover,' . $selector . ' .ast-icon:hover' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-search-icon-h-color' ) ), ), $selector . ' .search-field, ' . $selector . ' .ast-search-menu-icon .search-field::placeholder' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-search-text-placeholder-color' ) ), ), $selector . ' .ast-search-menu-icon .search-field, ' . $selector . ' .ast-search-menu-icon .search-form, ' . $selector . ' .ast-search-menu-icon .search-submit ' => array( 'background-color' => esc_attr( astra_get_option( 'sticky-header-search-box-background-color' ) ), ), $selector . ' .ast-search-menu-icon:hover .search-field, ' . $selector . ' .ast-search-menu-icon:hover .search-form, ' . $selector . ' .ast-search-menu-icon:hover .search-submit,' . $selector . ' .ast-search-menu-icon:focus .search-field, ' . $selector . ' .ast-search-menu-icon:focus .search-form, ' . $selector . ' .ast-search-menu-icon:focus .search-submit' => array( 'background-color' => esc_attr( astra_get_option( 'sticky-header-search-box-background-h-color' ) ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output_desktop ); $dynamic_css .= $css_output; return $dynamic_css; } classes/dynamic-css/html-dynamic.css.php 0000666 00000002164 15165306611 0014314 0 ustar 00 <?php /** * Sticky Header HTML Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_html_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_html_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $num_of_header_html = astra_addon_builder_helper()->num_of_header_html; for ( $index = 1; $index <= $num_of_header_html; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'html-' . $index, 'header' ) ) { continue; } $selector = '.ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-html-' . $index; $css_output = array( $selector . ' .ast-builder-html-element' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-html-' . $index . 'color' ) ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $dynamic_css .= $css_output; } return $dynamic_css; } classes/dynamic-css/dynamic.css.php 0000666 00000234736 15165306611 0013366 0 ustar 00 <?php /** * Transparent Header - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_ext_sticky_header_dynamic_css', 30 ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_sticky_header_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Set colors * * If colors extension is_active then get color from it. * Else set theme default colors. */ $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_main_meta = astra_get_option_meta( 'header-main-stick-meta' ); $stick_header_above_meta = astra_get_option_meta( 'header-above-stick-meta' ); $stick_header_below_meta = astra_get_option_meta( 'header-below-stick-meta' ); $stick_header_main = astra_get_option( 'header-main-stick' ); $stick_header_above = astra_get_option( 'header-above-stick' ); $stick_header_below = astra_get_option( 'header-below-stick' ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); $sticky_header_logo_width = astra_get_option( 'sticky-header-logo-width' ); // Old Log Width Option that we are no loginer using it our theme. $header_logo_width = astra_get_option( 'ast-header-logo-width' ); $header_responsive_logo_width = astra_get_option( 'ast-header-responsive-logo-width' ); $site_layout = astra_get_option( 'site-layout' ); $header_color_site_title = '#222'; $text_color = astra_get_option( 'text-color' ); $link_color = astra_get_option( 'link-color' ); $sticky_header_logo_different = astra_get_option( 'different-sticky-logo' ); $sticky_header_logo = astra_get_option( 'sticky-header-logo' ); // Compatible with header full width. $header_break_point = astra_header_break_point(); $astra_header_width = astra_get_option( 'header-main-layout-width' ); // Sticky Header Background colors. $text_color = astra_get_option( 'text-color' ); $link_color = astra_get_option( 'link-color' ); $desktop_sticky_header_bg_color = astra_get_prop( astra_get_option( 'sticky-header-bg-color-responsive' ), 'desktop' ); $tablet_sticky_header_bg_color = astra_get_prop( astra_get_option( 'sticky-header-bg-color-responsive' ), 'tablet' ); $mobile_sticky_header_bg_color = astra_get_prop( astra_get_option( 'sticky-header-bg-color-responsive' ), 'mobile' ); $sticky_header_bg_blur = astra_get_option( 'sticky-header-bg-blur' ); $sticky_header_bg_blur_intensity = astra_get_option( 'sticky-header-bg-blur-intensity' ); $sticky_header_menu_bg_color = astra_get_option( 'sticky-header-menu-bg-color-responsive' ); $desktop_sticky_header_color_site_title = astra_get_prop( astra_get_option( 'sticky-header-color-site-title-responsive' ), 'desktop', '#222' ); $tablet_sticky_header_color_site_title = astra_get_prop( astra_get_option( 'sticky-header-color-site-title-responsive' ), 'tablet' ); $mobile_sticky_header_color_site_title = astra_get_prop( astra_get_option( 'sticky-header-color-site-title-responsive' ), 'mobile' ); $sticky_header_color_h_site_title = astra_get_option( 'sticky-header-color-h-site-title-responsive' ); $desktop_sticky_header_color_site_tagline = astra_get_prop( astra_get_option( 'sticky-header-color-site-tagline-responsive' ), 'desktop', $text_color ); $tablet_sticky_header_color_site_tagline = astra_get_prop( astra_get_option( 'sticky-header-color-site-tagline-responsive' ), 'tablet' ); $mobile_sticky_header_color_site_tagline = astra_get_prop( astra_get_option( 'sticky-header-color-site-tagline-responsive' ), 'mobile' ); $desktop_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu-color-responsive' ), 'desktop' ); $tablet_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu-color-responsive' ), 'tablet' ); $mobile_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu-color-responsive' ), 'mobile' ); $desktop_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu-h-color-responsive' ), 'desktop' ); $tablet_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu-h-color-responsive' ), 'tablet' ); $mobile_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu-h-color-responsive' ), 'mobile' ); $sticky_header_menu_h_a_bg_color = astra_get_option( 'sticky-header-menu-h-a-bg-color-responsive' ); $sticky_header_submenu_bg_color = astra_get_option( 'sticky-header-submenu-bg-color-responsive' ); $sticky_primary_submenu_color = astra_get_option( 'sticky-header-submenu-color-responsive' ); $sticky_primary_submenu_h_color = astra_get_option( 'sticky-header-submenu-h-color-responsive' ); $sticky_primary_submenu_h_a_bg_color = astra_get_option( 'sticky-header-submenu-h-a-bg-color-responsive' ); $sticky_header_content_section_text_color = astra_get_option( 'sticky-header-content-section-text-color-responsive' ); $sticky_header_content_section_link_color = astra_get_option( 'sticky-header-content-section-link-color-responsive' ); $sticky_header_content_section_link_h_color = astra_get_option( 'sticky-header-content-section-link-h-color-responsive' ); $header_custom_button_style = astra_get_option( 'header-main-rt-section-button-style' ); $header_custom_sticky_button_text_color = astra_get_option( 'header-main-rt-sticky-section-button-text-color' ); $header_custom_sticky_button_text_h_color = astra_get_option( 'header-main-rt-sticky-section-button-text-h-color' ); $header_custom_sticky_button_back_color = astra_get_option( 'header-main-rt-sticky-section-button-back-color' ); $header_custom_sticky_button_back_h_color = astra_get_option( 'header-main-rt-sticky-section-button-back-h-color' ); $header_custom_sticky_button_spacing = astra_get_option( 'header-main-rt-sticky-section-button-padding' ); $header_custom_sticky_button_radius = astra_get_option( 'header-main-rt-sticky-section-button-border-radius' ); $header_custom_sticky_button_border_color = astra_get_option( 'header-main-rt-sticky-section-button-border-color' ); $header_custom_sticky_button_border_h_color = astra_get_option( 'header-main-rt-sticky-section-button-border-h-color' ); $header_custom_sticky_button_border_size = astra_get_option( 'header-main-rt-sticky-section-button-border-size' ); $default_header_site_title_color = astra_get_option( 'header-color-site-title' ); $default_header_site_title_hover_color = astra_get_option( 'header-color-h-site-title' ); $default_header_site_tagline_color = astra_get_option( 'header-color-site-tagline' ); if ( ! $stick_header_main && ! $stick_header_above && ! $stick_header_below && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_above_meta ) || empty( $stick_header_below_meta ) || empty( $stick_header_main_meta ) ) ) ) { return $dynamic_css; } $parse_css = ''; /** * Sticky Header * * [1]. Apply default colors from theme for sticky header. * [2]. Hide Sticky Header logo if Sticky Header logo is not enabled. * [3]. Sticky Header Logo responsive widths. * [4]. Compatible with Header Width. * [5]. Stciky Header & Sticky Header Primary menu background color. */ /** * [1]. Apply default colors from theme for sticky header. */ if ( ! Astra_Ext_Extension::is_active( 'colors-and-background' ) ) { $css_output = array( '#ast-fixed-header .main-header-bar .site-title a, #ast-fixed-header .main-header-bar .site-title a:focus, #ast-fixed-header .main-header-bar .site-title a:hover, #ast-fixed-header .main-header-bar .site-title a:visited, .main-header-bar.ast-sticky-active .site-title a, .main-header-bar.ast-sticky-active .site-title a:focus, .main-header-bar.ast-sticky-active .site-title a:hover, .main-header-bar.ast-sticky-active .site-title a:visited' => array( 'color' => esc_attr( $header_color_site_title ), ), '#ast-fixed-header .main-header-bar .site-description, .main-header-bar.ast-sticky-active .site-description' => array( 'color' => esc_attr( $text_color ), ), '#ast-fixed-header .main-header-menu > .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu >.menu-item.current-menu-ancestor > .menu-link, .main-header-bar.ast-sticky-active .main-header-menu > .menu-item.current-menu-item > .menu-link, .main-header-bar.ast-sticky-active .main-header-menu >.menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $link_color ), ), '#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu > .menu-item > .menu-link, #ast-fixed-header .ast-masthead-custom-menu-items, #ast-fixed-header .ast-masthead-custom-menu-items a, .main-header-bar.ast-sticky-active, .main-header-bar.ast-sticky-active .main-header-menu > .menu-item > .menu-link, .main-header-bar.ast-sticky-active .ast-masthead-custom-menu-items, .main-header-bar.ast-sticky-active .ast-masthead-custom-menu-items a' => array( 'color' => esc_attr( $text_color ), ), '#ast-fixed-header .main-header-menu .menu-link:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link, .main-header-bar.ast-sticky-active .main-header-menu .menu-item:hover > .menu-link, .main-header-bar.ast-sticky-active .main-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $link_color ), ), '#ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle,.main-header-bar.ast-sticky-active .main-header-menu .menu-item:hover > .ast-menu-toggle,.main-header-bar.ast-sticky-active .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $link_color ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $css_output ); } /** * [2]. Hide Sticky Header logo if Sticky Header logo is not enabled. */ if ( '0' === $sticky_header_logo_different && '' != $sticky_header_logo ) { $css_output = array( '.ast-sticky-active .site-logo-img .custom-logo' => array( 'display' => 'none', ), ); $parse_css .= astra_parse_css( $css_output ); } /** * [3]. Sticky Header Logo responsive widths */ // Desktop Sticky Header Logo width. $desktop_css_output = array( '#masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg' => array( 'width' => astra_get_css_value( $sticky_header_logo_width['desktop'], 'px' ), ), '.ast-hfb-header .site-logo-img .sticky-custom-logo img' => array( 'max-width' => astra_get_css_value( $sticky_header_logo_width['desktop'], 'px' ), ), ); $parse_css .= astra_parse_css( $desktop_css_output ); // Tablet Sticky Header Logo width. $tablet_css_output = array( '#masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg' => array( 'width' => astra_get_css_value( $sticky_header_logo_width['tablet'], 'px' ), ), '.ast-hfb-header .site-logo-img .sticky-custom-logo img' => array( 'max-width' => astra_get_css_value( $sticky_header_logo_width['tablet'], 'px' ), ), ); $parse_css .= astra_parse_css( $tablet_css_output, '', astra_addon_get_tablet_breakpoint() ); // Mobile Sticky Header Logo width. $mobile_css_output = array( '#masthead .site-logo-img .sticky-custom-logo .astra-logo-svg, .site-logo-img .sticky-custom-logo .astra-logo-svg, .ast-sticky-main-shrink .ast-sticky-shrunk .site-logo-img .astra-logo-svg' => array( 'width' => astra_get_css_value( $sticky_header_logo_width['mobile'], 'px' ), ), '.ast-hfb-header .site-logo-img .sticky-custom-logo img' => array( 'max-width' => astra_get_css_value( $sticky_header_logo_width['mobile'], 'px' ), ), ); $parse_css .= astra_parse_css( $mobile_css_output, '', astra_addon_get_mobile_breakpoint( '1' ) ); // Theme Main Logo width option for responsive devices. if ( is_array( $header_responsive_logo_width ) ) { /* Responsive main logo width */ $responsive_logo_output = array( '#masthead .site-logo-img .astra-logo-svg, .ast-header-break-point #ast-fixed-header .site-logo-img .custom-logo-link img ' => array( 'max-width' => astra_get_css_value( $header_responsive_logo_width['desktop'], 'px' ), ), ); $parse_css .= astra_parse_css( $responsive_logo_output ); $responsive_logo_output_tablet = array( '#masthead .site-logo-img .astra-logo-svg, .ast-header-break-point #ast-fixed-header .site-logo-img .custom-logo-link img ' => array( 'max-width' => astra_get_css_value( $header_responsive_logo_width['tablet'], 'px' ), ), ); $parse_css .= astra_parse_css( $responsive_logo_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $responsive_logo_output_mobile = array( '#masthead .site-logo-img .astra-logo-svg, .ast-header-break-point #ast-fixed-header .site-logo-img .custom-logo-link img ' => array( 'max-width' => astra_get_css_value( $header_responsive_logo_width['mobile'], 'px' ), ), ); $parse_css .= astra_parse_css( $responsive_logo_output_mobile, '', astra_addon_get_mobile_breakpoint( '1' ) ); } else { /* Old main logo width */ $logo_output = array( '#masthead .site-logo-img .astra-logo-svg' => array( 'width' => astra_get_css_value( $header_logo_width, 'px' ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $logo_output ); } /** * [4]. Compatible with Header Width */ if ( 'content' != $astra_header_width ) { $general_global_responsive = array( '#ast-fixed-header .ast-container' => array( 'max-width' => '100%', 'padding-left' => '35px', 'padding-right' => '35px', ), ); $padding_below_breakpoint = array( '#ast-fixed-header .ast-container' => array( 'padding-left' => '20px', 'padding-right' => '20px', ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $general_global_responsive ); $parse_css .= astra_parse_css( $padding_below_breakpoint, '', $header_break_point ); } /** * [5]. Stciky Header & Sticky Header Primary menu colors. */ if ( 'none' === $sticky_header_style && ! $sticky_hide_on_scroll ) { $desktop_css_output = array( /** * Header */ '.ast-transparent-header.ast-primary-sticky-header-active .main-header-bar-wrap .main-header-bar, .ast-primary-sticky-header-active .main-header-bar-wrap .main-header-bar, .ast-primary-sticky-header-active.ast-header-break-point .main-header-bar-wrap .main-header-bar, .ast-transparent-header.ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked, .ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked, .ast-primary-sticky-header-ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked' => array( 'background' => esc_attr( $desktop_sticky_header_bg_color ), 'backdrop-filter' => $sticky_header_bg_blur && $sticky_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_header_bg_blur_intensity ) . 'px )' : 'unset', ), /** * Primary Header Menu */ '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu, .ast-flyout-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation' => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['desktop'] ), ), '.ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['desktop'] ), ), '.ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link:hover, .ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link:hover .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:hover, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:focus' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['desktop'] ), 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu .ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .main-header-menu .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item > .menu-link, .ast-primary-sticky-header-active .ast-header-custom-item, .ast-header-custom-item a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_color ), ), '.ast-primary-sticky-header-active .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $desktop_sticky_primary_menu_color ), ), /** * Primary Submenu */ '.ast-primary-sticky-header-active .main-navigation ul .sub-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['desktop'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['desktop'] ), ), '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['desktop'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['desktop'] ), ), // Content Section text color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['desktop'] ), ), // Content Section link color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['desktop'] ), ), // Content Section link hover color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['desktop'] ), ), ); $old_sticky_header_desktop_output = array( '.ast-primary-sticky-header-active .site-title a, .ast-primary-sticky-header-active .site-title a:focus, .ast-primary-sticky-header-active .site-title a:hover, .ast-primary-sticky-header-active .site-title a:visited' => array( 'color' => esc_attr( $desktop_sticky_header_color_site_title ), ), '.ast-primary-sticky-header-active .site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['desktop'] ), ), '.ast-primary-sticky-header-active .site-header .site-description' => array( 'color' => esc_attr( $desktop_sticky_header_color_site_tagline ), ), ); $tablet_css_output = array( /** * Header */ '.ast-transparent-header.ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active.ast-header-break-point .ast-main-header-wrap .main-header-bar' => array( 'background' => esc_attr( $tablet_sticky_header_bg_color ), ), /** * Primary Header Menu */ '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu, .ast-flyout-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation' => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['tablet'] ), ), '.ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['tablet'] ), ), '.ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:hover, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:focus' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['tablet'] ), 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu .ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .main-header-menu .menu-link, .ast-primary-sticky-header-active .ast-header-custom-item, .ast-header-custom-item a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_color ), ), '.ast-primary-sticky-header-active .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $tablet_sticky_primary_menu_color ), ), /** * Primary Submenu */ '.ast-primary-sticky-header-active .main-navigation ul .sub-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['tablet'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['tablet'] ), ), '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['tablet'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), ), '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['tablet'] ), ), // Content Section text color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['tablet'] ), ), // Content Section link color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['tablet'] ), ), // Content Section link hover color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['tablet'] ), ), ); $old_sticky_header_tablet_output = array( '.ast-primary-sticky-header-active .site-title a, .ast-primary-sticky-header-active .site-title a:focus, .ast-primary-sticky-header-active .site-title a:hover, .ast-primary-sticky-header-active .site-title a:visited' => array( 'color' => esc_attr( $tablet_sticky_header_color_site_title ), ), '.ast-primary-sticky-header-active .site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['tablet'] ), ), '.ast-primary-sticky-header-active .site-header .site-description' => array( 'color' => esc_attr( $tablet_sticky_header_color_site_tagline ), ), ); $mobile_css_output = array( /** * Header */ '.ast-transparent-header.ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active .ast-main-header-wrap .main-header-bar, .ast-primary-sticky-header-active.ast-header-break-point .ast-main-header-wrap .main-header-bar' => array( 'background' => esc_attr( $mobile_sticky_header_bg_color ), ), /** * Primary Header Menu */ '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu, .ast-flyout-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation, .ast-fullscreen-menu-enable.ast-header-break-point .main-header-bar-navigation .site-navigation' => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['mobile'] ), ), '.ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['mobile'] ), ), '.ast-primary-sticky-header-active .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-primary-sticky-header-active .ast-builder-menu-2 .main-header-menu .menu-item.current-menu-item > .menu-link:hover, .ast-header-custom-item a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .menu-link, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:hover, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link:focus' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['mobile'] ), 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu .ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active .main-header-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), ), '.ast-primary-sticky-header-active .main-header-menu, .ast-primary-sticky-header-active .main-header-menu .menu-link, .ast-primary-sticky-header-active .ast-header-custom-item, .ast-header-custom-item a, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active li.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active.ast-advanced-headers .main-header-menu > .menu-item > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_color ), ), '.ast-primary-sticky-header-active .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $mobile_sticky_primary_menu_color ), ), /** * Primary Submenu */ '.ast-primary-sticky-header-active .main-navigation ul .sub-menu, .ast-header-break-point.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['mobile'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['mobile'] ), ), '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-link:hover, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['mobile'] ), ), '.ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-primary-sticky-header-active .main-header-bar-navigation .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), ), '.ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-primary-sticky-header-active .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['mobile'] ), ), // Content Section text color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['mobile'] ), ), // Content Section link color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['mobile'] ), ), // Content Section link hover color. '.ast-primary-sticky-header-active div.ast-masthead-custom-menu-items a:hover, .ast-primary-sticky-header-active div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['mobile'] ), ), ); $old_sticky_header_mobile_output = array( '.ast-primary-sticky-header-active .site-title a, .ast-primary-sticky-header-active .site-title a:focus, .ast-primary-sticky-header-active .site-title a:hover, .ast-primary-sticky-header-active .site-title a:visited' => array( 'color' => esc_attr( $mobile_sticky_header_color_site_title ), ), '.ast-primary-sticky-header-active .site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['mobile'] ), ), '.ast-primary-sticky-header-active .site-header .site-description' => array( 'color' => esc_attr( $mobile_sticky_header_color_site_tagline ), ), ); if ( false === astra_addon_builder_helper()->is_header_footer_builder_active ) { $desktop_css_output = array_merge( $desktop_css_output, $old_sticky_header_desktop_output ); $tablet_css_output = array_merge( $tablet_css_output, $old_sticky_header_tablet_output ); $mobile_css_output = array_merge( $mobile_css_output, $old_sticky_header_mobile_output ); } } else { // Only when Fixed Header Merkup added. $desktop_css_output = array( /** * Header */ '#ast-fixed-header .site-title a, #ast-fixed-header .site-title a:focus, #ast-fixed-header .site-title a:hover, #ast-fixed-header .site-title a:visited' => array( 'color' => esc_attr( $desktop_sticky_header_color_site_title ), ), '#ast-fixed-header.site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['desktop'] ), ), '#ast-fixed-header.site-header .site-description' => array( 'color' => esc_attr( $desktop_sticky_header_color_site_tagline ), ), '.ast-transparent-header #ast-fixed-header .main-header-bar, .ast-transparent-header.ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked, .ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked, .ast-primary-sticky-header-ast-primary-sticky-enabled .ast-main-header-wrap .main-header-bar.ast-header-sticked, #ast-fixed-header .main-header-bar, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field:focus' => array( 'background' => esc_attr( $desktop_sticky_header_bg_color ), 'backdrop-filter' => $sticky_header_bg_blur && $sticky_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_header_bg_blur_intensity ) . 'px )' : 'unset', ), /** * Primary Header Menu */ '#ast-fixed-header .main-header-menu' => array( 'background' => esc_attr( $sticky_header_menu_bg_color['desktop'] ), ), '#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['desktop'] ), ), '#ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['desktop'] ), 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu .menu-link, #ast-fixed-header .ast-header-custom-item, .ast-header-custom-item a, #ast-fixed-header li.ast-masthead-custom-menu-items, #ast-fixed-header li.ast-masthead-custom-menu-items a' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_color ), ), '#ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $desktop_sticky_primary_menu_color ), ), /** * Primary Submenu */ '#ast-fixed-header .main-navigation ul .sub-menu, .ast-header-break-point#ast-fixed-header .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['desktop'] ), ), '#ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu, #ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu .menu-link, #ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['desktop'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['desktop'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['desktop'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['desktop'] ), ), // Content Section text color. '#ast-fixed-header div.ast-masthead-custom-menu-items, #ast-fixed-header div.ast-masthead-custom-menu-items .widget, #ast-fixed-header div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['desktop'] ), ), // Content Section link color. '#ast-fixed-header div.ast-masthead-custom-menu-items a, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['desktop'] ), ), // Content Section link hover color. '#ast-fixed-header div.ast-masthead-custom-menu-items a:hover, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['desktop'] ), ), ); $tablet_css_output = array( /** * Header */ '#ast-fixed-header .site-title a, #ast-fixed-header .site-title a:focus, #ast-fixed-header .site-title a:hover, #ast-fixed-header .site-title a:visited' => array( 'color' => esc_attr( $tablet_sticky_header_color_site_title ), ), '#ast-fixed-header.site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['tablet'] ), ), '#ast-fixed-header.site-header .site-description' => array( 'color' => esc_attr( $tablet_sticky_header_color_site_tagline ), ), '.ast-transparent-header #ast-fixed-header .main-header-bar, #ast-fixed-header .main-header-bar, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field:focus' => array( 'background' => esc_attr( $tablet_sticky_header_bg_color ), ), /** * Primary Header Menu */ '#ast-fixed-header .main-header-menu' => array( 'background' => esc_attr( $sticky_header_menu_bg_color['tablet'] ), ), '#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['tablet'] ), ), '#ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['tablet'] ), 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu .menu-link, #ast-fixed-header .ast-header-custom-item, .ast-header-custom-item a, #ast-fixed-header li.ast-masthead-custom-menu-items, #ast-fixed-header li.ast-masthead-custom-menu-items a' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_color ), ), '#ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $tablet_sticky_primary_menu_color ), ), /** * Primary Submenu */ '#ast-fixed-header .main-navigation ul .sub-menu, .ast-header-break-point#ast-fixed-header .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['tablet'] ), ), '#ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu, #ast-fixed-header .main-header-menu .sub-menu .menu-link, #ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['tablet'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['tablet'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['tablet'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['tablet'] ), ), // Content Section text color. '#ast-fixed-header div.ast-masthead-custom-menu-items, #ast-fixed-header div.ast-masthead-custom-menu-items .widget, #ast-fixed-header div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['tablet'] ), ), // Content Section link color. '#ast-fixed-header div.ast-masthead-custom-menu-items a, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['tablet'] ), ), // Content Section link hover color. '#ast-fixed-header div.ast-masthead-custom-menu-items a:hover, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['tablet'] ), ), ); $mobile_css_output = array( /** * Header */ '#ast-fixed-header .site-title a, #ast-fixed-header .site-title a:focus, #ast-fixed-header .site-title a:hover, #ast-fixed-header .site-title a:visited' => array( 'color' => esc_attr( $mobile_sticky_header_color_site_title ), ), '#ast-fixed-header.site-header .site-title a:hover' => array( 'color' => esc_attr( $sticky_header_color_h_site_title['mobile'] ), ), '#ast-fixed-header.site-header .site-description' => array( 'color' => esc_attr( $mobile_sticky_header_color_site_tagline ), ), '.ast-transparent-header #ast-fixed-header .main-header-bar, #ast-fixed-header .main-header-bar, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field, #ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search .search-field:focus' => array( 'background' => esc_attr( $mobile_sticky_header_bg_color ), ), /** * Primary Header Menu */ '#ast-fixed-header .main-header-menu' => array( 'background' => esc_attr( $sticky_header_menu_bg_color['mobile'] ), ), '#ast-fixed-header .main-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['mobile'] ), ), '#ast-fixed-header .main-header-menu .menu-link:hover, .ast-header-custom-item a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_header_menu_h_a_bg_color['mobile'] ), 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu .ast-masthead-custom-menu-items a:hover, #ast-fixed-header .main-header-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), ), '#ast-fixed-header .main-header-menu, #ast-fixed-header .main-header-menu .menu-link, #ast-fixed-header .ast-header-custom-item, .ast-header-custom-item a, #ast-fixed-header li.ast-masthead-custom-menu-items, #ast-fixed-header li.ast-masthead-custom-menu-items a' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_color ), ), '#ast-fixed-header .ast-masthead-custom-menu-items .ast-inline-search form' => array( 'border-color' => esc_attr( $mobile_sticky_primary_menu_color ), ), /** * Primary Submenu */ '#ast-fixed-header .main-navigation ul .sub-menu, .ast-header-break-point#ast-fixed-header .main-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['mobile'] ), ), '#ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu, #ast-fixed-header .main-header-menu .sub-menu .menu-link, #ast-fixed-header .main-header-bar-navigation .main-header-menu .sub-menu .menu-item > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_color['mobile'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-link:hover, #ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['mobile'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .main-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), ), '#ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .main-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_primary_submenu_h_color['mobile'] ), 'background-color' => esc_attr( $sticky_primary_submenu_h_a_bg_color['mobile'] ), ), // Content Section text color. '#ast-fixed-header div.ast-masthead-custom-menu-items, #ast-fixed-header div.ast-masthead-custom-menu-items .widget, #ast-fixed-header div.ast-masthead-custom-menu-items .widget-title' => array( 'color' => esc_attr( $sticky_header_content_section_text_color['mobile'] ), ), // Content Section link color. '#ast-fixed-header div.ast-masthead-custom-menu-items a, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a' => array( 'color' => esc_attr( $sticky_header_content_section_link_color['mobile'] ), ), // Content Section link hover color. '#ast-fixed-header div.ast-masthead-custom-menu-items a:hover, #ast-fixed-header div.ast-masthead-custom-menu-items .widget a:hover' => array( 'color' => esc_attr( $sticky_header_content_section_link_h_color['mobile'] ), ), ); } if ( 'custom-button' === $header_custom_button_style ) { $css_output = array( // Custom menu item button - Transparent. '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'color' => esc_attr( $header_custom_sticky_button_text_color ), 'background-color' => esc_attr( $header_custom_sticky_button_back_color ), 'padding-top' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'right', 'desktop' ), 'border-radius' => astra_get_css_value( $header_custom_sticky_button_radius, 'px' ), 'border-style' => 'solid', 'border-color' => esc_attr( $header_custom_sticky_button_border_color ), 'border-top-width' => ( isset( $header_custom_sticky_button_border_size['top'] ) && '' !== $header_custom_sticky_button_border_size['top'] ) ? astra_get_css_value( $header_custom_sticky_button_border_size['top'], 'px' ) : '', 'border-right-width' => ( isset( $header_custom_sticky_button_border_size['right'] ) && '' !== $header_custom_sticky_button_border_size['right'] ) ? astra_get_css_value( $header_custom_sticky_button_border_size['right'], 'px' ) : '', 'border-left-width' => ( isset( $header_custom_sticky_button_border_size['left'] ) && '' !== $header_custom_sticky_button_border_size['left'] ) ? astra_get_css_value( $header_custom_sticky_button_border_size['left'], 'px' ) : '', 'border-bottom-width' => ( isset( $header_custom_sticky_button_border_size['bottom'] ) && '' !== $header_custom_sticky_button_border_size['bottom'] ) ? astra_get_css_value( $header_custom_sticky_button_border_size['bottom'], 'px' ) : '', ), '.ast-primary-sticky-header-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button:hover' => array( 'color' => esc_attr( $header_custom_sticky_button_text_h_color ), 'background-color' => esc_attr( $header_custom_sticky_button_back_h_color ), 'border-color' => esc_attr( $header_custom_sticky_button_border_h_color ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $css_output ); $custom_trans_button_css = array( '.ast-sticky-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'padding-top' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'right', 'tablet' ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $custom_trans_button_css, '', astra_addon_get_tablet_breakpoint() ); $custom_trans_button = array( '.ast-sticky-active .main-header-bar .button-custom-menu-item .ast-custom-button-link .ast-custom-button' => array( 'padding-top' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $header_custom_sticky_button_spacing, 'right', 'mobile' ), ), ); /* Parse CSS from array()*/ $parse_css .= astra_parse_css( $custom_trans_button, '', astra_addon_get_mobile_breakpoint() ); } if ( false === astra_pro_sticky_header_submenu_below_header_fix() ) : $submenu_below_header = array( '.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar' => array( 'padding-top' => '0.5em', 'padding-bottom' => '0.5em', ), '.ast-sticky-main-shrink .ast-sticky-shrunk .main-header-bar .ast-site-identity' => array( 'padding-top' => '0', 'padding-bottom' => '0', ), ); $parse_css .= astra_parse_css( $submenu_below_header ); endif; /** * Sticky Header with Builder > Site Identity colors. */ if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { /* Site Identity Sticky Color Options */ if ( ! astra_addon_sticky_site_title_tagline_css_comp() ) { $sticky_site_title_color = astra_get_option( 'sticky-header-builder-site-title-color' ); $sticky_site_title_hover_color = astra_get_option( 'sticky-header-builder-site-title-h-color' ); $sticky_site_tagline_color = astra_get_option( 'sticky-header-builder-site-tagline-color' ); } else { $sticky_site_title_color = astra_get_option( 'sticky-header-builder-site-title-color', $default_header_site_title_color ); $sticky_site_title_hover_color = astra_get_option( 'sticky-header-builder-site-title-h-color', $default_header_site_title_hover_color ); $sticky_site_tagline_color = astra_get_option( 'sticky-header-builder-site-tagline-color', $default_header_site_tagline_color ); } $sticky_builder_site_identity_css = array( '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:focus, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:visited , [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a' => array( 'color' => esc_attr( $sticky_site_title_color ), ), '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .site-title a:hover, [CLASS*="-sticky-header-active"] .ast-header-sticked .site-title a:hover' => array( 'color' => esc_attr( $sticky_site_title_hover_color ), ), '[CLASS*="-sticky-header-active"] #ast-fixed-header.ast-header-sticked .ast-site-identity .site-description, [CLASS*="-sticky-header-active"] .ast-header-sticked .ast-site-identity .site-description' => array( 'color' => esc_attr( $sticky_site_tagline_color ), ), ); $parse_css .= astra_parse_css( $sticky_builder_site_identity_css ); $num_of_header_menu = astra_addon_builder_helper()->num_of_header_menu; for ( $index = 1; $index <= $num_of_header_menu; $index++ ) { /** * Sticky Menu Colors. */ $desktop_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-color-responsive' ), 'desktop' ); $tablet_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-color-responsive' ), 'tablet' ); $mobile_sticky_primary_menu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-color-responsive' ), 'mobile' ); $sticky_header_menu_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-bg-obj-responsive' ); $desktop_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-h-color-responsive' ), 'desktop' ); $tablet_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-h-color-responsive' ), 'tablet' ); $mobile_sticky_primary_menu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-h-color-responsive' ), 'mobile' ); $sticky_header_menu_h_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-h-bg-color-responsive' ); $desktop_sticky_primary_menu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-a-color-responsive' ), 'desktop' ); $tablet_sticky_primary_menu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-a-color-responsive' ), 'tablet' ); $mobile_sticky_primary_menu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-a-color-responsive' ), 'mobile' ); $sticky_header_menu_a_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-a-bg-color-responsive' ); /** * Sticky Submenu Colors. */ $desktop_sticky_primary_submenu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-color-responsive' ), 'desktop' ); $tablet_sticky_primary_submenu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-color-responsive' ), 'tablet' ); $mobile_sticky_primary_submenu_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-color-responsive' ), 'mobile' ); $sticky_header_submenu_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-submenu-bg-color-responsive' ); $desktop_sticky_primary_submenu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-h-color-responsive' ), 'desktop' ); $tablet_sticky_primary_submenu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-h-color-responsive' ), 'tablet' ); $mobile_sticky_primary_submenu_h_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-h-color-responsive' ), 'mobile' ); $sticky_header_submenu_h_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-submenu-h-bg-color-responsive' ); $desktop_sticky_primary_submenu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-a-color-responsive' ), 'desktop' ); $tablet_sticky_primary_submenu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-a-color-responsive' ), 'tablet' ); $mobile_sticky_primary_submenu_a_color = astra_get_prop( astra_get_option( 'sticky-header-menu' . $index . '-submenu-a-color-responsive' ), 'mobile' ); $sticky_header_submenu_a_bg_color = astra_get_option( 'sticky-header-menu' . $index . '-submenu-a-bg-color-responsive' ); if ( 3 > $index ) { /** * Sticky Megamenu Heading Colors. */ $sticky_megamenu_heading_color = astra_get_option( 'sticky-header-menu' . $index . '-header-megamenu-heading-color' ); $sticky_megamenu_heading_h_color = astra_get_option( 'sticky-header-menu' . $index . '-header-megamenu-heading-h-color' ); $sticky_builder_megamenu_desktop_css = array( // Megamenu Heading CSS Starts. '[CLASS*="-sticky-header-active"].ast-desktop .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . '.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link' => array( 'color' => esc_attr( $sticky_megamenu_heading_color ), 'background' => 'transparent', ), '[CLASS*="-sticky-header-active"].ast-desktop .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . '.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading:hover > .menu-link, [CLASS*="-sticky-header-active"].ast-desktop .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . '.ast-mega-menu-enabled .sub-menu .menu-item.menu-item-heading > .menu-link:hover' => array( 'color' => esc_attr( $sticky_megamenu_heading_h_color ), 'background' => 'transparent', ), ); $parse_css .= astra_parse_css( $sticky_builder_megamenu_desktop_css ); } $sticky_builder_menu_desktop_css = array( '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' > .menu-item > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_color ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['desktop'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .current-menu-parent > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_bg_color['desktop'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item.current-menu-item > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_a_color ), 'background-color' => esc_attr( $sticky_header_menu_a_bg_color['desktop'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .current-menu-parent > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_menu_a_color ), 'background-color' => esc_attr( $sticky_header_menu_a_bg_color['desktop'] ), ), // Submenu CSS starts. '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_submenu_color ), ), '.ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu, .ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['desktop'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_submenu_h_color ), 'background-color' => esc_attr( $sticky_header_submenu_h_bg_color['desktop'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $desktop_sticky_primary_submenu_a_color ), 'background-color' => esc_attr( $sticky_header_submenu_a_bg_color['desktop'] ), ), ); $sticky_builder_menu_tablet_css = array( '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' > .menu-item > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_color ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['tablet'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_bg_color['tablet'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_menu_a_color ), 'background-color' => esc_attr( $sticky_header_menu_a_bg_color['tablet'] ), ), // Submenu CSS starts. '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_submenu_color ), ), '.ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu, .ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['tablet'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_submenu_h_color ), 'background-color' => esc_attr( $sticky_header_submenu_h_bg_color['tablet'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $tablet_sticky_primary_submenu_a_color ), 'background-color' => esc_attr( $sticky_header_submenu_a_bg_color['tablet'] ), ), // Sticky Main Menu Scrolling (Tablet & Mobile). '.ast-primary-sticky-header-active.ast-main-header-nav-open nav' => array( 'overflow-y' => 'auto', 'max-height' => 'calc(100vh - 100px)', ), ); $sticky_builder_menu_mobile_css = array( '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' > .menu-item > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_color ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index => array( 'background-color' => esc_attr( $sticky_header_menu_bg_color['mobile'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_h_color ), 'background-color' => esc_attr( $sticky_header_menu_h_bg_color['mobile'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_menu_a_color ), 'background-color' => esc_attr( $sticky_header_menu_a_bg_color['mobile'] ), ), // Submenu CSS starts. '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_submenu_color ), ), '.ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu,.ast-header-sticked .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-link' => array( 'background-color' => esc_attr( $sticky_header_submenu_bg_color['mobile'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item > .menu-link:hover, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item:hover > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_submenu_h_color ), 'background-color' => esc_attr( $sticky_header_submenu_h_bg_color['mobile'] ), ), '[CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-item > .menu-link, [CLASS*="-sticky-header-active"] .ast-builder-menu-' . $index . ' #ast-hf-menu-' . $index . ' .sub-menu .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $mobile_sticky_primary_submenu_a_color ), 'background-color' => esc_attr( $sticky_header_submenu_a_bg_color['mobile'] ), ), ); /* Parse CSS from array() */ $parse_css .= astra_parse_css( $sticky_builder_menu_desktop_css ); $parse_css .= astra_parse_css( $sticky_builder_menu_tablet_css, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $sticky_builder_menu_mobile_css, '', astra_addon_get_mobile_breakpoint() ); } } if ( version_compare( ASTRA_THEME_VERSION, '3.2.0', '<' ) ) { $sticky_static_css = ' .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-main-header-nav-open.astra-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { position: fixed; } '; if ( is_rtl() ) { $sticky_static_css .= ' .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-main-header-nav-open.astra-hfb-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: block; } .ast-header-stick-slide-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active .ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-header-stick-slide-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-fade-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content, .ast-header-stick-scroll-active.ast-off-canvas-active .ast-main-header-nav-open.astra-hfb-header #ast-fixed-header .ast-mobile-header-wrap .ast-mobile-header-content { display: none; } .ast-primary-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-above-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content, .ast-below-sticky-header-active.ast-main-header-nav-open.astra-hfb-header #masthead > .ast-mobile-header-wrap .ast-mobile-header-content { position: fixed; } '; } $parse_css .= Astra_Enqueue_Scripts::trim_css( $sticky_static_css ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $desktop_css_output ); $parse_css .= astra_parse_css( $tablet_css_output, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $parse_css; } /** * Check backwards compatibility CSS for loading submenu below the header needs to be added. * * @since 1.6.0 * @return boolean true if CSS should be included, False if not. */ function astra_pro_sticky_header_submenu_below_header_fix() { if ( false == astra_get_option( 'submenu-below-header', true ) && false === apply_filters( 'astra_submenu_below_header_fix', false ) ) { return false; } else { return true; } } /** * For existing users, do not apply the defaut header site title color by default. * * @since 3.5.8 * @return boolean false if it is an existing user , true if not. */ function astra_addon_sticky_site_title_tagline_css_comp() { $astra_settings = get_option( ASTRA_THEME_SETTINGS ); $astra_settings['sticky-header-default-site-title-tagline-css'] = isset( $astra_settings['sticky-header-default-site-title-tagline-css'] ) ? false : true; return apply_filters( 'astra_default_site_title_tagline_css_comp', $astra_settings['sticky-header-default-site-title-tagline-css'] ); } classes/dynamic-css/site-layouts-dynamic.css.php 0000666 00000006554 15165306611 0016021 0 ustar 00 <?php /** * Sticky Header for Site Layouts Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_ext_sticky_header_with_site_layouts_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_sticky_header_with_site_layouts_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_main_meta = astra_get_option_meta( 'header-main-stick-meta' ); $stick_header_above_meta = astra_get_option_meta( 'header-above-stick-meta' ); $stick_header_below_meta = astra_get_option_meta( 'header-below-stick-meta' ); $stick_header_main = astra_get_option( 'header-main-stick' ); $stick_header_above = astra_get_option( 'header-above-stick' ); $stick_header_below = astra_get_option( 'header-below-stick' ); $site_layout = astra_get_option( 'site-layout' ); if ( ! $stick_header_main && ! $stick_header_above && ! $stick_header_below && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_above_meta ) || empty( $stick_header_below_meta ) || empty( $stick_header_main_meta ) ) ) ) { return $dynamic_css; } $parse_css = ''; $css = ''; /** * Sticky Header with Site Layouts */ $page_width = '100%'; if ( 'ast-box-layout' == $site_layout ) { $page_width = astra_get_option( 'site-layout-box-width' ) . 'px'; } if ( 'ast-padded-layout' == $site_layout ) { $padded_layout_padding = astra_get_option( 'site-layout-padded-pad' ); /** * Padded layout Desktop Spacing */ $padded_layout_spacing = array( '#ast-fixed-header' => array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'desktop' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'desktop' ), 'margin' => esc_attr( 0 ), ), ); /** * Padded layout Tablet Spacing */ $tablet_padded_layout_spacing = array( '#ast-fixed-header' => array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'tablet' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'tablet' ), 'margin' => esc_attr( 0 ), ), ); /** * Padded layout Mobile Spacing */ $mobile_padded_layout_spacing = array( '#ast-fixed-header' => array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'mobile' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'mobile' ), 'margin' => esc_attr( 0 ), ), ); $parse_css .= astra_parse_css( $padded_layout_spacing ); $parse_css .= astra_parse_css( $tablet_padded_layout_spacing, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_padded_layout_spacing, '', astra_addon_get_mobile_breakpoint() ); } $css .= '.ast-above-header, .main-header-bar, .ast-below-header {'; $css .= '-webkit-transition: all 0.2s linear;'; $css .= 'transition: all 0.2s linear;'; $css .= '}'; $css .= '.ast-above-header, .main-header-bar, .ast-below-header {'; $css .= 'max-width:' . esc_attr( $page_width ) . ';'; $css .= '}'; $parse_css .= $css; return $dynamic_css . $parse_css; } classes/dynamic-css/button-dynamic.css.php 0000666 00000022241 15165306611 0014661 0 ustar 00 <?php /** * Sticky Header Buttons Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_button_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_button_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Button Style - Theme Button / Custom Button. */ $num_of_header_button = astra_addon_builder_helper()->num_of_header_button; for ( $index = 1; $index <= $num_of_header_button; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'button-' . $index, 'header' ) ) { continue; } $_prefix = 'button' . $index; $_section = 'section-hb-button-' . $index; $selector = '.ast-header-sticked .ast-header-button-' . $index; $button_border_width = astra_get_option( 'sticky-header-' . $_prefix . '-border-size' ); $button_border_radius_fields = astra_get_option( 'sticky-header-' . $_prefix . '-border-radius-fields' ); // Normal Responsive Colors. $button_bg_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-color' ), 'desktop' ); $button_bg_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-color' ), 'tablet' ); $button_bg_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-color' ), 'mobile' ); $button_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-color' ), 'desktop' ); $button_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-color' ), 'tablet' ); $button_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-color' ), 'mobile' ); // Hover Responsive Colors. $button_bg_h_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-h-color' ), 'desktop' ); $button_bg_h_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-h-color' ), 'tablet' ); $button_bg_h_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-back-h-color' ), 'mobile' ); $button_h_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-h-color' ), 'desktop' ); $button_h_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-h-color' ), 'tablet' ); $button_h_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-text-h-color' ), 'mobile' ); // Normal Responsive Colors. $button_border_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-color' ), 'desktop' ); $button_border_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-color' ), 'tablet' ); $button_border_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-color' ), 'mobile' ); // Hover Responsive Colors. $button_border_h_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-h-color' ), 'desktop' ); $button_border_h_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-h-color' ), 'tablet' ); $button_border_h_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-' . $_prefix . '-border-h-color' ), 'mobile' ); // Border width. $button_border_width_top = isset( $button_border_width['top'] ) ? astra_get_css_value( $button_border_width['top'], 'px' ) : ''; $button_border_width_bottom = isset( $button_border_width['bottom'] ) ? astra_get_css_value( $button_border_width['bottom'], 'px' ) : ''; $button_border_width_left = isset( $button_border_width['left'] ) ? astra_get_css_value( $button_border_width['left'], 'px' ) : ''; $button_border_width_right = isset( $button_border_width['right'] ) ? astra_get_css_value( $button_border_width['right'], 'px' ) : ''; // Padding. $padding = astra_get_option( 'sticky-header-' . $_prefix . '-padding' ); /** * Button CSS. */ $css_output_desktop = array( /** * Button Colors. */ $selector . ' .ast-builder-button-wrap .ast-custom-button' => array( // Colors. 'color' => $button_color_desktop, 'background' => $button_bg_color_desktop, // Border. 'border-color' => $button_border_color_desktop, 'border-top-width' => $button_border_width_top, 'border-bottom-width' => $button_border_width_bottom, 'border-left-width' => $button_border_width_left, 'border-right-width' => $button_border_width_right, 'border-top-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'top', 'desktop' ), 'border-top-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'right', 'desktop' ), 'border-bottom-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'bottom', 'desktop' ), 'border-bottom-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'left', 'desktop' ), // Padding. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'desktop' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'desktop' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'desktop' ), ), // Hover Options. $selector . ' .ast-builder-button-wrap:hover .ast-custom-button' => array( 'color' => $button_h_color_desktop, 'background' => $button_bg_h_color_desktop, 'border-color' => $button_border_h_color_desktop, ), ); /** * Button CSS. */ $css_output_tablet = array( /** * Button Colors. */ $selector . ' .ast-builder-button-wrap .ast-custom-button' => array( // Colors. 'color' => $button_color_tablet, 'background' => $button_bg_color_tablet, 'border-color' => $button_border_color_tablet, 'border-top-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'top', 'tablet' ), 'border-top-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'right', 'tablet' ), 'border-bottom-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'bottom', 'tablet' ), 'border-bottom-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'left', 'tablet' ), // Padding. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'tablet' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'tablet' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'tablet' ), ), // Hover Options. $selector . ' .ast-builder-button-wrap:hover .ast-custom-button' => array( 'color' => $button_h_color_tablet, 'background' => $button_bg_h_color_tablet, 'border-color' => $button_border_h_color_tablet, ), ); /** * Button CSS. */ $css_output_mobile = array( /** * Button Colors. */ $selector . ' .ast-builder-button-wrap .ast-custom-button' => array( // Colors. 'color' => $button_color_mobile, 'background' => $button_bg_color_mobile, 'border-color' => $button_border_color_mobile, 'border-top-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'top', 'mobile' ), 'border-top-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'right', 'mobile' ), 'border-bottom-right-radius' => astra_responsive_spacing( $button_border_radius_fields, 'bottom', 'mobile' ), 'border-bottom-left-radius' => astra_responsive_spacing( $button_border_radius_fields, 'left', 'mobile' ), // Padding. 'padding-top' => astra_responsive_spacing( $padding, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'mobile' ), 'padding-left' => astra_responsive_spacing( $padding, 'left', 'mobile' ), 'padding-right' => astra_responsive_spacing( $padding, 'right', 'mobile' ), ), // Hover Options. $selector . ' .ast-builder-button-wrap:hover .ast-custom-button' => array( 'color' => $button_h_color_mobile, 'background' => $button_bg_h_color_mobile, 'border-color' => $button_border_h_color_mobile, ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output_desktop ); $css_output .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $css_output .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); $dynamic_css .= $css_output; } return $dynamic_css; } classes/dynamic-css/language-switcher-dynamic.css.php 0000666 00000001642 15165306611 0016761 0 ustar 00 <?php /** * Sticky Header language-switcher Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_language_switcher_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_language_switcher_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'language-switcher', 'header' ) ) { return $dynamic_css; } $css_output = array( '.ast-header-sticked .ast-lswitcher-item-header' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-language-switcher-color' ) ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $dynamic_css .= $css_output; return $dynamic_css; } classes/dynamic-css/account-dynamic.css.php 0000666 00000004650 15165306611 0015006 0 ustar 00 <?php /** * Sticky Header Social Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_account_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_account_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'account', 'header' ) ) { return $dynamic_css; } $selector = '.ast-header-sticked .ast-header-account-wrap'; // Menu colors. $menu_color = astra_get_option( 'sticky-header-account-menu-color' ); $menu_bg_color = astra_get_option( 'sticky-header-account-menu-bg-obj' ); $menu_color_hover = astra_get_option( 'sticky-header-account-menu-h-color' ); $menu_bg_color_hover = astra_get_option( 'sticky-header-account-menu-h-bg-color' ); $menu_color_active = astra_get_option( 'sticky-header-account-menu-a-color' ); $menu_bg_color_active = astra_get_option( 'sticky-header-account-menu-a-bg-color' ); /** * Account CSS. */ $account_el_css_output = array( $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not(.ast-hf-account-unfill), ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( 'fill' => esc_attr( astra_get_option( 'sticky-header-account-icon-color' ) ), ), $selector . ' .account-main-navigation ul .menu-item:hover > .menu-link, ' . $selector . ' .account-main-navigation ul .menu-item.current-menu-item:hover > .menu-link' => array( 'color' => $menu_color_hover, 'background' => $menu_bg_color_hover, ), $selector . ' .account-main-navigation ul .menu-item.current-menu-item > .menu-link' => array( 'color' => $menu_color_active, 'background' => $menu_bg_color_active, ), $selector . ' .account-main-navigation ul' => array( 'background' => $menu_bg_color, ), $selector . ' .account-main-navigation ul .menu-item .menu-link' => array( 'color' => $menu_color, ), $selector . ' .ast-header-account-text' => array( 'color' => esc_attr( astra_get_option( 'sticky-header-account-type-text-color' ) ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $account_el_css_output ); $dynamic_css .= $css_output; return $dynamic_css; } classes/dynamic-css/toggle-dynamic.css.php 0000666 00000005233 15165306611 0014631 0 ustar 00 <?php /** * Mobile Trigger - Dynamic CSS * * @package astra-builder * @since 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Mobile Trigger. */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_mobile_trigger_design_css' ); /** * Mobile Trigger - Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return String Generated dynamic CSS for Heading Colors. * * @since 3.0.0 */ function astra_sticky_mobile_trigger_design_css( $dynamic_css, $dynamic_css_filtered = '' ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'mobile-trigger', 'header', 'mobile' ) ) { return $dynamic_css; } $selector = '[CLASS*="-sticky-header-active"] .ast-header-sticked [data-section="section-header-mobile-trigger"]'; $theme_color = astra_get_option( 'theme-color' ); $trigger_bg = astra_get_option( 'sticky-header-toggle-btn-bg-color', $theme_color ); $trigger_border_color = astra_get_option( 'sticky-header-toggle-border-color', $trigger_bg ); $style = astra_get_option( 'mobile-header-toggle-btn-style' ); $default = '#ffffff'; if ( 'fill' !== $style ) { $default = $theme_color; } $icon_color = astra_get_option( 'sticky-header-toggle-btn-color', $default ); /** * Off-Canvas CSS. */ $css_output = array( $selector . ' .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg' => array( 'fill' => $icon_color, ), $selector . ' .ast-button-wrap .mobile-menu-wrap .mobile-menu' => array( // Color. 'color' => $icon_color, ), ); if ( 'fill' === $style ) { $css_output[ $selector . ' .ast-button-wrap .ast-mobile-menu-trigger-fill' ] = array( 'background' => esc_attr( $trigger_bg ), ); $css_output[ $selector . ' .ast-button-wrap .ast-mobile-menu-trigger-fill, ' . $selector . ' .ast-button-wrap .ast-mobile-menu-trigger-minimal' ] = array( // Color & Border. 'color' => esc_attr( $icon_color ), 'border' => 'none', ); } elseif ( 'outline' === $style ) { $css_output[ $selector . ' .ast-button-wrap .ast-mobile-menu-trigger-outline' ] = array( // Background. 'background' => 'transparent', 'color' => esc_attr( $icon_color ), 'border-color' => $trigger_border_color, ); } else { $css_output[ $selector . ' .ast-button-wrap .ast-mobile-menu-trigger-minimal' ] = array( 'background' => 'transparent', ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $dynamic_css .= $css_output; return $dynamic_css; } classes/dynamic-css/widget-dynamic.css.php 0000666 00000003604 15165306611 0014633 0 ustar 00 <?php /** * Sticky Header Buttons Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_widget_dynamic_css', 30 ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_widget_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $num_of_header_widgets = astra_addon_builder_helper()->num_of_header_widgets; for ( $index = 1; $index <= $num_of_header_widgets; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'widget-' . $index, 'header' ) ) { continue; } $_section = 'sidebar-widgets-header-widget-' . $index; $selector = '.ast-header-sticked .header-widget-area[data-section="sidebar-widgets-header-widget-' . $index . '"]'; /** * Copyright CSS. */ if ( Astra_Addon_Builder_Helper::apply_flex_based_css() ) { $header_widget_selector = $selector . '.header-widget-area-inner'; } else { $header_widget_selector = $selector . ' .header-widget-area-inner'; } $css_output_desktop = array( $header_widget_selector => array( 'color' => astra_get_option( 'sticky-header-widget-' . $index . '-color' ), ), $header_widget_selector . ' a' => array( 'color' => astra_get_option( 'sticky-header-widget-' . $index . '-link-color' ), ), $header_widget_selector . ' a:hover' => array( 'color' => astra_get_option( 'sticky-header-widget-' . $index . '-link-h-color' ), ), $selector . ' .widget-title' => array( 'color' => astra_get_option( 'sticky-header-widget-' . $index . '-title-color' ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output_desktop ); $dynamic_css .= $css_output; } return $dynamic_css; } classes/dynamic-css/header-sections-dynamic.css.php 0000666 00000305403 15165306611 0016427 0 ustar 00 <?php /** * Transparent Header - Dynamic CSS * * @package Astra Addon */ if ( false === astra_addon_builder_helper()->is_header_footer_builder_active && Astra_Ext_Extension::is_active( 'header-sections' ) ) { add_filter( 'astra_addon_dynamic_css', 'astra_ext_above_header_sections_dynamic_css', 30 ); } else { if ( Astra_Addon_Update_Filter_Function::astra_remove_header_sections_deps_header_builder() || ( ! Astra_Addon_Update_Filter_Function::astra_remove_header_sections_deps_header_builder() && Astra_Ext_Extension::is_active( 'header-sections' ) ) ) { add_filter( 'astra_addon_dynamic_css', 'astra_above_header_builder_sections_dynamic_css', 30 ); } } /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_above_header_builder_sections_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Set colors * * If colors extension is_active then get color from it. * Else set theme default colors. */ $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_above_meta = astra_get_option_meta( 'header-above-stick-meta' ); $stick_header_above = astra_get_option( 'header-above-stick' ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); /** * Above Header. */ $desktop_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'desktop', '' ); $tablet_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'tablet' ); $mobile_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'mobile' ); $sticky_above_header_bg_blur = astra_get_option( 'sticky-above-header-bg-blur' ); $sticky_above_header_bg_blur_intensity = astra_get_option( 'sticky-above-header-bg-blur-intensity' ); if ( ! $stick_header_above && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_above_meta ) ) ) ) { return $dynamic_css; } $above_header_sticky_selector = '.ast-above-sticky-header-active .ast-above-header.ast-header-sticked'; $parse_css = ''; /** * Sticky Header * * [1]. Sticky Header Above colors options. */ /** * Above Header. */ if ( 'none' === $sticky_header_style && ! $sticky_hide_on_scroll ) { $desktop_above_header_css_output = array( '.ast-above-header-bar.ast-header-sticked' => array( 'z-index' => 9, ), $above_header_sticky_selector => array( 'background' => esc_attr( $desktop_sticky_above_header_bg_color ), 'backdrop-filter' => $sticky_above_header_bg_blur && $sticky_above_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_above_header_bg_blur_intensity ) . 'px )' : 'unset', ), ); $tablet_above_header_css_output = array( $above_header_sticky_selector => array( 'background' => esc_attr( $tablet_sticky_above_header_bg_color ), ), ); $mobile_above_header_css_output = array( $above_header_sticky_selector => array( 'background' => esc_attr( $mobile_sticky_above_header_bg_color ), ), ); } else { // Only when Fixed Header Merkup added. $desktop_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $desktop_sticky_above_header_bg_color ), 'backdrop-filter' => $sticky_above_header_bg_blur && $sticky_above_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_above_header_bg_blur_intensity ) . 'px )' : 'unset', ), ); $tablet_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $tablet_sticky_above_header_bg_color ), ), ); $mobile_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $mobile_sticky_above_header_bg_color ), ), ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $desktop_above_header_css_output ); $parse_css .= astra_parse_css( $tablet_above_header_css_output, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_above_header_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $parse_css; } /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_above_header_sections_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Set colors * * If colors extension is_active then get color from it. * Else set theme default colors. */ $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_above_meta = astra_get_option_meta( 'header-above-stick-meta' ); $stick_header_above = astra_get_option( 'header-above-stick' ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); /** * Above Header. */ $default_desktop_sticky_above_header_bg_color = '#ffffff'; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $default_desktop_sticky_above_header_bg_color = ''; } $desktop_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'desktop', $default_desktop_sticky_above_header_bg_color ); $tablet_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'tablet' ); $mobile_sticky_above_header_bg_color = astra_get_prop( astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'mobile' ); $sticky_above_header_menu_bg_color_responsive = astra_get_option( 'sticky-above-header-menu-bg-color-responsive' ); $sticky_above_header_menu_color_responsive = astra_get_option( 'sticky-above-header-menu-color-responsive' ); $sticky_above_header_menu_h_color_responsive = astra_get_option( 'sticky-above-header-menu-h-color-responsive' ); $sticky_above_header_menu_h_a_bg_color_responsive = astra_get_option( 'sticky-above-header-menu-h-a-bg-color-responsive' ); $sticky_above_header_submenu_bg_color_responsive = astra_get_option( 'sticky-above-header-submenu-bg-color-responsive' ); $sticky_above_header_submenu_color_responsive = astra_get_option( 'sticky-above-header-submenu-color-responsive' ); $sticky_above_header_submenu_h_color_responsive = astra_get_option( 'sticky-above-header-submenu-h-color-responsive' ); $sticky_above_header_submenu_h_a_bg_color_responsive = astra_get_option( 'sticky-above-header-submenu-h-a-bg-color-responsive' ); $sticky_above_content_section_text_color = astra_get_option( 'sticky-above-header-content-section-text-color-responsive' ); $sticky_above_content_section_link_color = astra_get_option( 'sticky-above-header-content-section-link-color-responsive' ); $sticky_above_content_section_link_h_color = astra_get_option( 'sticky-above-header-content-section-link-h-color-responsive' ); if ( ! $stick_header_above && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_above_meta ) ) ) ) { return $dynamic_css; } $above_header_sticky_selector = '.ast-above-sticky-header-active .ast-above-header-wrap .ast-above-header'; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $above_header_sticky_selector = '.ast-above-sticky-header-active .ast-above-header.ast-header-sticked'; } $parse_css = ''; /** * Sticky Header * * [1]. Sticky Header Above colors options. */ /** * Above Header. */ if ( 'none' === $sticky_header_style && ! $sticky_hide_on_scroll ) { $desktop_above_header_css_output = array( '.ast-above-header-bar.ast-header-sticked' => array( 'z-index' => 9, ), $above_header_sticky_selector => array( 'background' => esc_attr( $desktop_sticky_above_header_bg_color ), ), '.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation > ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu,.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .menu-link, .ast-header-break-point .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['desktop'] ), ), /** * Above Header Dropdown Navigation */ '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .submenu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['desktop'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['desktop'] ), ), // Content Section text color. '.ast-above-sticky-header-active .ast-above-header-section .user-select, .ast-above-sticky-header-active .ast-above-header-section .widget, .ast-above-sticky-header-active .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['desktop'] ), ), // Content Section link color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a, .ast-above-sticky-header-active .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['desktop'] ), ), // Content Section link hover color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a:hover, .ast-above-sticky-header-active .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['desktop'] ), ), ); $tablet_above_header_css_output = array( $above_header_sticky_selector => array( 'background' => esc_attr( $tablet_sticky_above_header_bg_color ), ), '.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation > ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu,.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .menu-link, .ast-header-break-point .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['tablet'] ), ), /** * Above Header Dropdown Navigation */ '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .submenu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['tablet'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['tablet'] ), ), // Content Section text color. '.ast-above-sticky-header-active .ast-above-header-section .user-select, .ast-above-sticky-header-active .ast-above-header-section .widget, .ast-above-sticky-header-active .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['tablet'] ), ), // Content Section link color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a, .ast-above-sticky-header-active .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['tablet'] ), ), // Content Section link hover color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a:hover, .ast-above-sticky-header-active .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['tablet'] ), ), ); $mobile_above_header_css_output = array( $above_header_sticky_selector => array( 'background' => esc_attr( $mobile_sticky_above_header_bg_color ), ), '.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation > ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field, .ast-above-sticky-header-active .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu,.ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .menu-link, .ast-header-break-point .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,.ast-above-sticky-header-active .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['mobile'] ), ), /** * Above Header Dropdown Navigation */ '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-above-sticky-header-active .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .sub-menu, .ast-header-break-point.ast-above-sticky-header-active .ast-above-header-section-separated .ast-above-header-navigation .submenu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['mobile'] ), ), '.ast-above-sticky-header-active .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, .ast-above-sticky-header-active .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['mobile'] ), ), // Content Section text color. '.ast-above-sticky-header-active .ast-above-header-section .user-select, .ast-above-sticky-header-active .ast-above-header-section .widget, .ast-above-sticky-header-active .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['mobile'] ), ), // Content Section link color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a, .ast-above-sticky-header-active .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['mobile'] ), ), // Content Section link hover color. '.ast-above-sticky-header-active .ast-above-header-section .user-select a:hover, .ast-above-sticky-header-active .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['mobile'] ), ), ); } else { // Only when Fixed Header Merkup added. $desktop_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $desktop_sticky_above_header_bg_color ), ), '.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-menu,.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .menu-link, #ast-fixed-header .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['desktop'] ), ), /** * Above Header Dropdown Navigation */ '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, #ast-fixed-header .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['desktop'] ), ), // Content Section text color. '#ast-fixed-header .ast-above-header-section .user-select, #ast-fixed-header .ast-above-header-section .widget, #ast-fixed-header .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['desktop'] ), ), // Content Section link color. '#ast-fixed-header .ast-above-header-section .user-select a, #ast-fixed-header .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['desktop'] ), ), // Content Section link hover color. '#ast-fixed-header .ast-above-header-section .user-select a:hover, #ast-fixed-header .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['desktop'] ), ), ); $tablet_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $tablet_sticky_above_header_bg_color ), ), '.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-menu,.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .menu-link, #ast-fixed-header .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['tablet'] ), ), /** * Above Header Dropdown Navigation */ '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, #ast-fixed-header .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['tablet'] ), ), // Content Section text color. '#ast-fixed-header .ast-above-header-section .user-select, #ast-fixed-header .ast-above-header-section .widget, #ast-fixed-header .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['tablet'] ), ), // Content Section link color. '#ast-fixed-header .ast-above-header-section .user-select a, #ast-fixed-header .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['tablet'] ), ), // Content Section link hover color. '#ast-fixed-header .ast-above-header-section .user-select a:hover, #ast-fixed-header .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['tablet'] ), ), ); $mobile_above_header_css_output = array( '#ast-fixed-header .ast-above-header' => array( 'background' => esc_attr( $mobile_sticky_above_header_bg_color ), ), '.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation, .ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation ul' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field, #ast-fixed-header .ast-above-header .ast-search-menu-icon .search-field:focus' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-menu,.ast-header-break-point #ast-fixed-header .ast-above-header-section-separated .ast-above-header-navigation .ast-above-header-menu' => array( 'background-color' => esc_attr( $sticky_above_header_menu_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .menu-link, #ast-fixed-header .ast-above-header-navigation > .ast-above-header-menu > .menu-item-has-children:not(.current-menu-item) > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_menu_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-navigation .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-item > .menu-link,#ast-fixed-header .ast-above-header-navigation .menu-item.current-menu-ancestor > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_menu_h_a_bg_color_responsive['mobile'] ), ), /** * Above Header Dropdown Navigation */ '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .menu-link,#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-above-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_above_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_above_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_above_header_submenu_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-above-header-navigation .ast-above-header-menu .sub-menu .menu-link, #ast-fixed-header .ast-above-header-navigation .sub-menu' => array( 'color' => esc_attr( $sticky_above_header_submenu_color_responsive['mobile'] ), ), // Content Section text color. '#ast-fixed-header .ast-above-header-section .user-select, #ast-fixed-header .ast-above-header-section .widget, #ast-fixed-header .ast-above-header-section .widget-title' => array( 'color' => esc_attr( $sticky_above_content_section_text_color['mobile'] ), ), // Content Section link color. '#ast-fixed-header .ast-above-header-section .user-select a, #ast-fixed-header .ast-above-header-section .widget a' => array( 'color' => esc_attr( $sticky_above_content_section_link_color['mobile'] ), ), // Content Section link hover color. '#ast-fixed-header .ast-above-header-section .user-select a:hover, #ast-fixed-header .ast-above-header-section .widget a:hover' => array( 'color' => esc_attr( $sticky_above_content_section_link_h_color['mobile'] ), ), ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $desktop_above_header_css_output ); $parse_css .= astra_parse_css( $tablet_above_header_css_output, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_above_header_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $parse_css; } if ( false === astra_addon_builder_helper()->is_header_footer_builder_active && Astra_Ext_Extension::is_active( 'header-sections' ) ) { add_filter( 'astra_addon_dynamic_css', 'astra_ext_below_header_sections_dynamic_css', 30 ); } else { if ( Astra_Addon_Update_Filter_Function::astra_remove_header_sections_deps_header_builder() || ( ! Astra_Addon_Update_Filter_Function::astra_remove_header_sections_deps_header_builder() && Astra_Ext_Extension::is_active( 'header-sections' ) ) ) { add_filter( 'astra_addon_dynamic_css', 'astra_below_header_builder_sections_dynamic_css', 30 ); } } /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_below_header_builder_sections_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Set colors * * If colors extension is_active then get color from it. * Else set theme default colors. */ $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_below_meta = astra_get_option_meta( 'header-below-stick-meta' ); $stick_header_below = astra_get_option( 'header-below-stick' ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); /** * Below Header. */ $desktop_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'desktop', '#414042' ); $tablet_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'tablet' ); $mobile_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'mobile' ); $sticky_below_header_bg_blur = astra_get_option( 'sticky-below-header-bg-blur' ); $sticky_below_header_bg_blur_intensity = astra_get_option( 'sticky-below-header-bg-blur-intensity' ); if ( ! $stick_header_below && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_below_meta ) ) ) ) { return $dynamic_css; } $parse_css = ''; /** * Sticky Header * * [1]. Sticky Header Below colors options. */ /** * Below Header. */ if ( 'none' === $sticky_header_style && ! $sticky_hide_on_scroll ) { $desktop_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $desktop_sticky_below_header_bg_color ), 'backdrop-filter' => $sticky_below_header_bg_blur && $sticky_below_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_below_header_bg_blur_intensity ) . 'px )' : 'unset', ), ); $tablet_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $tablet_sticky_below_header_bg_color ), ), ); $mobile_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $mobile_sticky_below_header_bg_color ), ), ); } else { // Only when Fixed Header Merkup added. $desktop_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $desktop_sticky_below_header_bg_color ), 'backdrop-filter' => $sticky_below_header_bg_blur && $sticky_below_header_bg_blur_intensity ? 'blur(' . esc_attr( $sticky_below_header_bg_blur_intensity ) . 'px )' : 'unset', ), ); $tablet_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $tablet_sticky_below_header_bg_color ), ), ); $mobile_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $mobile_sticky_below_header_bg_color ), ), ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $desktop_below_header_css_output ); $parse_css .= astra_parse_css( $tablet_below_header_css_output, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_below_header_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $parse_css; } /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_below_header_sections_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Set colors * * If colors extension is_active then get color from it. * Else set theme default colors. */ $stick_header = astra_get_option_meta( 'stick-header-meta' ); $stick_header_below_meta = astra_get_option_meta( 'header-below-stick-meta' ); $stick_header_below = astra_get_option( 'header-below-stick' ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); /** * Below Header. */ $default_sticky_below_header_bg_color = ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? '' : '#414042'; $desktop_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'desktop', $default_sticky_below_header_bg_color ); $tablet_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'tablet' ); $mobile_sticky_below_header_bg_color = astra_get_prop( astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'mobile' ); $sticky_below_header_menu_bg_color_responsive = astra_get_option( 'sticky-below-header-menu-bg-color-responsive' ); $sticky_below_header_menu_color_responsive = astra_get_option( 'sticky-below-header-menu-color-responsive' ); $sticky_below_header_menu_h_color_responsive = astra_get_option( 'sticky-below-header-menu-h-color-responsive' ); $sticky_below_header_menu_h_a_bg_color_responsive = astra_get_option( 'sticky-below-header-menu-h-a-bg-color-responsive' ); $sticky_below_header_submenu_bg_color_responsive = astra_get_option( 'sticky-below-header-submenu-bg-color-responsive' ); $sticky_below_header_submenu_color_responsive = astra_get_option( 'sticky-below-header-submenu-color-responsive' ); $sticky_below_header_submenu_h_color_responsive = astra_get_option( 'sticky-below-header-submenu-h-color-responsive' ); $sticky_below_header_submenu_h_a_bg_color_responsive = astra_get_option( 'sticky-below-header-submenu-h-a-bg-color-responsive' ); $sticky_below_content_section_text_color = astra_get_option( 'sticky-below-header-content-section-text-color-responsive' ); $sticky_below_content_section_link_color = astra_get_option( 'sticky-below-header-content-section-link-color-responsive' ); $sticky_below_content_section_link_h_color = astra_get_option( 'sticky-below-header-content-section-link-h-color-responsive' ); if ( ! $stick_header_below && ( 'disabled' !== $stick_header && empty( $stick_header ) && ( empty( $stick_header_below_meta ) ) ) ) { return $dynamic_css; } $parse_css = ''; /** * Sticky Header * * [1]. Sticky Header Below colors options. */ /** * Below Header. */ if ( 'none' === $sticky_header_style && ! $sticky_hide_on_scroll ) { $desktop_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $desktop_sticky_below_header_bg_color ), ), '.ast-below-sticky-header-active .ast-below-header-actual-nav, .ast-flyout-below-menu-enable.ast-header-break-point.ast-below-sticky-header-active .ast-below-header-actual-nav.ast-below-header-actual-nav, .ast-header-break-point .ast-below-header-section-separated .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['desktop'] ), ), '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation-wrap' => array( 'background' => esc_attr( $sticky_below_header_menu_bg_color_responsive['desktop'] ), ), /** * Below Header Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu, .ast-below-sticky-header-active .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['desktop'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link, .ast-desktop .ast-mega-menu-enabled.ast-below-header-menu .menu-item .menu-link:hover' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['desktop'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['desktop'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['desktop'] ), ), /** * Below Header Dropdown Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '.ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '.ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'background-color' => 'transparent', ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['desktop'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['desktop'] ), ), // Content Section text color. '.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['desktop'] ), ), // Content Section link color. '.ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['desktop'] ), ), // Content Section link hover color. '.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['desktop'] ), ), ); $tablet_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $tablet_sticky_below_header_bg_color ), ), '.ast-below-sticky-header-active .ast-below-header-actual-nav, .ast-flyout-below-menu-enable.ast-header-break-point.ast-below-sticky-header-active .ast-below-header-actual-nav.ast-below-header-actual-nav, .ast-header-break-point .ast-below-header-section-separated .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['tablet'] ), ), '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation-wrap' => array( 'background' => esc_attr( $sticky_below_header_menu_bg_color_responsive['tablet'] ), ), /** * Below Header Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu, .ast-below-sticky-header-active .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['tablet'] ), ), /** * Below Header Dropdown Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '.ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['tablet'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['tablet'] ), ), // Content Section text color. '.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['tablet'] ), ), // Content Section link color. '.ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['tablet'] ), ), // Content Section link hover color. '.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['tablet'] ), ), ); $mobile_below_header_css_output = array( '.ast-below-sticky-header-active .ast-below-header-wrap .ast-below-header' => array( 'background' => esc_attr( $mobile_sticky_below_header_bg_color ), ), '.ast-below-sticky-header-active .ast-below-header-actual-nav, .ast-flyout-below-menu-enable.ast-header-break-point.ast-below-sticky-header-active .ast-below-header-actual-nav.ast-below-header-actual-nav, .ast-header-break-point .ast-below-header-section-separated .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['mobile'] ), ), '.ast-fullscreen-below-menu-enable.ast-header-break-point .ast-below-header-navigation-wrap' => array( 'background' => esc_attr( $sticky_below_header_menu_bg_color_responsive['mobile'] ), ), /** * Below Header Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu, .ast-below-sticky-header-active .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['mobile'] ), ), /** * Below Header Dropdown Navigation */ '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '.ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:hover, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item:focus, .ast-fullscreen-below-menu-enable.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.focus' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['mobile'] ), ), '.ast-below-sticky-header-active .ast-below-header-menu .sub-menu, .ast-below-sticky-header-active .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['mobile'] ), ), // Content Section text color. '.ast-below-sticky-header-active .below-header-user-select, .ast-below-sticky-header-active .below-header-user-select .widget,.ast-below-sticky-header-active .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['mobile'] ), ), // Content Section link color. '.ast-below-sticky-header-active .below-header-user-select a, .ast-below-sticky-header-active .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['mobile'] ), ), // Content Section link hover color. '.ast-below-sticky-header-active .below-header-user-select a:hover, .ast-below-sticky-header-active .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['mobile'] ), ), ); } else { // Only when Fixed Header Merkup added. $desktop_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $desktop_sticky_below_header_bg_color ), ), '#ast-fixed-header .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['desktop'] ), ), /** * Below Header Navigation */ '#ast-fixed-header .ast-below-header-menu, #ast-fixed-header .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['desktop'] ), ), /** * Below Header Dropdown Navigation */ '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['desktop'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['desktop'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['desktop'] ), ), // Content Section text color. '#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['desktop'] ), ), // Content Section link color. '#ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['desktop'] ), ), // Content Section link hover color. '#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['desktop'] ), ), ); $tablet_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $tablet_sticky_below_header_bg_color ), ), '#ast-fixed-header .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['tablet'] ), ), /** * Below Header Navigation */ '#ast-fixed-header .ast-below-header-menu, #ast-fixed-header .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['tablet'] ), ), /** * Below Header Dropdown Navigation */ '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['tablet'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['tablet'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['tablet'] ), ), // Content Section text color. '#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['tablet'] ), ), // Content Section link color. '#ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['tablet'] ), ), // Content Section link hover color. '#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['tablet'] ), ), ); $mobile_below_header_css_output = array( '#ast-fixed-header .ast-below-header' => array( 'background' => esc_attr( $mobile_sticky_below_header_bg_color ), ), '#ast-fixed-header .ast-below-header-actual-nav' => array( 'background-color' => esc_attr( $sticky_below_header_menu_bg_color_responsive['mobile'] ), ), /** * Below Header Navigation */ '#ast-fixed-header .ast-below-header-menu, #ast-fixed-header .ast-below-header-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .ast-menu-toggle, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .ast-menu-toggle' => array( 'color' => esc_attr( $sticky_below_header_menu_h_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'background-color' => esc_attr( $sticky_below_header_menu_h_a_bg_color_responsive['mobile'] ), ), /** * Below Header Dropdown Navigation */ '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-ancestor.focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:hover > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item:focus > .menu-link, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-item.current-menu-item.focus > .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_h_color_responsive['mobile'] ), 'background-color' => esc_attr( $sticky_below_header_submenu_h_a_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu' => array( 'background-color' => esc_attr( $sticky_below_header_submenu_bg_color_responsive['mobile'] ), ), '#ast-fixed-header .ast-below-header-menu .sub-menu, #ast-fixed-header .ast-below-header-menu .sub-menu .menu-link' => array( 'color' => esc_attr( $sticky_below_header_submenu_color_responsive['mobile'] ), ), // Content Section text color. '#ast-fixed-header .below-header-user-select, #ast-fixed-header .below-header-user-select .widget,#ast-fixed-header .below-header-user-select .widget-title' => array( 'color' => esc_attr( $sticky_below_content_section_text_color['mobile'] ), ), // Content Section link color. '#ast-fixed-header .below-header-user-select a, #ast-fixed-header .below-header-user-select .widget a' => array( 'color' => esc_attr( $sticky_below_content_section_link_color['mobile'] ), ), // Content Section link hover color. '#ast-fixed-header .below-header-user-select a:hover, #ast-fixed-header .below-header-user-select .widget a:hover' => array( 'color' => esc_attr( $sticky_below_content_section_link_h_color['mobile'] ), ), ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $desktop_below_header_css_output ); $parse_css .= astra_parse_css( $tablet_below_header_css_output, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_below_header_css_output, '', astra_addon_get_mobile_breakpoint() ); return $dynamic_css . $parse_css; } classes/dynamic-css/social-dynamic.css.php 0000666 00000015702 15165306611 0014624 0 ustar 00 <?php /** * Sticky Header Social Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_social_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_social_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $num_of_header_social_icons = astra_addon_builder_helper()->num_of_header_social_icons; for ( $index = 1; $index <= $num_of_header_social_icons; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'social-icons-' . $index, 'header' ) ) { continue; } $selector = '.ast-header-sticked .ast-header-social-' . $index . '-wrap'; $_section = 'section-hb-social-icons-' . $index; // Normal Responsive Colors. $color_type = astra_get_option( 'header-social-' . $index . '-color-type' ); $social_icons_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-color' ), 'desktop' ); $social_icons_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-color' ), 'tablet' ); $social_icons_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-color' ), 'mobile' ); // Hover Responsive Colors. $social_icons_h_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-h-color' ), 'desktop' ); $social_icons_h_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-h-color' ), 'tablet' ); $social_icons_h_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-h-color' ), 'mobile' ); // Normal Responsive Bg Colors. $social_icons_bg_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-color' ), 'desktop' ); $social_icons_bg_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-color' ), 'tablet' ); $social_icons_bg_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-color' ), 'mobile' ); // Hover Responsive Bg Colors. $social_icons_h_bg_color_desktop = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-h-color' ), 'desktop' ); $social_icons_h_bg_color_tablet = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-h-color' ), 'tablet' ); $social_icons_h_bg_color_mobile = astra_get_prop( astra_get_option( 'sticky-header-social-' . $index . '-bg-h-color' ), 'mobile' ); /** * Social Icon CSS. */ $css_output_desktop = array(); if ( 'custom' === $color_type ) { $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['color'] = $social_icons_color_desktop; $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element .social-item-label' ]['color'] = $social_icons_color_desktop; $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' ]['color'] = $social_icons_h_color_desktop; $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element svg' ]['fill'] = $social_icons_color_desktop; $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['background'] = $social_icons_bg_color_desktop; $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover' ] = array( // Hover. 'color' => $social_icons_h_color_desktop, 'background' => $social_icons_h_bg_color_desktop, ); $css_output_desktop[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover svg' ] = array( 'fill' => $social_icons_h_color_desktop, ); } /** * Social_icons CSS. */ $css_output_tablet = array(); if ( 'custom' === $color_type ) { $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['color'] = $social_icons_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element svg' ]['fill'] = $social_icons_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element .social-item-label' ]['color'] = $social_icons_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' ]['color'] = $social_icons_h_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['background'] = $social_icons_bg_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover' ] = array( // Hover. 'color' => $social_icons_h_color_tablet, 'background' => $social_icons_h_bg_color_tablet, ); $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover svg' ] = array( 'fill' => $social_icons_h_color_tablet, ); } /** * Social_icons CSS. */ $css_output_mobile = array(); if ( 'custom' === $color_type ) { $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['color'] = $social_icons_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element svg' ]['fill'] = $social_icons_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element .social-item-label' ]['color'] = $social_icons_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover .social-item-label' ]['color'] = $social_icons_h_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element' ]['background'] = $social_icons_bg_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover' ] = array( // Hover. 'color' => $social_icons_h_color_mobile, 'background' => $social_icons_h_bg_color_mobile, ); $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-builder-social-element:hover svg' ] = array( 'fill' => $social_icons_h_color_mobile, ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output_desktop ); $css_output .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); $css_output .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); $dynamic_css .= $css_output; } return $dynamic_css; } classes/dynamic-css/divider-dynamic.css.php 0000666 00000002222 15165306611 0014771 0 ustar 00 <?php /** * Sticky Header divider Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_sticky_header_divider_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_sticky_header_divider_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $num_of_header_divider = astra_addon_builder_helper()->num_of_header_divider; for ( $index = 1; $index <= $num_of_header_divider; $index++ ) { if ( ! Astra_Addon_Builder_Helper::is_component_loaded( 'divider-' . $index, 'header' ) ) { continue; } $selector = '.ast-header-sticked .site-header-section .ast-builder-layout-element.ast-header-divider-' . $index; $css_output = array( $selector . ' .ast-divider-wrapper' => array( 'border-color' => esc_attr( astra_get_option( 'sticky-header-divider-' . $index . '-color' ) ), ), ); /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $dynamic_css .= $css_output; } return $dynamic_css; } classes/index.php 0000666 00000000176 15165306611 0010035 0 ustar 00 <?php /** * Index file * * @package Astra Addon * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/class-astra-sticky-header-panels-configs.php 0000666 00000003067 15165306611 0016605 0 ustar 00 <?php /** * Sticky Header - Panels & Sections * * @package Astra Addon */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Panels_Configs' ) ) { /** * Register Sticky Header Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Panels_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-sticky-header'; $_config = array( array( 'name' => $_section, 'title' => __( 'Sticky Header', 'astra-addon' ), 'panel' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? 'panel-header-builder-group' : 'panel-header-group', 'priority' => 31, 'type' => 'section', ), ); return array_merge( $configurations, $_config ); } } } new Astra_Sticky_Header_Panels_Configs(); classes/sections/class-astra-sticky-header-colors-bg-configs.php 0000666 00000021320 15165306611 0021031 0 ustar 00 <?php /** * Sticky Header Colors Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Colors_Bg_Configs' ) ) { /** * Register Sticky Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Colors_Bg_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_config = array( /** * Option: Primary Menu Color */ array( 'name' => 'sticky-header-menu-color-responsive', 'default' => astra_get_option( 'sticky-header-menu-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-link-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Menu Background Color */ array( 'name' => 'sticky-header-menu-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-menu-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-header-menu-h-color-responsive', 'default' => astra_get_option( 'sticky-header-menu-h-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-link-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-menu-h-color-responsive]', ), /** * Option: Menu Link / Hover Background Color */ array( 'name' => 'sticky-header-menu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-menu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Primary Menu Color */ array( 'name' => 'sticky-header-submenu-color-responsive', 'default' => astra_get_option( 'sticky-header-submenu-color-responsive' ), 'type' => 'sub-control', 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-link-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-submenu-color-responsive]', ), /** * Option: SubMenu Background Color */ array( 'name' => 'sticky-header-submenu-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-submenu-bg-color-responsive' ), 'type' => 'sub-control', 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-background-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), // Option: Divider. array( 'name' => 'divider-sticky-priamry-submenu-h-menu-colors', 'control' => 'ast-divider', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-colors]', 'section' => 'section-sticky-header', 'title' => __( 'Active / Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 5, 'settings' => array(), ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-header-submenu-h-color-responsive', 'default' => astra_get_option( 'sticky-header-submenu-h-color-responsive' ), 'type' => 'sub-control', 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-link-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-submenu-h-color-responsive]', ), /** * Option: SubMenu Link / Hover Background Color */ array( 'name' => 'sticky-header-submenu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-submenu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-background-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-submenu-h-a-bg-color-responsive]', ), /** * Option: Content Section Link color. */ array( 'name' => 'sticky-header-content-section-link-color-responsive', 'default' => astra_get_option( 'sticky-header-content-section-link-color-responsive' ), 'type' => 'sub-control', 'priority' => 21, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-outside-item-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-content-section-link-color-responsive]', ), /** * Option: Content Section Link Hover color. */ array( 'name' => 'sticky-header-content-section-link-h-color-responsive', 'default' => astra_get_option( 'sticky-header-content-section-link-h-color-responsive' ), 'type' => 'sub-control', 'priority' => 22, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-outside-item-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-content-section-link-h-color-responsive]', ), ); return array_merge( $configurations, $_config ); } } } new Astra_Sticky_Header_Colors_Bg_Configs(); classes/sections/index.php 0000666 00000000176 15165306611 0011664 0 ustar 00 <?php /** * Index file * * @package Astra Addon * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-sticky-header-search-configs.php 0000666 00000015142 15165306611 0020414 0 ustar 00 <?php /** * Sticky Header - Search Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Search_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Search_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-header-search'; $_configs = array( /** * Option: Sticky Header Search Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-search-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 10, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), ), /** * Option: Search text/placeholder Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-search-text-placeholder-color]', 'default' => astra_get_option( 'sticky-header-search-text-placeholder-color' ), 'transport' => 'postMessage', 'type' => 'control', 'section' => $_section, 'control' => 'ast-color', 'priority' => 20, 'title' => __( 'Text / Placeholder Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-search-box-type]', 'operator' => 'in', 'value' => array( 'slide-search', 'search-box' ), ), ), ), /** * Option: Search icon Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-search-icon-color-parent]', 'default' => astra_get_option( 'sticky-header-search-icon-color-parent' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Icon Color', 'astra-addon' ), 'section' => 'section-header-search', 'transport' => 'postMessage', 'priority' => 20, 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Search Color. */ array( 'name' => 'sticky-header-search-icon-color', 'default' => astra_get_option( 'sticky-header-search-icon-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-search-icon-color-parent]', 'section' => $_section, 'priority' => 20, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Search Color. */ array( 'name' => 'sticky-header-search-icon-h-color', 'default' => astra_get_option( 'sticky-header-search-icon-h-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-search-icon-color-parent]', 'section' => $_section, 'priority' => 20, 'transport' => 'postMessage', 'control' => 'ast-color', 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Search bg Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-search-bg-color-parent]', 'default' => astra_get_option( 'sticky-header-search-bg-color-parent' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Box Background', 'astra-addon' ), 'section' => 'section-header-search', 'transport' => 'postMessage', 'priority' => 20, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-search-box-type]', 'operator' => 'in', 'value' => array( 'slide-search', 'search-box' ), ), ), ), /** * Search Box Background Color */ array( 'name' => 'sticky-header-search-box-background-color', 'default' => astra_get_option( 'sticky-header-search-box-background-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-search-bg-color-parent]', 'section' => $_section, 'priority' => 1, 'transport' => 'postMessage', 'control' => 'ast-color', 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Search Box Background hover Color */ array( 'name' => 'sticky-header-search-box-background-h-color', 'default' => astra_get_option( 'sticky-header-search-box-background-h-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-search-bg-color-parent]', 'section' => $_section, 'priority' => 2, 'transport' => 'postMessage', 'control' => 'ast-color', 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Sticky_Header_Search_Configs(); classes/sections/class-astra-sticky-above-header-colors-bg-configs.php 0000666 00000043064 15165306611 0022134 0 ustar 00 <?php /** * Sticky Header - Above Header Colors Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Above_Header_Colors_Bg_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Above_Header_Colors_Bg_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $header_above_section = 'section-sticky-header'; $header_above_color_priority = 60; $context = astra_addon_builder_helper()->general_tab_config; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $header_above_section = 'section-above-header-builder'; $header_above_color_priority = 85; $context = astra_addon_builder_helper()->design_tab; $_config = array( array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'type' => 'control', 'priority' => $header_above_color_priority, 'section' => $header_above_section, 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Background Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => $context, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Sticky Background Blur. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-bg-blur]', 'default' => astra_get_option( 'sticky-above-header-bg-blur' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'title' => __( 'Background Blur', 'astra-addon' ), 'priority' => $header_above_color_priority, 'section' => $header_above_section, 'context' => $context, 'description' => __( 'Background blur is dependent on the background color opacity', 'astra-addon' ), ), /** * Option: Sticky Background Blur Intensity. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-bg-blur-intensity]', 'default' => astra_get_option( 'sticky-above-header-bg-blur-intensity' ), 'type' => 'control', 'priority' => $header_above_color_priority, 'section' => $header_above_section, 'title' => __( 'Background Blur Intensity', 'astra-addon' ), 'control' => 'ast-slider', 'suffix' => 'px', 'context' => array( astra_addon_builder_helper()->design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[sticky-above-header-bg-blur]', 'operator' => '==', 'value' => true, ), ), 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 20, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); } else { $_config = array( array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-above-header-bg-color-responsive' ), 'type' => 'control', 'priority' => $header_above_color_priority, 'section' => $header_above_section, 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Background Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => $context, ), /** * Option: Primary Menu Color */ array( 'name' => 'sticky-above-header-menu-color-responsive', 'default' => astra_get_option( 'sticky-above-header-menu-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Background Color */ array( 'name' => 'sticky-above-header-menu-bg-color-responsive', 'default' => astra_get_option( 'sticky-above-header-menu-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-above-header-menu-h-color-responsive', 'default' => astra_get_option( 'sticky-above-header-menu-h-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Link / Hover Background Color */ array( 'name' => 'sticky-above-header-menu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-above-header-menu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Primary Menu Color */ array( 'name' => 'sticky-above-header-submenu-color-responsive', 'default' => astra_get_option( 'sticky-above-header-submenu-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: SubMenu Background Color */ array( 'name' => 'sticky-above-header-submenu-bg-color-responsive', 'default' => astra_get_option( 'sticky-above-header-submenu-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-above-header-submenu-h-color-responsive', 'default' => astra_get_option( 'sticky-above-header-submenu-h-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: SubMenu Link / Hover Background Color */ array( 'name' => 'sticky-above-header-submenu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-above-header-submenu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Active/Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Content Section Text color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-content-section-text-color-responsive]', 'default' => astra_get_option( 'sticky-above-header-content-section-text-color-responsive' ), 'type' => 'control', 'priority' => 74, 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Text', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Content', 'astra-addon' ), ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->is_header_footer_builder_active ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => 'in', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => 'in', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), ), ), ), /** * Option: Content Section Link color. */ array( 'name' => 'sticky-above-header-content-section-link-color-responsive', 'default' => astra_get_option( 'sticky-above-header-content-section-link-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 19, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-outside-item-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), ), ), /** * Option: Content Section Link Hover color. */ array( 'name' => 'sticky-above-header-content-section-link-h-color-responsive', 'default' => astra_get_option( 'sticky-above-header-content-section-link-h-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 20, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-above-outside-item-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => array( 'search', 'widget', 'text-html', 'edd' ), ), ), ), ); } return array_merge( $configurations, $_config ); } } } new Astra_Sticky_Above_Header_Colors_Bg_Configs(); classes/sections/class-astra-sticky-header-button-configs.php 0000666 00000027264 15165306611 0020472 0 ustar 00 <?php /** * Sticky Header - Button Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Button_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Button_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $html_config = array(); $main_stick = astra_get_option( 'header-main-stick' ); $above_stick = astra_get_option( 'header-above-stick' ); $below_stick = astra_get_option( 'header-below-stick' ); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = 'section-hb-button-' . $index; $_prefix = 'button' . $index; $_configs = array( /** * Option: Sticky Header Button Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Options', 'astra-addon' ), 'settings' => array(), 'priority' => 100, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Group: Primary Header Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-text-color-group]', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-color-group' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Text Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 101, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-color-group]', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-color-group' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 101, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, ), /** * Option: Button Text Color */ array( 'name' => 'sticky-header-' . $_prefix . '-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-text-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 10, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'sticky-header-' . $_prefix . '-text-h-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-text-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 10, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), ), /** * Option: Button Background Color */ array( 'name' => 'sticky-header-' . $_prefix . '-back-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 10, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'sticky-header-' . $_prefix . '-back-h-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 10, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), ), // Padding. array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-padding]', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-padding' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $_section, 'priority' => 120, 'title' => __( 'Sticky Header Padding', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->design_tab, ), /** * Option: Button Border Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-border-size]', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-border-size' ), 'type' => 'control', 'section' => $_section, 'control' => 'ast-border', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 120, 'title' => __( 'Border Width', 'astra-addon' ), 'context' => astra_addon_builder_helper()->design_tab, 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[header-' . $_prefix . '-button-border-colors-group]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Border Color', 'astra-addon' ), 'section' => $_section, 'priority' => 110, 'transport' => 'postMessage', 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Button Border Color */ array( 'name' => 'sticky-header-' . $_prefix . '-border-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-border-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[header-' . $_prefix . '-button-border-colors-group]', 'transport' => 'postMessage', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 110, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'sticky-header-' . $_prefix . '-border-h-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-border-h-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[header-' . $_prefix . '-button-border-colors-group]', 'transport' => 'postMessage', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 110, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Hover', 'astra-addon' ), ), /** * Option: Button Radius Fields */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-border-radius-fields]', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-border-radius-fields' ), 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => $_section, 'title' => __( 'Border Radius', 'astra-addon' ), 'linked_choices' => true, 'transport' => 'postMessage', 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'priority' => 120, 'context' => astra_addon_builder_helper()->design_tab, 'connected' => false, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), ); $html_config[] = $_configs; } $html_config = call_user_func_array( 'array_merge', $html_config + array( array() ) ); $configurations = array_merge( $configurations, $html_config ); return $configurations; } } } new Astra_Sticky_Header_Button_Configs(); classes/sections/class-astra-sticky-header-sections-configs.php 0000666 00000005553 15165306611 0021003 0 ustar 00 <?php /** * Sticky Header - Header Sections Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Sections_Configs' ) ) { /** * Register Sticky Header - Header Sections Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Sections_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header - Header Sections Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_config = array( /** * Header Button - Sticky */ array( 'name' => 'section-header-button-sticky', 'type' => 'section', 'priority' => 10, 'title' => __( 'Sticky Header Button', 'astra-addon' ), 'section' => 'section-header-button', ), ); if ( Astra_Sticky_Header_Configs::is_header_section_active() ) { $_config[] = array( 'name' => ASTRA_THEME_SETTINGS . '[header-above-stick]', 'default' => astra_get_option( 'header-above-stick' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Stick Above Header', 'astra-addon' ), 'priority' => 5, 'control' => Astra_Theme_Extension::$switch_control, 'context' => ! astra_addon_builder_helper()->is_header_footer_builder_active ? array( ASTRA_THEME_SETTINGS . '[above-header-layout]', '!=', 'disabled' ) : '', 'transport' => 'refresh', ); $_config[] = array( 'name' => ASTRA_THEME_SETTINGS . '[header-below-stick]', 'default' => astra_get_option( 'header-below-stick' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Stick Below Header', 'astra-addon' ), 'priority' => 13, 'control' => Astra_Theme_Extension::$switch_control, 'context' => ! astra_addon_builder_helper()->is_header_footer_builder_active ? array( ASTRA_THEME_SETTINGS . '[below-header-layout]', '!=', 'disabled' ) : '', 'transport' => 'refresh', ); } return array_merge( $configurations, $_config ); } } } new Astra_Sticky_Header_Sections_Configs(); classes/sections/class-astra-sticky-below-header-colors-bg-configs.php 0000666 00000036321 15165306611 0022146 0 ustar 00 <?php /** * Sticky Header - Below Header Colors Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Below_Header_Colors_Bg_Configs' ) ) { /** * Register Sticky Header Below Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Below_Header_Colors_Bg_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $header_below_section = 'section-sticky-header'; $header_below_color_priority = 115; $context = astra_addon_builder_helper()->general_tab_config; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $header_below_section = 'section-below-header-builder'; $header_below_color_priority = 90; $context = astra_addon_builder_helper()->design_tab; $_config = array( array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'type' => 'control', 'priority' => $header_below_color_priority, 'section' => $header_below_section, 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Background Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => $context, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Sticky Background Blur. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-bg-blur]', 'default' => astra_get_option( 'sticky-below-header-bg-blur' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'title' => __( 'Background Blur', 'astra-addon' ), 'priority' => $header_below_color_priority, 'section' => $header_below_section, 'context' => $context, 'description' => __( 'Background blur is dependent on the background color opacity', 'astra-addon' ), ), /** * Option: Sticky Background Blur Intensity. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-bg-blur-intensity]', 'default' => astra_get_option( 'sticky-below-header-bg-blur-intensity' ), 'type' => 'control', 'priority' => $header_below_color_priority, 'section' => $header_below_section, 'title' => __( 'Background Blur Intensity', 'astra-addon' ), 'control' => 'ast-slider', 'suffix' => 'px', 'context' => array( astra_addon_builder_helper()->design_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[sticky-below-header-bg-blur]', 'operator' => '==', 'value' => true, ), ), 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 20, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); } else { $_config = array( array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-below-header-bg-color-responsive' ), 'type' => 'control', 'priority' => $header_below_color_priority, 'section' => $header_below_section, 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Background Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => $context, ), /** * Option: Primary Menu Color */ array( 'name' => 'sticky-below-header-menu-color-responsive', 'default' => astra_get_option( 'sticky-below-header-menu-color-responsive' ), 'type' => 'sub-control', 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Background Color */ array( 'name' => 'sticky-below-header-menu-bg-color-responsive', 'default' => astra_get_option( 'sticky-below-header-menu-bg-color-responsive' ), 'type' => 'sub-control', 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-background-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), // Option: Divider. array( 'name' => 'divider-sticky-below-h-menu-colors', 'control' => 'ast-divider', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-colors]', 'section' => 'section-sticky-header', 'title' => __( 'Active / Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 5, 'settings' => array(), ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-below-header-menu-h-color-responsive', 'default' => astra_get_option( 'sticky-below-header-menu-h-color-responsive' ), 'type' => 'sub-control', 'priority' => 6, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Menu Link / Hover Background Color */ array( 'name' => 'sticky-below-header-menu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-below-header-menu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-background-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Primary Menu Color */ array( 'name' => 'sticky-below-header-submenu-color-responsive', 'default' => astra_get_option( 'sticky-below-header-submenu-color-responsive' ), 'type' => 'sub-control', 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: SubMenu Background Color */ array( 'name' => 'sticky-below-header-submenu-bg-color-responsive', 'default' => astra_get_option( 'sticky-below-header-submenu-bg-color-responsive' ), 'type' => 'sub-control', 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-background-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), // Option: Divider. array( 'name' => 'divider-sticky-below-submenu-h-menu-colors', 'control' => 'ast-divider', 'default' => '', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-colors]', 'section' => 'section-sticky-header', 'title' => __( 'Active / Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 5, 'settings' => array(), ), /** * Option: Menu Hover Color */ array( 'name' => 'sticky-below-header-submenu-h-color-responsive', 'default' => astra_get_option( 'sticky-below-header-submenu-h-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 9, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-link-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: SubMenu Link / Hover Background Color */ array( 'name' => 'sticky-below-header-submenu-h-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-below-header-submenu-h-a-bg-color-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 10, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-background-colors]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'menu', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'menu', ), ), ), /** * Option: Content Section Link color. */ array( 'name' => 'sticky-below-header-content-section-link-color-responsive', 'default' => astra_get_option( 'sticky-below-header-content-section-link-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-header-content-colors]', 'type' => 'sub-control', 'transport' => 'postMessage', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Content Section Link Hover color. */ array( 'name' => 'sticky-below-header-content-section-link-h-color-responsive', 'default' => astra_get_option( 'sticky-below-header-content-section-link-h-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-below-header-content-colors]', 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), ); } return array_merge( $configurations, $_config ); } } } new Astra_Sticky_Below_Header_Colors_Bg_Configs(); classes/sections/class-astra-sticky-header-language-switcher-configs.php 0000666 00000005366 15165306611 0022567 0 ustar 00 <?php /** * Sticky Header - language-switcher Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Register Sticky Header Above Header Colors Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Language_Switcher_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.1.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-hb-language-switcher'; $_configs = array( /** * Option: Sticky Header language-switcher Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-language-switcher-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-language-switcher-show-name]', 'operator' => '==', 'value' => true, ), astra_addon_builder_helper()->design_tab_config, ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: language-switcher Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-language-switcher-color]', 'default' => astra_get_option( 'sticky-header-language-switcher-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 120, 'transport' => 'postMessage', 'control' => 'ast-color', 'title' => __( 'Color', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-language-switcher-show-name]', 'operator' => '==', 'value' => true, ), astra_addon_builder_helper()->design_tab_config, ), ), ); return array_merge( $configurations, $_configs ); } } new Astra_Sticky_Header_Language_Switcher_Configs(); classes/sections/class-astra-sticky-header-divider-configs.php 0000666 00000005670 15165306611 0020602 0 ustar 00 <?php /** * Sticky Header - Divider Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Divider_Configs' ) ) { /** * Register Sticky Header Above Header Colors Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Divider_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $divider_config = array(); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = 'section-hb-divider-' . $index; $_configs = array( /** * Option: Sticky Header divider Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-divider-' . $index . '-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: divider Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-divider-' . $index . '-color]', 'default' => astra_get_option( 'sticky-header-divider-' . $index . '-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 120, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Color', 'astra-addon' ), 'context' => astra_addon_builder_helper()->design_tab, ), ); $divider_config[] = $_configs; } $divider_config = call_user_func_array( 'array_merge', $divider_config + array( array() ) ); $configurations = array_merge( $configurations, $divider_config ); return $configurations; } } } new Astra_Sticky_Header_Divider_Configs(); classes/sections/class-astra-sticky-header-configs.php 0000666 00000200037 15165306611 0017150 0 ustar 00 <?php /** * Sticky Header Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Configs' ) ) { /** * Register Sticky Header Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $header_above_section = 'section-sticky-header'; $header_below_section = 'section-sticky-header'; $header_primary_section = 'section-sticky-header'; $header_primary_color_priority = 85; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $header_above_section = 'section-above-header-builder'; $header_below_section = 'section-below-header-builder'; $header_primary_section = 'section-primary-header-builder'; $header_primary_color_priority = 85; } $_config = array( /** * Option: Sticky Header Primary Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-sticky-primary-header]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-sticky-header', 'title' => __( 'Primary Header Colors', 'astra-addon' ), 'settings' => array(), 'priority' => 80, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Stick Primary Header */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-stick]', 'default' => astra_get_option( 'header-main-stick' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Stick Primary Header', 'astra-addon' ), 'priority' => 10, 'control' => Astra_Theme_Extension::$switch_control, 'transport' => 'refresh', ), array( 'name' => ASTRA_THEME_SETTINGS . '[different-sticky-logo]', 'default' => astra_get_option( 'different-sticky-logo' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Different Logo for Sticky Header?', 'astra-addon' ), 'priority' => 15, 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: Sticky header logo selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-logo]', 'default' => astra_get_option( 'sticky-header-logo' ), 'type' => 'control', 'control' => 'image', 'section' => 'section-sticky-header', 'priority' => 16, 'title' => __( 'Sticky Logo', 'astra-addon' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[different-sticky-logo]', 'operator' => '==', 'value' => 1, ), ), ), /** * Option: Different retina logo */ array( 'name' => ASTRA_THEME_SETTINGS . '[different-sticky-retina-logo]', 'default' => astra_get_option( 'different-sticky-retina-logo' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Different Logo for retina devices?', 'astra-addon' ), 'priority' => 20, 'control' => Astra_Theme_Extension::$switch_control, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[different-sticky-logo]', 'operator' => '==', 'value' => 1, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Sticky header logo selector */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-retina-logo]', 'default' => astra_get_option( 'sticky-header-retina-logo' ), 'type' => 'control', 'control' => 'image', 'section' => 'section-sticky-header', 'priority' => 21, 'title' => __( 'Sticky Retina Logo', 'astra-addon' ), 'library_filter' => array( 'gif', 'jpg', 'jpeg', 'png', 'ico' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[different-sticky-logo]', 'operator' => '==', 'value' => 1, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[different-sticky-retina-logo]', 'operator' => '==', 'value' => 1, ), ), ), /** * Option: Sticky header logo width */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-logo-width]', 'default' => astra_get_option( 'sticky-header-logo-width' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-sticky-header', 'priority' => 25, 'suffix' => 'px', 'title' => __( 'Sticky Logo Width', 'astra-addon' ), 'input_attrs' => array( 'min' => 50, 'step' => 1, 'max' => 600, ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[different-sticky-logo]', 'operator' => '==', 'value' => 1, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Shrink Primary Header */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-shrink]', 'default' => astra_get_option( 'header-main-shrink' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Enable Shrink Effect', 'astra-addon' ), 'priority' => 13.1, 'control' => Astra_Theme_Extension::$switch_control, 'description' => __( 'It will shrink the sticky header height, logo, and menu size. Sticky header will display in a compact size.', 'astra-addon' ), ), /** * Option: Hide on scroll */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-hide-on-scroll]', 'default' => astra_get_option( 'sticky-hide-on-scroll' ), 'type' => 'control', 'section' => 'section-sticky-header', 'title' => __( 'Hide When Scrolling Down', 'astra-addon' ), 'priority' => 13.2, 'control' => Astra_Theme_Extension::$switch_control, ), /** * Option: Enable disable mobile header */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-style]', 'default' => astra_get_option( 'sticky-header-style' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$selector_control, 'section' => 'section-sticky-header', 'priority' => 40, 'title' => __( 'Select Animation', 'astra-addon' ), 'choices' => array( 'none' => __( 'None', 'astra-addon' ), 'slide' => __( 'Slide', 'astra-addon' ), 'fade' => __( 'Fade', 'astra-addon' ), ), 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[sticky-hide-on-scroll]', 'operator' => '!=', 'value' => 1, ), ), 'transport' => 'refresh', 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Sticky Header Display On */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-on-devices]', 'default' => astra_get_option( 'sticky-header-on-devices' ), 'type' => 'control', 'section' => 'section-sticky-header', 'priority' => 50, 'title' => __( 'Enable On', 'astra-addon' ), 'control' => Astra_Theme_Extension::$selector_control, 'choices' => array( 'desktop' => __( 'Desktop', 'astra-addon' ), 'mobile' => __( 'Mobile', 'astra-addon' ), 'both' => __( 'Desktop + Mobile', 'astra-addon' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Sticky Header Button Colors Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-divider]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-sticky-header', 'title' => __( 'Header Button', 'astra-addon' ), 'settings' => array(), 'priority' => 55, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'operator' => '==', 'value' => 'button', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'operator' => '===', 'value' => 'custom-button', ), ), ), /** * Group: Theme Button Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-group]', 'default' => astra_get_option( 'sticky-header-button-color-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Colors', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 55, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'operator' => '==', 'value' => 'button', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'operator' => '===', 'value' => 'custom-button', ), ), ), /** * Group: Theme Button Border Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-button-border-group]', 'default' => astra_get_option( 'sticky-header-button-border-group' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Border', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 55, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'operator' => '==', 'value' => 'button', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'operator' => '===', 'value' => 'custom-button', ), ), ), ); if ( self::is_header_section_active() ) { $_new_configs = array( /** * Option: Sticky Header Above Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-sticky-above-header]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-sticky-header', 'title' => __( 'Above Header Colors', 'astra-addon' ), 'settings' => array(), 'priority' => 60, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Below Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[divider-section-sticky-below-header]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-sticky-header', 'title' => __( 'Below Header Colors', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $sticky_individual_configs = array( /** * Option: Sticky Above Header Heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-above-header-options]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $header_above_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 80, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Sticky Below Header Heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-options]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $header_below_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 80, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Primary Header Heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-primary-header-options]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $header_primary_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 80, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), // Option: Site Title Color. array( 'name' => 'sticky-header-builder-site-title-color', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-site-identity-title-color-group]', 'section' => 'title_tagline', 'type' => 'sub-control', 'control' => 'ast-color', 'default' => astra_get_option( 'sticky-header-builder-site-title-color' ), 'title' => __( 'Normal', 'astra-addon' ), ), // Option: Site Title Hover Color. array( 'name' => 'sticky-header-builder-site-title-h-color', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-site-identity-title-color-group]', 'section' => 'title_tagline', 'type' => 'sub-control', 'control' => 'ast-color', 'default' => astra_get_option( 'sticky-header-builder-site-title-h-color' ), 'title' => __( 'Hover', 'astra-addon' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-header-bg-color-responsive' ), 'type' => 'control', 'section' => $header_primary_section, 'priority' => $header_primary_color_priority, 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Background Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-section-divider' ), ), /** * Option: Sticky Background Blur. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-bg-blur]', 'default' => astra_get_option( 'sticky-header-bg-blur' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => $header_primary_section, 'priority' => $header_primary_color_priority, 'title' => __( 'Background Blur', 'astra-addon' ), 'description' => __( 'Background blur is dependent on the background color opacity', 'astra-addon' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Background Blur Intensity. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-bg-blur-intensity]', 'default' => astra_get_option( 'sticky-header-bg-blur-intensity' ), 'type' => 'control', 'section' => $header_primary_section, 'priority' => $header_primary_color_priority, 'title' => __( 'Background Blur Intensity', 'astra-addon' ), 'control' => 'ast-slider', 'suffix' => 'px', 'context' => array( ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab_config : astra_addon_builder_helper()->general_tab_config, 'relation' => 'AND', array( 'setting' => ASTRA_THEME_SETTINGS . '[sticky-header-bg-blur]', 'operator' => '==', 'value' => true, ), ), 'input_attrs' => array( 'min' => 1, 'step' => 1, 'max' => 20, ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), ); array_push( $sticky_individual_configs, /** * Option: Sticky Site Identity Heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-site-identity-options]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'title_tagline', 'title' => __( 'Sticky Header Options', 'astra-addon' ), 'settings' => array(), 'priority' => 20, 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'desktop', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'tablet', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'mobile', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'desktop', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'tablet', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'mobile', 'operator' => '==', 'value' => true, ), ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-site-identity-title-color-group]', 'default' => astra_get_option( 'sticky-site-identity-title-color-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Title Color', 'astra-addon' ), 'section' => 'title_tagline', 'transport' => 'postMessage', 'priority' => 21, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'desktop', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'tablet', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-title-responsive]', 'setting-key' => 'mobile', 'operator' => '==', 'value' => true, ), ), ), ), // Option: Site Tagline Color. array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-builder-site-tagline-color]', 'type' => 'control', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 22, 'transport' => 'postMessage', 'default' => astra_get_option( 'sticky-header-builder-site-tagline-color' ), 'title' => __( 'Tagline', 'astra-addon' ), 'section' => 'title_tagline', 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'desktop', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'tablet', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[display-site-tagline-responsive]', 'setting-key' => 'mobile', 'operator' => '==', 'value' => true, ), ), ), ) ); $sticky_menu_configs = array(); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = 'section-hb-menu-' . $index; $_prefix = 'menu' . $index; $sticky_config = array( /** * Option: Sticky Menu 1 Heading */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-menu-' . $index . '-options]', 'type' => 'control', 'control' => 'ast-heading', 'section' => 'section-hb-menu-' . $index, 'title' => __( 'Sticky Header Options', 'astra-addon' ), 'settings' => array(), 'priority' => 101, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), // Option Group: Menu Color. array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-link-colors]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Text / Link', 'astra-addon' ), 'section' => $_section, 'priority' => 101, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, 'divider' => array( 'ast_title' => __( 'Menu Color', 'astra-addon' ), 'ast_class' => 'ast-section-spacing', ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-colors]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => $_section, 'priority' => 101, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), ), // Option: Menu Color. array( 'name' => 'sticky-header-' . $_prefix . '-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-link-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 7, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Menu Background image, color. array( 'name' => 'sticky-header-' . $_prefix . '-bg-obj-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-bg-obj-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'section' => $_section, 'data_attrs' => array( 'name' => 'sticky-header-' . $_prefix . '-bg-obj-responsive' ), 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 9, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Menu Hover Color. array( 'name' => 'sticky-header-' . $_prefix . '-h-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-h-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-link-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'section' => $_section, 'responsive' => true, 'rgba' => true, 'priority' => 19, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Menu Hover Background Color. array( 'name' => 'sticky-header-' . $_prefix . '-h-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-h-bg-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-colors]', 'type' => 'sub-control', 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 21, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Active Menu Color. array( 'name' => 'sticky-header-' . $_prefix . '-a-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-a-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-link-colors]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-responsive-color', 'title' => __( 'Active', 'astra-addon' ), 'tab' => __( 'Active', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 31, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Active Menu Background Color. array( 'name' => 'sticky-header-' . $_prefix . '-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-a-bg-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-background-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Active', 'astra-addon' ), 'tab' => __( 'Active', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 33, 'context' => astra_addon_builder_helper()->design_tab, ), // Option Group: Sub Menu Colors. array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-link-colors]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Text / Link', 'astra-addon' ), 'section' => $_section, 'priority' => 102, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, 'divider' => array( 'ast_title' => __( 'Submenu Color', 'astra-addon' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-background-colors]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => $_section, 'priority' => 102, 'context' => astra_addon_builder_helper()->design_tab, 'responsive' => true, ), // Option: Submenu Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-link-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'section' => $_section, 'responsive' => true, 'rgba' => true, 'priority' => 13, ), // Option: Submenu Background Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-bg-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-background-colors]', 'type' => 'sub-control', 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 15, ), // Option: Submenu Hover Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-h-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-h-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-link-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 25, ), // Option: Submenu Hover Background Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-h-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-h-bg-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-background-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 27, ), // Option: Active Submenu Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-a-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-a-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-link-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Active', 'astra-addon' ), 'tab' => __( 'Active', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 37, ), // Option: Active Submenu Background Color. array( 'name' => 'sticky-header-' . $_prefix . '-submenu-a-bg-color-responsive', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-submenu-a-bg-color-responsive' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-submenu-background-colors]', 'type' => 'sub-control', 'control' => 'ast-responsive-color', 'section' => $_section, 'title' => __( 'Active', 'astra-addon' ), 'tab' => __( 'Active', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'priority' => 39, ), ); $sticky_menu_configs[] = $sticky_config; if ( 3 > $index ) { $sticky_config = array( // Option Group: Primary Mega Menu Colors. array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-mega-menu-col-color-group]', 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Mega Menu Heading', 'astra-addon' ), 'section' => $_section, 'priority' => 103, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), // Option: Megamenu Heading Color. array( 'name' => 'sticky-header-' . $_prefix . '-header-megamenu-heading-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-header-megamenu-heading-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-mega-menu-col-color-group]', 'type' => 'sub-control', 'control' => 'ast-color', 'section' => $_section, 'title' => __( 'Normal', 'astra-addon' ), ), // Option: Megamenu Heading Hover Color. array( 'name' => 'sticky-header-' . $_prefix . '-header-megamenu-heading-h-color', 'default' => astra_get_option( 'sticky-header-' . $_prefix . '-header-megamenu-heading-h-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-' . $_prefix . '-mega-menu-col-color-group]', 'type' => 'sub-control', 'control' => 'ast-color', 'section' => $_section, 'title' => __( 'Hover', 'astra-addon' ), ), ); $sticky_menu_configs[] = $sticky_config; } } $sticky_menu_configs = call_user_func_array( 'array_merge', $sticky_menu_configs + array( array() ) ); $sticky_individual_configs = array_merge( $sticky_individual_configs, $sticky_menu_configs ); } else { $sticky_individual_configs = array( /** * Option: Sticky Header primary Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-header-colors]', 'default' => astra_get_option( 'sticky-header-primary-header-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => 'Site Title Color', 'section' => $header_primary_section, 'transport' => 'postMessage', 'priority' => 86, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-top-divider' ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Above Menu Link Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-link-colors]', 'default' => astra_get_option( 'sticky-header-above-menus-link-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link / Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 61, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Menu', 'astra-addon' ), ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Above Menu Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-above-menus-colors]', 'default' => astra_get_option( 'sticky-header-above-menus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 61, 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Above Menu Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-link-colors]', 'default' => astra_get_option( 'sticky-header-above-submenus-link-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link / Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 65, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Submenu', 'astra-addon' ), ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Above Menu Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-above-submenus-colors]', 'default' => astra_get_option( 'sticky-header-above-submenus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 65, 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header primary Link Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-link-colors]', 'default' => astra_get_option( 'sticky-header-primary-menus-link-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link / Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 90, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Menu', 'astra-addon' ), ), 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header primary Link Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-menus-colors]', 'default' => astra_get_option( 'sticky-header-primary-menus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 90, 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header primary Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-link-colors]', 'default' => astra_get_option( 'sticky-header-primary-submenu-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link/Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 95, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Submenu', 'astra-addon' ), ), 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-submenu-background-colors]', 'default' => astra_get_option( 'sticky-header-primary-submenu-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 95, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, ), /** * Option: Sticky Header Below Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-link-colors]', 'default' => astra_get_option( 'sticky-header-below-menus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link/Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 120, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Menu', 'astra-addon' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-menus-background-colors]', 'default' => astra_get_option( 'sticky-header-below-menus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 120, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, ), /** * Option: Sticky Header Below Submenu Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-link-colors]', 'default' => astra_get_option( 'sticky-header-below-submenus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link / Text', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 125, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Submenu', 'astra-addon' ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-submenus-background-colors]', 'default' => astra_get_option( 'sticky-header-below-submenus-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 125, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-bg-color-responsive]', 'default' => astra_get_option( 'sticky-header-bg-color-responsive' ), 'type' => 'control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 85, 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Background Color', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Site Title Color */ array( 'name' => 'sticky-header-color-site-title-responsive', 'default' => astra_get_option( 'sticky-header-color-site-title-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 7, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-header-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Normal', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Site Title Hover Color */ array( 'name' => 'sticky-header-color-h-site-title-responsive', 'default' => astra_get_option( 'sticky-header-color-h-site-title-responsive' ), 'type' => 'sub-control', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 8, 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-header-colors]', 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Hover', 'astra-addon' ), 'responsive' => true, 'rgba' => true, ), /** * Option: Site Tagline Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-color-site-tagline-responsive]', 'default' => astra_get_option( 'sticky-header-color-site-tagline-responsive' ), 'type' => 'control', 'priority' => 85, 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Site Tagline Color', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'connect' => ASTRA_THEME_SETTINGS . '[sticky-header-color-site-tagline-responsive]', ), /** * Option: Content Section Text color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-below-header-content-section-text-color-responsive]', 'default' => astra_get_option( 'sticky-below-header-content-section-text-color-responsive' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-color', 'title' => __( 'Text', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Content', 'astra-addon' ), ), 'responsive' => true, 'rgba' => true, 'priority' => 135, 'section' => 'section-sticky-header', 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header Header Content Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-below-header-content-colors]', 'default' => astra_get_option( 'sticky-header-below-header-content-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 135, 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Content Section Text color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-content-section-text-color-responsive]', 'default' => astra_get_option( 'sticky-header-content-section-text-color-responsive' ), 'type' => 'control', 'priority' => 105, 'section' => 'section-sticky-header', 'control' => 'ast-responsive-color', 'transport' => 'postMessage', 'title' => __( 'Text', 'astra-addon' ), 'responsive' => true, 'rgba' => true, 'divider' => array( 'ast_class' => 'ast-top-divider', 'ast_title' => __( 'Outside Item', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->is_header_footer_builder_active ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), /** * Option: Sticky Header primary Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-primary-outside-item-colors]', 'default' => astra_get_option( 'sticky-header-primary-outside-item-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 105, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, 'responsive' => true, ), /** * Option: Sticky Header Above Link Color Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-above-outside-item-link-colors]', 'default' => astra_get_option( 'sticky-header-above-outside-item-link-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Link', 'astra-addon' ), 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'priority' => 75, 'responsive' => true, 'context' => ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) ? astra_addon_builder_helper()->design_tab : astra_addon_builder_helper()->general_tab, ), ); } $_new_configs = array_merge( $_new_configs, $sticky_individual_configs ); $_config = array_merge( $_config, $_new_configs ); } if ( false === astra_addon_builder_helper()->is_header_footer_builder_active ) { $_new_configs = array( /** * Option: Button Text Color */ array( 'name' => 'header-main-rt-sticky-section-button-text-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-text-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-group]', 'section' => 'section-sticky-header', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 10, 'title' => __( 'Text Color', 'astra-addon' ), ), /** * Option: Button Text Hover Color */ array( 'name' => 'header-main-rt-sticky-section-button-text-h-color', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-text-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-group]', 'section' => 'section-sticky-header', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 10, 'title' => __( 'Text Color', 'astra-addon' ), ), /** * Option: Button Background Color */ array( 'name' => 'header-main-rt-sticky-section-button-back-color', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-back-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-group]', 'section' => 'section-sticky-header', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 10, 'title' => __( 'Background Color', 'astra-addon' ), ), /** * Option: Button Button Hover Color */ array( 'name' => 'header-main-rt-sticky-section-button-back-h-color', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-back-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-color-group]', 'section' => 'section-sticky-header', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 10, 'title' => __( 'Background Color', 'astra-addon' ), ), // Option: Button Custom Menu Button Border. array( 'type' => 'control', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-sticky-section-button-padding]', 'section' => 'section-sticky-header', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 55, 'default' => astra_get_option( 'header-main-rt-sticky-section-button-padding' ), 'title' => __( 'Padding', 'astra-addon' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-button-style]', 'operator' => '===', 'value' => 'custom-button', ), ), ), /** * Option: Button Border Size */ array( 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-border-group]', 'section' => 'section-sticky-header', 'control' => 'ast-border', 'name' => 'header-main-rt-sticky-section-button-border-size', 'transport' => 'postMessage', 'linked_choices' => true, 'priority' => 10, 'default' => astra_get_option( 'header-main-rt-sticky-section-button-border-size' ), 'title' => __( 'Width', 'astra-addon' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), ), /** * Option: Button Border Color */ array( 'name' => 'header-main-rt-sticky-section-button-border-color', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-border-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-border-group]', 'section' => 'section-sticky-header', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 12, 'title' => __( 'Color', 'astra-addon' ), ), /** * Option: Button Border Hover Color */ array( 'name' => 'header-main-rt-sticky-section-button-border-h-color', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-border-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-border-group]', 'section' => 'section-sticky-header', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'priority' => 14, 'title' => __( 'Hover Color', 'astra-addon' ), ), /** * Option: Button Border Radius */ array( 'name' => 'header-main-rt-sticky-section-button-border-radius', 'default' => astra_get_option( 'header-main-rt-sticky-section-button-border-radius' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-button-border-group]', 'section' => 'section-sticky-header', 'control' => 'ast-slider', 'transport' => 'postMessage', 'suffix' => 'px', 'priority' => 16, 'title' => __( 'Border Radius', 'astra-addon' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 100, ), ), ); } else { $_new_configs = array( array( 'name' => ASTRA_THEME_SETTINGS . '[header-stick-notice]', 'type' => 'control', 'control' => 'ast-description', 'section' => 'section-sticky-header', 'priority' => 13.5, 'help' => __( 'Note: You can find all the Sticky Header related design options in the individual Elements for Logo, Primary Menu, Button etc.', 'astra-addon' ), 'context' => array( 'relation' => 'AND', astra_addon_builder_helper()->general_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[header-above-stick]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-below-stick]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-stick]', 'operator' => '==', 'value' => true, ), ), ), ), ); } $_config = array_merge( $_config, $_new_configs ); return array_merge( $configurations, $_config ); } /** * Is Header Section addon active. * Decide if the Above & Below option should be visible in Sticky Header depending on Header Section addon. * * @return boolean True - If the option should be displayed, False - If the option should be hidden. */ public static function is_header_section_active() { $status = false; if ( Astra_Ext_Extension::is_active( 'header-sections' ) || true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $status = true; } return $status; } } } new Astra_Sticky_Header_Configs(); classes/sections/class-astra-sticky-header-account-configs.php 0000666 00000024052 15165306611 0020603 0 ustar 00 <?php /** * Sticky Header - Account options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Account_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Account_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-header-account'; $_configs = array( /** * Option: Sticky Header account Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-account-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 120, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-login-style]', 'operator' => '==', 'value' => 'icon', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-login-style]', 'operator' => '==', 'value' => 'text', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-logout-style]', 'operator' => '!=', 'value' => 'none', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-action-type]', 'operator' => '==', 'value' => 'menu', ), ), ), ), /** * Option: Search Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-account-icon-color]', 'default' => astra_get_option( 'sticky-header-account-icon-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 130, 'transport' => 'postMessage', 'control' => 'ast-color', 'divider' => array( 'ast_class' => 'ast-bottom-spacing ast-section-spacing' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Icon Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-login-style]', 'operator' => '==', 'value' => 'icon', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-logout-style]', 'operator' => '==', 'value' => 'icon', ), ), ), ), /** * Option: Text Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-account-type-text-color]', 'default' => astra_get_option( 'sticky-header-account-type-text-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 131, 'transport' => 'postMessage', 'control' => 'ast-color', 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Text Color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'relation' => 'OR', array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-login-style]', 'operator' => '==', 'value' => 'text', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-logout-style]', 'operator' => '==', 'value' => 'text', ), ), ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-colors]', 'default' => astra_get_option( 'sticky-header-account-menu-colors' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'divider' => array( 'ast_title' => __( 'Menu Color', 'astra-addon' ), ), 'title' => __( 'Link', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 140, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-action-type]', 'operator' => '==', 'value' => 'menu', ), ), 'responsive' => false, ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-bg-colors]', 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 140, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-action-type]', 'operator' => '==', 'value' => 'menu', ), ), 'responsive' => false, ), // Option: Menu Color. array( 'name' => 'sticky-header-account-menu-color', 'default' => astra_get_option( 'sticky-header-account-menu-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-colors]', 'type' => 'sub-control', 'control' => 'ast-color', 'transport' => 'postMessage', 'tab' => __( 'Normal', 'astra-addon' ), 'section' => $_section, 'title' => __( 'Normal', 'astra-addon' ), 'priority' => 7, 'context' => array( array( 'setting' => ASTRA_THEME_SETTINGS . '[header-account-action-type]', 'operator' => '==', 'value' => 'menu', ), astra_addon_builder_helper()->design_tab, ), ), // Option: Background Color. array( 'name' => 'sticky-header-account-menu-bg-obj', 'default' => astra_get_option( 'sticky-header-account-menu-bg-obj' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-bg-colors]', 'type' => 'sub-control', 'control' => 'ast-color', 'transport' => 'postMessage', 'section' => $_section, 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), 'priority' => 8, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Menu Hover Color. array( 'name' => 'sticky-header-account-menu-h-color', 'default' => astra_get_option( 'sticky-header-account-menu-h-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-colors]', 'tab' => __( 'Hover', 'astra-addon' ), 'type' => 'sub-control', 'control' => 'ast-color', 'transport' => 'postMessage', 'title' => __( 'Hover', 'astra-addon' ), 'section' => $_section, 'priority' => 19, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Menu Hover Background Color. array( 'name' => 'sticky-header-account-menu-h-bg-color', 'default' => astra_get_option( 'sticky-header-account-menu-h-bg-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-bg-colors]', 'type' => 'sub-control', 'title' => __( 'Hover', 'astra-addon' ), 'section' => $_section, 'control' => 'ast-color', 'transport' => 'postMessage', 'tab' => __( 'Hover', 'astra-addon' ), 'priority' => 21, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Active Menu Color. array( 'name' => 'sticky-header-account-menu-a-color', 'default' => astra_get_option( 'sticky-header-account-menu-a-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-colors]', 'type' => 'sub-control', 'section' => $_section, 'control' => 'ast-color', 'transport' => 'postMessage', 'tab' => __( 'Active', 'astra-addon' ), 'title' => __( 'Active', 'astra-addon' ), 'priority' => 31, 'context' => astra_addon_builder_helper()->design_tab, ), // Option: Active Menu Background Color. array( 'name' => 'sticky-header-account-menu-a-bg-color', 'default' => astra_get_option( 'sticky-header-account-menu-a-bg-color' ), 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-account-menu-bg-colors]', 'type' => 'sub-control', 'control' => 'ast-color', 'transport' => 'postMessage', 'section' => $_section, 'title' => __( 'Active', 'astra-addon' ), 'tab' => __( 'Active', 'astra-addon' ), 'priority' => 33, 'context' => astra_addon_builder_helper()->design_tab, ), ); return array_merge( $configurations, $_configs ); } } } new Astra_Sticky_Header_Account_Configs(); classes/sections/class-astra-sticky-header-widget-configs.php 0000666 00000011660 15165306611 0020433 0 ustar 00 <?php /** * Sticky Header - Widget Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Widget_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Widget_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $html_config = array(); $astra_has_widgets_block_editor = astra_addon_has_widgets_block_editor(); $num_of_header_widgets = astra_addon_builder_helper()->num_of_header_widgets; for ( $index = 1; $index <= $num_of_header_widgets; $index++ ) { $_section = ( ! $astra_has_widgets_block_editor ) ? 'sidebar-widgets-header-widget-' . $index : 'astra-sidebar-widgets-header-widget-' . $index; $_configs = array( /** * Option: Sticky Header HTML Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-widget-' . $index . '-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Options', 'astra-addon' ), 'settings' => array(), 'priority' => 110, ), /** * Option: Widget title color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-widget-' . $index . '-title-color]', 'default' => astra_get_option( 'sticky-header-widget-' . $index . '-title-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 120, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Title Color', 'astra-addon' ), ), /** * Option: Widget Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-widget-' . $index . '-color]', 'default' => astra_get_option( 'sticky-header-widget-' . $index . '-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 130, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Content Color', 'astra-addon' ), ), /** * Option: Widget link color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-widget-' . $index . '-link-color]', 'default' => astra_get_option( 'sticky-header-widget-' . $index . '-link-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 140, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Link Color', 'astra-addon' ), ), /** * Option: Widget link hover color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-widget-' . $index . '-link-h-color]', 'default' => astra_get_option( 'sticky-header-widget-' . $index . '-link-h-color' ), 'type' => 'control', 'section' => $_section, 'priority' => 150, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Link Hover Color', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), ), ); $html_config[] = $_configs; } $html_config = call_user_func_array( 'array_merge', $html_config + array( array() ) ); $configurations = array_merge( $configurations, $html_config ); return $configurations; } } } new Astra_Sticky_Header_Widget_Configs(); classes/sections/class-astra-sticky-header-toggle-configs.php 0000666 00000007576 15165306611 0020444 0 ustar 00 <?php /** * Sticky Header - Toggle Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Toggle_Configs' ) ) { /** * Register Sticky Header > Toggle component Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Toggle_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_section = 'section-header-mobile-trigger'; $_configs = array( /** * Option: Sticky Header divider Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-design-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 110, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Toggle Button Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-btn-color]', 'default' => astra_get_option( 'sticky-header-toggle-btn-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 115, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Toggle Button Bg Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-btn-bg-color]', 'default' => astra_get_option( 'sticky-header-toggle-btn-bg-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Background Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 120, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'operator' => '==', 'value' => 'fill', ), ), ), /** * Option: Toggle Button Border Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-toggle-border-color]', 'default' => astra_get_option( 'sticky-header-toggle-border-color' ), 'type' => 'control', 'control' => 'ast-color', 'title' => __( 'Border Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 125, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[mobile-header-toggle-btn-style]', 'operator' => '==', 'value' => 'outline', ), ), ), ); $configurations = array_merge( $configurations, $_configs ); return $configurations; } } } new Astra_Sticky_Header_Toggle_Configs(); classes/sections/class-astra-sticky-header-html-configs.php 0000666 00000005733 15165306611 0020120 0 ustar 00 <?php /** * Sticky Header - HTML Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 3.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Html_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Html_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $html_config = array(); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = 'section-hb-html-' . $index; $_configs = array( /** * Option: Sticky Header HTML Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-html-' . $index . '-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Option', 'astra-addon' ), 'settings' => array(), 'priority' => 99, 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: HTML Color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-html-' . $index . 'color]', 'default' => astra_get_option( 'sticky-header-html-' . $index . 'color' ), 'type' => 'control', 'section' => $_section, 'priority' => 99, 'transport' => 'postMessage', 'control' => 'ast-color', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_alpha_color' ), 'title' => __( 'Text Color', 'astra-addon' ), 'context' => astra_addon_builder_helper()->design_tab, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), ); $html_config[] = $_configs; } $html_config = call_user_func_array( 'array_merge', $html_config + array( array() ) ); $configurations = array_merge( $configurations, $html_config ); return $configurations; } } } new Astra_Sticky_Header_Html_Configs(); classes/sections/class-astra-sticky-header-social-configs.php 0000666 00000016710 15165306611 0020423 0 ustar 00 <?php /** * Sticky Header - Social Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.0.0 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } if ( ! class_exists( 'Astra_Sticky_Header_Social_Configs' ) ) { /** * Register Sticky Header Above Header ColorsCustomizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Sticky_Header_Social_Configs extends Astra_Customizer_Config_Base { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Register Sticky Header Colors Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 3.0.0 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $section = 'section-hb-social-icons-'; $social_config = array(); $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $_section = $section . $index; $_configs = array( /** * Option: Sticky Header Button Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-heading]', 'type' => 'control', 'control' => 'ast-heading', 'section' => $_section, 'title' => __( 'Sticky Header Options', 'astra-addon' ), 'settings' => array(), 'priority' => 50, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-social-' . $index . '-color-type]', 'operator' => '==', 'value' => 'custom', ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Group: Primary Social Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-color-group]', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-color-group' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 70, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-social-' . $index . '-color-type]', 'operator' => '==', 'value' => 'custom', ), ), 'responsive' => true, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), array( 'name' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-background-color-group]', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-color-group' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$group_control, 'title' => __( 'Background Color', 'astra-addon' ), 'section' => $_section, 'transport' => 'postMessage', 'priority' => 70, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-social-' . $index . '-color-type]', 'operator' => '==', 'value' => 'custom', ), ), 'responsive' => true, ), /** * Option: Social Text Color */ array( 'name' => 'sticky-header-social-' . $index . '-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-color-group]', 'section' => $_section, 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 9, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Text Hover Color */ array( 'name' => 'sticky-header-social-' . $index . '-h-color', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-color-group]', 'section' => $_section, 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 9, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Hover', 'astra-addon' ), ), /** * Option: Social Background Color */ array( 'name' => 'sticky-header-social-' . $index . '-bg-color', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-bg-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-background-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 9, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Normal', 'astra-addon' ), 'tab' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Background Hover Color */ array( 'name' => 'sticky-header-social-' . $index . '-bg-h-color', 'default' => astra_get_option( 'sticky-header-social-' . $index . '-bg-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[sticky-header-social-' . $index . '-background-color-group]', 'section' => $_section, 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 9, 'context' => astra_addon_builder_helper()->design_tab, 'title' => __( 'Hover', 'astra-addon' ), 'tab' => __( 'Hover', 'astra-addon' ), ), ); $social_config[] = $_configs; } $social_config = call_user_func_array( 'array_merge', $social_config + array( array() ) ); $configurations = array_merge( $configurations, $social_config ); return $configurations; } /** * Get Social color type.. * * @since 3.0.0 * @return boolean True - If Transparent Header is enabled, False if not. */ public function is_social_color_custom() { $social_color_type = astra_get_option( 'header-social-color-type' ); return ( 'custom' === $social_color_type ? true : false ); } } } new Astra_Sticky_Header_Social_Configs(); classes/class-astra-ext-sticky-header-loader.php 0000666 00000040110 15165306611 0015727 0 ustar 00 <?php /** * Sticky Header - Customizer. * * @package Astra Addon * @since 1.0.0 */ if ( ! class_exists( 'Astra_Ext_Sticky_Header_Loader' ) ) { /** * Customizer Initialization * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Sticky_Header_Loader { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); add_action( 'customize_register', array( $this, 'new_customize_register' ), 2 ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { $astra_options = is_callable( 'Astra_Theme_Options::get_astra_options' ) ? Astra_Theme_Options::get_astra_options() : get_option( ASTRA_THEME_SETTINGS ); $defaults['header-main-shrink'] = 1; $defaults['different-sticky-logo'] = 0; $defaults['different-sticky-retina-logo'] = 0; $defaults['header-main-stick'] = 0; $defaults['header-above-stick'] = 0; $defaults['header-below-stick'] = 0; $defaults['sticky-header-bg-opc'] = 1; $defaults['sticky-hide-on-scroll'] = 0; $defaults['sticky-header-on-devices'] = 'desktop'; $defaults['sticky-header-style'] = 'none'; $defaults['sticky-header-logo'] = ''; $defaults['sticky-header-retina-logo'] = ''; $defaults['sticky-header-logo-width'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky Header */ $defaults['sticky-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-bg-blur'] = false; $defaults['sticky-header-bg-blur-intensity'] = 10; $defaults['sticky-header-color-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-builder-site-title-color'] = ''; $defaults['sticky-header-builder-site-title-h-color'] = ''; $defaults['sticky-header-builder-site-tagline-color'] = ''; $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { $sticky_header_button_border_radius = ! isset( $astra_options[ 'sticky-header-button' . $index . '-border-radius-fields' ] ) && isset( $astra_options[ 'sticky-header-button' . $index . '-border-radius' ] ) ? $astra_options[ 'sticky-header-button' . $index . '-border-radius' ] : ''; /** * Sticky Header > Menu color configs. */ $defaults[ 'sticky-header-menu' . $index . '-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-bg-obj-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-h-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-h-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-a-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-a-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-h-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-h-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-a-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-submenu-a-bg-color-responsive' ] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults[ 'sticky-header-menu' . $index . '-header-megamenu-heading-color' ] = ''; $defaults[ 'sticky-header-menu' . $index . '-header-megamenu-heading-h-color' ] = ''; $defaults[ 'sticky-header-button' . $index . '-border-radius-fields' ] = array( 'desktop' => array( 'top' => $sticky_header_button_border_radius, 'right' => $sticky_header_button_border_radius, 'bottom' => $sticky_header_button_border_radius, 'left' => $sticky_header_button_border_radius, ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); } $defaults['sticky-header-color-site-tagline-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-color-h-site-title-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Primary Menu. $defaults['sticky-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Primary Submenu. $defaults['sticky-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Outside menu item. $defaults['sticky-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky Above Header */ $defaults['sticky-above-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-bg-blur'] = false; $defaults['sticky-above-header-bg-blur-intensity'] = 10; // Above Header Menu. $defaults['sticky-above-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Abvoe Header Submenu. $defaults['sticky-above-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Sticky Above Header Content Section. $defaults['sticky-above-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-above-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); /** * Sticky below Header */ $defaults['sticky-below-header-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-bg-blur'] = false; $defaults['sticky-below-header-bg-blur-intensity'] = 10; // below Header Menu. $defaults['sticky-below-header-menu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-menu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Abvoe Header Submenu. $defaults['sticky-below-header-submenu-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-submenu-h-a-bg-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); // Sticky Below Header Content Section. $defaults['sticky-below-header-content-section-text-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-content-section-link-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-below-header-content-section-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['sticky-header-language-switcher-color'] = ''; return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function new_customize_register( $wp_customize ) { /** * Register Panel & Sections */ require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/class-astra-sticky-header-panels-configs.php'; /** * Sections */ require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-configs.php'; require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-colors-bg-configs.php'; // Header Sections. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-sections-configs.php'; // Check Header Sections is activated. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-above-header-colors-bg-configs.php'; require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-below-header-colors-bg-configs.php'; if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { // Button Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-button-configs.php'; // Social Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-social-configs.php'; // Search Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-search-configs.php'; // HTML Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-html-configs.php'; if ( ! astra_addon_remove_widget_design_options() ) { // Widget Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-widget-configs.php'; } // Divider Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-divider-configs.php'; // Language-switcher Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-language-switcher-configs.php'; // Account Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-account-configs.php'; // Menu Toggle Sticky Configs. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/sections/class-astra-sticky-header-toggle-configs.php'; } } /** * Customizer Preview */ public function preview_scripts() { wp_register_script( 'astra-sticky-header-customizer-preview-js', ASTRA_ADDON_EXT_STICKY_HEADER_URI . 'assets/js/unminified/customizer-preview.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); $localize_array = array( 'stickyHeaderStyle' => $sticky_header_style, 'stickyHideOnScroll' => $sticky_hide_on_scroll, 'component_limit' => astra_addon_builder_helper()->component_limit, 'is_flex_based_css' => Astra_Addon_Builder_Helper::apply_flex_based_css(), 'header_builder_active' => astra_addon_builder_helper()->is_header_footer_builder_active, 'sticky_header_style' => astra_get_option_meta( 'sticky-header-style' ), 'sticky_hide_on_scroll' => astra_get_option_meta( 'sticky-hide-on-scroll' ), ); wp_localize_script( 'astra-sticky-header-customizer-preview-js', 'astSticky', $localize_array ); wp_enqueue_script( 'astra-sticky-header-customizer-preview-js' ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Sticky_Header_Loader::get_instance(); classes/class-astra-ext-sticky-header-customizer-partials.php 0000666 00000003477 15165306611 0020521 0 ustar 00 <?php /** * Customizer Partial. * * @package Astra * @link https://wpastra.com/ * @since Astra 1.0.0 */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Customizer Partials * * @since 1.0.0 */ if ( ! class_exists( 'Astra_Ext_Sticky_Header_Customizer_Partials' ) ) { /** * Customizer Partials initial setup */ // @codingStandardsIgnoreStart class Astra_Ext_Sticky_Header_Customizer_Partials { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Instance * * @var object */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { } /** * Render Stickt Header Custom Logo */ public function _render_sticky_header_logo() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore $header_logo = astra_get_option( 'sticky-header-logo' ); if ( '' !== $header_logo ) { $custom_logo_id = attachment_url_to_postid( $header_logo ); $html = sprintf( '<a href="%1$s" class="sticky-custom-logo-link" rel="home" %3$s>%2$s</a>', esc_url( home_url( '/' ) ), wp_get_attachment_image( $custom_logo_id, 'full', false, array( 'class' => 'custom-logo', ) ), astra_attr( 'site-title-sticky-custom-link', array( 'class' => '', ) ) ); return $html; } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Sticky_Header_Customizer_Partials::get_instance(); classes/class-astra-ext-sticky-header-markup.php 0000666 00000056055 15165306611 0015777 0 ustar 00 <?php /** * Sticky Header Markup * * @package Astra Addon */ if ( ! class_exists( 'Astra_Ext_Sticky_Header_Markup' ) ) { /** * Sticky Header Markup Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Sticky_Header_Markup { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'body_class', array( $this, 'add_body_class' ) ); /* Fixed header markup */ add_action( 'astra_header', array( $this, 'none_header_markup' ), 5 ); add_action( 'astra_sticky_header_markup', array( $this, 'fixed_header_markup' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); add_action( 'astra_addon_get_css_files', array( $this, 'add_styles' ) ); add_action( 'astra_addon_get_js_files', array( $this, 'add_scripts' ) ); add_filter( 'astra_addon_js_localize', array( $this, 'localize_variables' ) ); /** * Metabox setup */ add_filter( 'astra_meta_box_options', array( $this, 'add_options' ) ); add_action( 'astra_meta_box_markup_after', array( $this, 'add_options_markup' ) ); add_action( 'astra_customizer_save', array( $this, 'customizer_save' ) ); } /** * Add Body Classes * * @param array $classes Body Class Array. * @return array */ public function add_body_class( $classes ) { /** * Add class 'ast-transparent-header' if page / post meta != 'disabled' */ $main_stick = astra_get_option( 'header-main-stick' ); $above_stick = astra_get_option( 'header-above-stick' ); $below_stick = astra_get_option( 'header-below-stick' ); $shrink_main = astra_get_option( 'header-main-shrink' ); $header_logo = astra_get_option( 'sticky-header-logo' ); $inherit_desk_logo = astra_get_option( 'different-sticky-logo', false ); $sticky_header_meta = astra_get_option_meta( 'stick-header-meta' ); $sticky_primary_header_meta = astra_get_option_meta( 'header-main-stick-meta' ); $astra_main_header_shrink_status = apply_filters( 'astra_main_header_shrink_disable', false ); if ( ! $astra_main_header_shrink_status && '1' == $main_stick && '1' == $shrink_main ) { $classes[] = 'ast-sticky-main-shrink'; } if ( ! $astra_main_header_shrink_status && '1' == $above_stick && '1' == $shrink_main ) { $classes[] = 'ast-sticky-above-shrink'; } if ( ! $astra_main_header_shrink_status && '1' == $below_stick && '1' == $shrink_main ) { $classes[] = 'ast-sticky-below-shrink'; } if ( Astra_Ext_Extension::is_active( 'sticky-header' ) && $shrink_main ) { $classes[] = 'ast-sticky-header-shrink'; } if ( '1' !== $inherit_desk_logo ) { $classes[] = 'ast-inherit-site-logo-sticky'; } if ( '1' == $inherit_desk_logo && '1' == $main_stick && '' !== $header_logo ) { $classes[] = 'ast-sticky-custom-logo'; } if ( true === astra_addon_builder_helper()->is_header_footer_builder_active && '1' == $inherit_desk_logo && '' !== $header_logo ) { $classes[] = 'ast-sticky-custom-logo'; } if ( ( '1' == $main_stick || ( 'enabled' == $sticky_header_meta && ( 'on' == $sticky_primary_header_meta || 'disabled' == $sticky_primary_header_meta ) ) ) ) { $classes[] = 'ast-primary-sticky-enabled'; } return $classes; } /** * Site Header - <header> * * @since 1.0.0 */ public function none_header_markup() { $main_stick = astra_get_option( 'header-main-stick' ); $header_style = astra_get_option( 'sticky-header-style' ); $inherit_desk_logo = astra_get_option( 'different-sticky-logo', false ); $sticky_header_meta = astra_get_option_meta( 'stick-header-meta' ); $sticky_primary_header_meta = astra_get_option_meta( 'header-main-stick-meta' ); if ( '1' == $inherit_desk_logo && ( '1' == $main_stick || ( 'enabled' == $sticky_header_meta && ( 'on' == $sticky_primary_header_meta || 'disabled' == $sticky_primary_header_meta ) ) ) && 'none' == $header_style ) { // Logo For None Effect. add_filter( 'astra_has_custom_logo', '__return_true' ); add_filter( 'get_custom_logo', array( $this, 'none_custom_logo' ), 10, 2 ); } if ( true === astra_addon_builder_helper()->is_header_footer_builder_active && 'none' == $header_style ) { // Logo For None Effect. add_filter( 'astra_has_custom_logo', '__return_true' ); add_filter( 'get_custom_logo', array( $this, 'none_custom_logo' ), 10, 2 ); } } /** * Site Header - <header> * * @since 1.0.0 */ public function fixed_header_markup() { if ( apply_filters( 'astra_fixed_header_markup_enabled', true ) ) { $main_stick = astra_get_option( 'header-main-stick' ); $above_stick = astra_get_option( 'header-above-stick' ); $below_stick = astra_get_option( 'header-below-stick' ); $inherit_desk_logo = astra_get_option( 'different-sticky-logo', false ); $sticky_header_meta = astra_get_option_meta( 'stick-header-meta' ); $sticky_primary_header_meta = astra_get_option_meta( 'header-main-stick-meta' ); $sticky_above_header_meta = astra_get_option_meta( 'header-above-stick-meta' ); $sticky_below_header_meta = astra_get_option_meta( 'header-below-stick-meta' ); if ( ! ( ( '1' == $main_stick || ( 'enabled' == $sticky_header_meta && ( 'on' == $sticky_primary_header_meta || 'disabled' == $sticky_primary_header_meta ) ) ) || ( '1' == $above_stick || ( 'enabled' == $sticky_header_meta && ( 'on' == $sticky_above_header_meta || 'disabled' == $sticky_above_header_meta ) ) ) || ( '1' == $below_stick || ( 'enabled' == $sticky_header_meta && ( 'on' == $sticky_below_header_meta || 'disabled' == $sticky_below_header_meta ) ) ) ) ) { return; } $sticky_header_style = astra_get_option( 'sticky-header-style' ); $sticky_hide_on_scroll = astra_get_option( 'sticky-hide-on-scroll' ); if ( 'none' == $sticky_header_style && ! $sticky_hide_on_scroll ) { return; } $header_logo = astra_get_option( 'sticky-header-logo' ); if ( '1' == $inherit_desk_logo && '' != $header_logo ) { add_filter( 'astra_has_custom_logo', '__return_true' ); add_filter( 'astra_disable_site_identity', '__return_true' ); add_filter( 'astra_main_header_retina', '__return_false' ); add_filter( 'astra_replace_logo_width', '__return_false' ); add_filter( 'get_custom_logo', array( $this, 'sticky_custom_logo' ), 10, 2 ); } add_filter( 'astra_show_site_title_h1_tag', '__return_false' ); ?> <header id="ast-fixed-header" <?php astra_header_classes(); ?> style="visibility: hidden;" data-type="fixed-header"> <?php astra_masthead_top(); ?> <?php astra_masthead(); ?> <?php astra_masthead_bottom(); ?> </header><!-- #astra-fixed-header --> <?php if ( '1' == $inherit_desk_logo && '' != $header_logo ) { remove_filter( 'astra_has_custom_logo', '__return_true' ); remove_filter( 'astra_disable_site_identity', '__return_true' ); remove_filter( 'astra_main_header_retina', '__return_false' ); remove_filter( 'astra_replace_logo_width', '__return_false' ); remove_filter( 'get_custom_logo', array( $this, 'sticky_custom_logo' ), 10 ); } remove_filter( 'astra_show_site_title_h1_tag', '__return_false' ); } } /** * Filter the output of logo to fix Googles Error about itemprop logo. * * @since 1.0.0 * @param String $html HTML Markup of the logo. * * @return String Custom logo HTML output */ public function none_custom_logo( $html ) { $header_logo = astra_get_option( 'sticky-header-logo' ); if ( '' !== $header_logo ) { add_filter( 'wp_get_attachment_image_attributes', array( $this, 'sticky_replace_header_logo_attr' ), 10, 3 ); $custom_logo_id = attachment_url_to_postid( $header_logo ); $size = 'ast-sticky-logo-size'; if ( is_customize_preview() ) { $size = 'full'; } $logo = sprintf( '<a href="%1$s" class="sticky-custom-logo" rel="home" %3$s>%2$s</a>', esc_url( home_url( '/' ) ), wp_get_attachment_image( $custom_logo_id, $size, false, array( 'class' => 'custom-logo', ) ), astra_attr( 'site-title-none-sticky-custom-link', array( 'class' => '', ) ) ); remove_filter( 'wp_get_attachment_image_attributes', array( $this, 'sticky_replace_header_logo_attr' ) ); $html = $html . $logo; } return $html; } /** * Filter the output of logo to fix Googles Error about itemprop logo. * * @since 1.0.0 * @param String $html HTML Markup of the logo. * @param int $blog_id ID of the blog to get the custom logo for. * * @return String Custom logo HTML output */ public function sticky_custom_logo( $html, $blog_id ) { $header_logo = astra_get_option( 'sticky-header-logo' ); if ( '' !== $header_logo ) { /* Replace sticky header logo and width */ add_filter( 'wp_get_attachment_image_attributes', array( $this, 'sticky_replace_header_logo_attr' ), 10, 3 ); $custom_logo_id = attachment_url_to_postid( $header_logo ); $size = 'ast-sticky-logo-size'; if ( is_customize_preview() ) { $size = 'full'; } $html = sprintf( '<a href="%1$s" class="sticky-custom-logo" rel="home" %3$s>%2$s</a>', esc_url( home_url( '/' ) ), wp_get_attachment_image( $custom_logo_id, $size, false, array( 'class' => 'custom-logo', ) ), astra_attr( 'site-title-sticky-custom-logo-link', array( 'class' => '', ) ) ); remove_filter( 'wp_get_attachment_image_attributes', array( $this, 'sticky_replace_header_logo_attr' ) ); } return $html; } /** * Replace header logo. * * @param array $attr Image. * @param object $attachment Image obj. * @param sting $size Size name. * * @return array Image attr. */ public function sticky_replace_header_logo_attr( $attr, $attachment, $size ) { $custom_logo = astra_get_option( 'sticky-header-logo' ); $custom_logo_id = attachment_url_to_postid( $custom_logo ); if ( $custom_logo_id == $attachment->ID ) { $attach_data = array(); if ( ! is_customize_preview() ) { $attach_data = wp_get_attachment_image_src( $attachment->ID, 'ast-sticky-logo-size' ); if ( isset( $attach_data[0] ) ) { $attr['src'] = $attach_data[0]; } } $file_type = wp_check_filetype( $attr['src'] ); $file_extension = $file_type['ext']; if ( 'svg' == $file_extension ) { $attr['width'] = '100%'; $attr['height'] = '100%'; $attr['class'] = 'astra-logo-svg'; } $diff_retina_logo = astra_get_option( 'different-sticky-retina-logo' ); if ( '1' == $diff_retina_logo ) { $retina_logo = astra_get_option( 'sticky-header-retina-logo' ); $custom_logo = $attr['src']; $attr['srcset'] = ''; if ( '' !== $retina_logo ) { if ( astra_check_is_ie() ) { // Replace header logo url to retina logo url. $attr['src'] = $retina_logo; } $attr['srcset'] = $custom_logo . ' 1x, ' . $retina_logo . ' 2x'; } } } return $attr; } /** * Enqueue Admin Scripts Callback * * @param String $hook Screen name where the hook is fired. */ public function admin_enqueue_scripts( $hook ) { if ( in_array( $hook, array( 'post.php', 'post-new.php' ) ) ) { $post_types = get_post_types( array( 'public' => true ) ); $screen = get_current_screen(); $post_type = $screen->id; if ( in_array( $post_type, (array) $post_types ) ) { /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = ''; $dir_name = 'unminified'; } wp_enqueue_script( 'astra-ext-sticky-header-metabox', ASTRA_ADDON_EXT_STICKY_HEADER_URI . 'assets/js/' . $dir_name . '/metabox' . $file_prefix . '.js', array( 'jquery' ), ASTRA_EXT_VER, true ); } } } /** * Add Scripts Callback */ public function add_scripts() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_STICKY_HEADER_URI . 'assets/js/'; $path = ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'assets/js/'; /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = ''; $dir_name = 'unminified'; } $js_uri = $uri . $dir_name . '/'; $js_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $js_uri; } else { $gen_path = $js_dir; } /*** End Path Logic */ Astra_Minify::add_dependent_js( 'jquery' ); if ( version_compare( '1.0.17', ASTRA_THEME_VERSION ) > -1 ) { Astra_Minify::add_js( $gen_path . 'sticky-header-compatibility' . $file_prefix . '.js' ); } Astra_Minify::add_js( $gen_path . 'sticky-header' . $file_prefix . '.js' ); } /** * Add Localize variables * * @param array $localize_vars Localize variables array. * @return array */ public function localize_variables( $localize_vars ) { $site_layout = ''; if ( Astra_Ext_Extension::is_active( 'site-layouts' ) ) { $site_layout = astra_get_option( 'site-layout' ); } /** * Stick Header */ $localize_vars['header_main_stick'] = astra_get_option( 'header-main-stick' ); $localize_vars['header_above_stick'] = astra_get_option( 'header-above-stick' ); $localize_vars['header_below_stick'] = astra_get_option( 'header-below-stick' ); $localize_vars['stick_header_meta'] = astra_get_option_meta( 'stick-header-meta' ); $localize_vars['header_main_stick_meta'] = astra_get_option_meta( 'header-main-stick-meta' ); $localize_vars['header_above_stick_meta'] = astra_get_option_meta( 'header-above-stick-meta' ); $localize_vars['header_below_stick_meta'] = astra_get_option_meta( 'header-below-stick-meta' ); /** * Sticky Header on Devices */ $localize_vars['sticky_header_on_devices'] = astra_get_option_meta( 'sticky-header-on-devices' ); /** * Sticky Header Style */ $localize_vars['sticky_header_style'] = astra_get_option_meta( 'sticky-header-style' ); $localize_vars['sticky_hide_on_scroll'] = astra_get_option_meta( 'sticky-hide-on-scroll' ); /** * Breakpoint */ $localize_vars['break_point'] = astra_header_break_point(); $localize_vars['tablet_break_point'] = astra_addon_get_tablet_breakpoint(); $localize_vars['mobile_break_point'] = astra_addon_get_mobile_breakpoint(); $localize_vars['header_main_shrink'] = astra_get_option( 'header-main-shrink' ); $localize_vars['header_logo_width'] = astra_get_option( 'ast-header-logo-width' ); $localize_vars['responsive_header_logo_width'] = astra_get_option( 'ast-header-responsive-logo-width' ); $localize_vars['stick_origin_position'] = apply_filters( 'astra_addon_sticky_header_stick_origin_position', false ); /** * Site Layout */ $localize_vars['site_layout'] = esc_attr( $site_layout ); $localize_vars['site_content_width'] = ( ASTRA_THEME_CONTAINER_PADDING_TWICE + astra_get_option( 'site-content-width' ) ); $localize_vars['site_layout_padded_width'] = ( astra_get_option( 'site-layout-padded-width', 1200 ) ); $localize_vars['site_layout_box_width'] = ( astra_get_option( 'site-layout-box-width', 1200 ) ); /** * Is new header builder active. */ $localize_vars['header_builder_active'] = astra_addon_builder_helper()->is_header_footer_builder_active; $localize_vars['component_limit'] = astra_addon_builder_helper()->component_limit; return $localize_vars; } /** * Add Meta Options * * @param array $meta_option Page Meta. * @return array */ public function add_options( $meta_option ) { $meta_option['stick-header-meta'] = array( 'sanitize' => 'FILTER_SANITIZE_STRING', 'default' => astra_get_option_meta( 'stick-header-meta' ), ); $meta_option['header-main-stick-meta'] = array( 'sanitize' => 'FILTER_SANITIZE_STRING', 'default' => astra_get_option_meta( 'header-main-stick-meta' ), ); if ( Astra_Ext_Extension::is_active( 'header-sections' ) ) { $meta_option['header-above-stick-meta'] = array( 'sanitize' => 'FILTER_SANITIZE_STRING', 'default' => astra_get_option_meta( 'header-above-stick-meta' ), ); $meta_option['header-below-stick-meta'] = array( 'sanitize' => 'FILTER_SANITIZE_STRING', 'default' => astra_get_option_meta( 'header-below-stick-meta' ), ); } return $meta_option; } /** * Sticky Header Meta Field markup * * Loads appropriate template file based on the style option selected in options panel. * * @param array $meta Page Meta. * @since 1.0.0 */ public function add_options_markup( $meta ) { /** * Get options */ $sticky_main = ( isset( $meta['header-main-stick-meta']['default'] ) ) ? $meta['header-main-stick-meta']['default'] : 'on'; $stick_header_meta = ( isset( $meta['stick-header-meta']['default'] ) ) ? $meta['stick-header-meta']['default'] : 'default'; $show_meta_field = ! astra_check_is_bb_themer_layout(); if ( Astra_Ext_Extension::is_active( 'header-sections' ) ) { $sticky_top = ( isset( $meta['header-above-stick-meta']['default'] ) ) ? $meta['header-above-stick-meta']['default'] : 'on'; $sticky_below = ( isset( $meta['header-below-stick-meta']['default'] ) ) ? $meta['header-below-stick-meta']['default'] : 'on'; } ?> <?php if ( $show_meta_field ) { ?> <div class="stick-header-wrapper"> <p class="post-attributes-label-wrapper"> <strong> <?php esc_html_e( 'Sticky Header', 'astra-addon' ); ?> </strong><br/> </p> <select name="stick-header-meta" id="stick-header-meta"> <option value="default" <?php selected( $stick_header_meta, 'default' ); ?>> <?php esc_html_e( 'Customizer Setting', 'astra-addon' ); ?> </option> <option value="enabled" <?php selected( $stick_header_meta, 'enabled' ); ?>> <?php esc_html_e( 'Enabled', 'astra-addon' ); ?> </option> <option value="disabled" <?php selected( $stick_header_meta, 'disabled' ); ?>> <?php esc_html_e( 'Disabled', 'astra-addon' ); ?> </option> </select> <div id="stick-header-meta-options"> <?php if ( Astra_Ext_Extension::is_active( 'header-sections' ) ) { // Above Header Layout. $above_header_layout = astra_get_option( 'above-header-layout' ); if ( 'disabled' != $above_header_layout ) { ?> <div class="sticky-above-header-meta-wrapper" > <p class="post-attributes-label-wrapper"> <input type="checkbox" id="header-above-stick-meta" name="header-above-stick-meta" value="on" <?php checked( $sticky_top, 'on' ); ?> /> <label for="header-above-stick-meta"><?php esc_html_e( 'Stick Above Header', 'astra-addon' ); ?></label> </p> </div> <?php } } // Main Header Layout. $header_layouts = astra_get_option( 'header-layouts' ); if ( 'header-main-layout-5' != $header_layouts ) { ?> <div class="stick-main-header-meta-wrapper"> <p class="post-attributes-label-wrapper"> <input type="checkbox" id="header-main-stick-meta" name="header-main-stick-meta" value="on" <?php checked( $sticky_main, 'on' ); ?> /> <label for="header-main-stick-meta"><?php esc_html_e( 'Stick Primary Header', 'astra-addon' ); ?></label> </p> </div> <?php } if ( Astra_Ext_Extension::is_active( 'header-sections' ) ) { // Below Header Layout. $below_header_layout = astra_get_option( 'below-header-layout' ); if ( 'disabled' != $below_header_layout ) { ?> <div class="sticky-below-header-meta-wrapper" > <p class="post-attributes-label-wrapper"> <input type="checkbox" id="header-below-stick-meta" name="header-below-stick-meta" value="on" <?php checked( $sticky_below, 'on' ); ?> /> <label for="header-below-stick-meta"><?php esc_html_e( 'Stick Below Header', 'astra-addon' ); ?></label> </p> </div> <?php } } ?> </div> </div> <?php } ?> <?php } /** * Add Styles Callback */ public function add_styles() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_STICKY_HEADER_URI . 'assets/css/'; $path = ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'assets/css/'; $rtl = ''; if ( is_rtl() ) { $rtl = '-rtl'; } /* Directory and Extension */ $file_prefix = $rtl . '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = $rtl; $dir_name = 'unminified'; } $css_uri = $uri . $dir_name . '/'; $css_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $css_uri; } else { $gen_path = $css_dir; } /*** End Path Logic */ Astra_Minify::add_css( $gen_path . 'style' . $file_prefix . '.css' ); } /** * Add Styles Callback */ public function customizer_save() { /* Generate Sticky Header Logo */ $sticky_logo = astra_get_option( 'sticky-header-logo' ); if ( '' !== $sticky_logo ) { add_filter( 'intermediate_image_sizes_advanced', array( $this, 'sticky_logo_image_sizes' ), 10, 2 ); $sticky_logo_id = attachment_url_to_postid( $sticky_logo ); Astra_Customizer::generate_logo_by_width( $sticky_logo_id ); } } /** * Add logo image sizes in filter. * * @since 1.0.0 * @param array $sizes Sizes. * @param array $metadata attachment data. * * @return array */ public function sticky_logo_image_sizes( $sizes, $metadata ) { $logo_width = astra_get_option( 'sticky-header-logo-width' ); if ( is_array( $sizes ) && '' != $logo_width['desktop'] ) { $max_value = max( $logo_width ); $sizes['ast-sticky-logo-size'] = array( 'width' => (int) $max_value, 'height' => 0, 'crop' => false, ); } return $sizes; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Sticky_Header_Markup::get_instance(); index.php 0000666 00000000176 15165306611 0006400 0 ustar 00 <?php /** * Index file * * @package Astra Addon * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ class-astra-ext-sticky-header.php 0000666 00000006305 15165306611 0013036 0 ustar 00 <?php /** * Sticky Header Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_STICKY_HEADER_DIR', ASTRA_EXT_DIR . 'addons/sticky-header/' ); define( 'ASTRA_ADDON_EXT_STICKY_HEADER_URI', ASTRA_EXT_URI . 'addons/sticky-header/' ); if ( ! class_exists( 'Astra_Ext_Sticky_Header' ) ) { /** * Sticky Header Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Sticky_Header { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks */ public function __construct() { require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/class-astra-ext-sticky-header-loader.php'; require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/class-astra-ext-sticky-header-markup.php'; // Include front end files. if ( ! is_admin() ) { require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/dynamic.css.php'; // Check Header Sections is activated. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/header-sections-dynamic.css.php'; // Check Site Layouts is activated. if ( Astra_Ext_Extension::is_active( 'site-layouts' ) ) { require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/site-layouts-dynamic.css.php'; } if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { // Sticky Header Button CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/button-dynamic.css.php'; // Sticky Header Social CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/social-dynamic.css.php'; // Sticky Header Search CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/search-dynamic.css.php'; // Sticky Header HTML CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/html-dynamic.css.php'; if ( ! astra_addon_remove_widget_design_options() ) { // Sticky Header Widget CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/widget-dynamic.css.php'; } // Sticky Header divider CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/divider-dynamic.css.php'; // Sticky Header language-switcher CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/language-switcher-dynamic.css.php'; // Sticky Account divider CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/account-dynamic.css.php'; // Sticky Menu Toggle CSS. require_once ASTRA_ADDON_EXT_STICKY_HEADER_DIR . 'classes/dynamic-css/toggle-dynamic.css.php'; } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Sticky_Header::get_instance(); }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings