File manager - Edit - /home/premiey/www/wp-includes/images/media/advanced-search.tar
Back
assets/js/minified/advanced-search.min.js 0000666 00000005643 15165507576 0014433 0 ustar 00 !function(){var e,t;function o(e){var t=(t=document.body.className).replace(e,"");document.body.className=t}function d(e){e.style.display="block",setTimeout(function(){e.style.opacity=1},1)}function n(e){e.style.opacity="",setTimeout(function(){e.style.display=""},200)}e="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",t="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+e,document.body.className+=" "+t;for(var a=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),s=0;a.length>s;s++)a[s].onclick=function(e){var t,a,o,n;if(e.preventDefault(),e=e||window.event,this.classList.contains("header-cover"))for(var s=document.querySelectorAll(".ast-search-box.header-cover"),c=astraAddon.is_header_builder_active||!1,r=0;r<s.length;r++)for(var l=s[r].parentNode.querySelectorAll("a.astra-search-icon"),i=0;i<l.length;i++)l[i]==this&&(d(s[r]),s[r].querySelector("input.search-field").focus(),c?(t=s[r],n=o=a=void 0,document.body.classList.contains("ast-header-break-point")&&(n=document.querySelector(".main-navigation"),a=document.querySelector(".main-header-bar"),o=document.querySelector(".ast-mobile-header-wrap"),null!==a&&null!==n&&(n=n.offsetHeight,a=a.offsetHeight,o=o.offsetHeight,n=n&&!document.body.classList.contains("ast-no-toggle-menu-enable")?parseFloat(n)-parseFloat(a):parseFloat(a),t.parentNode.classList.contains("ast-mobile-header-wrap")&&(n=parseFloat(o)),t.style.maxHeight=Math.abs(n)+"px"))):(a=s[r],t=o=void 0,document.body.classList.contains("ast-header-break-point")&&(t=document.querySelector(".main-navigation"),null!==(o=document.querySelector(".main-header-bar"))&&null!==t&&(t=t.offsetHeight,o=o.offsetHeight,t=t&&!document.body.classList.contains("ast-no-toggle-menu-enable")?parseFloat(t)-parseFloat(o):parseFloat(o),a.style.maxHeight=Math.abs(t)+"px"))));else!this.classList.contains("full-screen")||(e=document.getElementById("ast-seach-full-screen-form")).classList.contains("full-screen")&&(d(e),document.body.className+=" full-screen",e.querySelector("input.search-field").focus())};for(var c=document.querySelectorAll(".ast-search-box .close"),s=0,r=c.length;s<r;++s)c[s].onclick=function(e){e=e||window.event;for(var t=this;;){if(t.parentNode.classList.contains("ast-search-box")){n(t.parentNode),o("full-screen");break}if(t.parentNode.classList.contains("site-header"))break;t=t.parentNode}};document.onkeydown=function(e){if(27==e.keyCode)for(var e=document.getElementById("ast-seach-full-screen-form"),t=(null!=e&&(n(e),o("full-screen")),document.querySelectorAll(".ast-search-box.header-cover")),a=0;a<t.length;a++)n(t[a])},window.addEventListener("resize",function(){if("BODY"===document.activeElement.tagName&&"INPUT"!=document.activeElement.tagName){var e=document.querySelectorAll(".ast-search-box.header-cover");if(!document.body.classList.contains("ast-header-break-point"))for(var t=0;t<e.length;t++)e[t].style.maxHeight="",e[t].style.opacity="",e[t].style.display=""}})}(); assets/js/minified/customizer-preview.min.js 0000666 00000000237 15165507576 0015300 0 ustar 00 !function(a){wp.customize("ast-settings[advanced-search-icon-size]",function(b){b.bind(function(b){a(".ast-scroll-top i").css("font-size",b+"px")})})}(jQuery); assets/js/unminified/advanced-search.js 0000666 00000014722 15165507576 0014212 0 ustar 00 /** * Advanced Search Styling * * @package Astra Addon * @since 1.4.8 */ ( function() { function body_iphone_classes() { var iphone = ( navigator.userAgent.match(/iPhone/i) == 'iPhone' ) ? 'iphone' : ''; var ipod = ( navigator.userAgent.match(/iPod/i) == 'iPod' ) ? 'ipod' : ''; document.body.className += ' ' + iphone; document.body.className += ' ' + ipod; } body_iphone_classes(); function remove_style_class( style ) { var allClasses = document.body.className; allClasses = allClasses.replace( style, '' ); document.body.className = allClasses; } function add_style_class( style ) { document.body.className += ' ' + style; } // Helper Function. function fade_in( element ) { element.style.display = 'block'; setTimeout(function() { element.style.opacity = 1; }, 1); } function fade_out( element ) { element.style.opacity = ''; setTimeout(function() { element.style.display = ''; }, 200); } function header_cover_form_height( current_header_cover_form ) { // Primary header cover search. if ( document.body.classList.contains('ast-header-break-point') ) { var site_navigation = document.querySelector( '.main-navigation' ); var main_header_bar = document.querySelector( '.main-header-bar' ); if( null !== main_header_bar && null !== site_navigation ) { var site_navigation_outer_height = site_navigation.offsetHeight; var main_header_outer_height = main_header_bar.offsetHeight; // Have a navigation outer height. // And primary header NOT have the `No Toggle` style. if( site_navigation_outer_height && ( ! document.body.classList.contains('ast-no-toggle-menu-enable') ) ) { var search_height = parseFloat(site_navigation_outer_height) - parseFloat(main_header_outer_height); } else { var search_height = parseFloat(main_header_outer_height); } current_header_cover_form.style.maxHeight = Math.abs( search_height ) + "px"; } } } function header_builder_cover_form_height( current_header_cover_form ) { // Primary header cover search. if ( document.body.classList.contains('ast-header-break-point') ) { var site_navigation = document.querySelector( '.main-navigation' ); var main_header_bar = document.querySelector( '.main-header-bar' ); var mobile_header_bar = document.querySelector( '.ast-mobile-header-wrap' ); if( null !== main_header_bar && null !== site_navigation ) { var site_navigation_outer_height = site_navigation.offsetHeight; var main_header_outer_height = main_header_bar.offsetHeight; var mobile_header_outer_height = mobile_header_bar.offsetHeight; // Have a navigation outer height. // And primary header NOT have the `No Toggle` style. if( site_navigation_outer_height && ( ! document.body.classList.contains('ast-no-toggle-menu-enable') ) ) { var search_height = parseFloat(site_navigation_outer_height) - parseFloat(main_header_outer_height); } else { var search_height = parseFloat(main_header_outer_height); } if ( current_header_cover_form.parentNode.classList.contains( 'ast-mobile-header-wrap' ) ) { var search_height = parseFloat(mobile_header_outer_height); } current_header_cover_form.style.maxHeight = Math.abs( search_height ) + "px"; } } } var searchIcons = document.querySelectorAll( 'a.astra-search-icon:not(.slide-search)' ); for ( var i = 0; searchIcons.length > i; i++ ) { searchIcons[i].onclick = function ( evt ) { evt.preventDefault(); if ( ! evt ) { evt = window.event; } if ( this.classList.contains( 'header-cover' ) ) { var header_cover = document.querySelectorAll( '.ast-search-box.header-cover' ), header_builder_active = astraAddon.is_header_builder_active || false; for (var j = 0; j < header_cover.length; j++) { var header_cover_icon = header_cover[j].parentNode.querySelectorAll( 'a.astra-search-icon' ); for (var k = 0; k < header_cover_icon.length; k++) { if ( header_cover_icon[k] == this ) { fade_in( header_cover[j] ); header_cover[j].querySelector( 'input.search-field' ).focus(); // Set header cover form height. if ( header_builder_active ) { header_builder_cover_form_height( header_cover[j] ); } else { header_cover_form_height( header_cover[j] ); } } }; }; } else if ( this.classList.contains( 'full-screen' ) ) { var fullScreen = document.getElementById( 'ast-seach-full-screen-form' ); if ( fullScreen.classList.contains( 'full-screen' ) ) { fade_in( fullScreen ); add_style_class( 'full-screen' ); fullScreen.querySelector( 'input.search-field' ).focus(); } } }; }; /* Search Header Cover & Full Screen Close */ var closes = document.querySelectorAll( '.ast-search-box .close' ); for (var i = 0, len = closes.length; i < len; ++i) { closes[i].onclick = function(evt){ if ( ! evt) { evt = window.event; } var self = this; while ( 1 ) { if ( self.parentNode.classList.contains( 'ast-search-box' ) ) { fade_out( self.parentNode ); remove_style_class( 'full-screen' ); break; } else if ( self.parentNode.classList.contains( 'site-header' ) ) { break; } self = self.parentNode; } }; } document.onkeydown = function ( evt ) { if ( evt.keyCode == 27 ) { var fullScreenForm = document.getElementById( 'ast-seach-full-screen-form' ); if ( null != fullScreenForm ) { fade_out( fullScreenForm ); remove_style_class( 'full-screen' ); } var header_cover = document.querySelectorAll( '.ast-search-box.header-cover' ); for (var j = 0; j < header_cover.length; j++) { fade_out( header_cover[j] ); } } } window.addEventListener("resize", function() { if( 'BODY' !== document.activeElement.tagName ) { return; } // Skip resize event when keyboard display event triggers on devices. if( 'INPUT' != document.activeElement.tagName ) { var header_cover = document.querySelectorAll( '.ast-search-box.header-cover' ); if ( ! document.body.classList.contains( 'ast-header-break-point' ) ) { for (var j = 0; j < header_cover.length; j++) { header_cover[j].style.maxHeight = ''; header_cover[j].style.opacity = ''; header_cover[j].style.display = ''; } } } }); } )(); assets/css/minified/style.min.css 0000666 00000021222 15165507576 0013102 0 ustar 00 .main-header-bar-wrap .ast-search-box.header-cover{z-index:7}.ast-below-header-wrap .ast-search-box.header-cover #close,.ast-below-header-wrap .ast-search-box.header-cover .search-field{font-size:1.8em}.ast-below-header-wrap .ast-search-box.header-cover .search-submit{font-size:1.5em}.ast-search-box.full-screen,.ast-search-box.header-cover{display:none;opacity:0;transition:opacity .2s;width:100%;height:100%}.ast-search-box.full-screen .search-field,.ast-search-box.header-cover .search-field{background:0 0;border:0;color:#fafafa;box-shadow:none;text-align:left;padding:0}.ast-search-box.full-screen .search-submit,.ast-search-box.header-cover .search-submit{background:0 0;padding:0;color:#9e9e9e;transition:all .7s ease-In;outline:0;border:0;vertical-align:middle}.ast-search-box.full-screen .ast-search-wrapper,.ast-search-box.header-cover .ast-search-wrapper{position:absolute;width:100%;left:50%;top:50%;transform:translate(-50%,-50%)}.ast-search-box.full-screen .ast-search-wrapper .search-form,.ast-search-box.header-cover .ast-search-wrapper .search-form{line-height:normal}.ast-search-box.full-screen #close,.ast-search-box.header-cover #close{color:#fafafa;transform:rotate(0);font-size:2em;cursor:pointer;z-index:9;font-weight:400}.ast-search-box.full-screen .search-field::-webkit-input-placeholder,.ast-search-box.header-cover .search-field::-webkit-input-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field:-moz-placeholder,.ast-search-box.header-cover .search-field:-moz-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field::-moz-placeholder,.ast-search-box.header-cover .search-field::-moz-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field:-ms-input-placeholder,.ast-search-box.header-cover .search-field:-ms-input-placeholder{color:#fafafa}.ast-search-box.header-cover{position:absolute;background:rgba(25,25,25,.94);top:0;z-index:10}.ast-search-box.header-cover .search-field{font-size:2em;line-height:2;width:100%}.ast-search-box.header-cover .ast-container{position:relative}.ast-search-box.header-cover .close,.ast-search-box.header-cover .search-submit,.ast-search-box.header-cover .search-text-wrap{display:inline-block}.ast-search-box.header-cover .search-text-wrap{width:calc(100% - 2.5em);vertical-align:middle}.ast-search-box.header-cover .search-submit{font-size:1.7em;margin-right:2em}.ast-search-box.header-cover #close{vertical-align:middle;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ast-search-box.full-screen{position:fixed;background:rgba(25,25,25,.94);top:0;left:0;z-index:999}.ast-search-box.full-screen .ast-search-wrapper .large-search-text{text-align:center;color:#e2e2e2;font-size:1.5em;font-weight:400;transition-delay:50ms;transition:all .3s ease-in-out}.ast-search-box.full-screen .ast-search-wrapper fieldset{border:0;padding:2.5em 0 1em;border-bottom:2px solid #9e9e9e}.ast-search-box.full-screen .ast-search-wrapper .search-field{font-size:2.6em;padding-left:30px;line-height:1.7;width:90%;width:calc(100% - 1.5em);vertical-align:middle;text-align:center}.ast-search-box.full-screen .ast-search-wrapper .search-form{width:70%;margin:20px auto}.ast-search-box.full-screen .ast-search-wrapper .search-submit{font-size:2em}.ast-search-box.full-screen #close{position:absolute;color:#fafafa;right:1em;line-height:1;cursor:pointer;z-index:9;font-weight:400;font-size:2em;top:1.5em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ast-search-box.full-screen ::-webkit-input-placeholder{opacity:0}.ast-search-box.full-screen ::-moz-placeholder{opacity:0}.ast-search-box.full-screen :-ms-input-placeholder{opacity:0}.ast-search-box.full-screen :-moz-placeholder{opacity:0}@media (max-width:420px){.ast-search-box.full-screen ::-webkit-input-placeholder{opacity:1}.ast-search-box.full-screen ::-moz-placeholder{opacity:1}.ast-search-box.full-screen :-ms-input-placeholder{opacity:1}.ast-search-box.full-screen :-moz-placeholder{opacity:1}}.ast-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder{opacity:.5}.site-header .ast-inline-search.ast-search-menu-icon .search-form{padding-left:0;padding-right:2em}.site-header .ast-inline-search.ast-search-menu-icon .search-field{width:auto;padding-left:1em;padding-right:0}.ast-inline-search.ast-search-menu-icon{position:relative;transform:none;left:0;right:0}.ast-inline-search.ast-search-menu-icon .search-submit{display:block;background:0 0;border:none;position:absolute;height:100%;right:.25em;padding:0;top:0;font-size:1.3em;color:#757575}.ast-header-break-point .ast-inline-search.ast-search-menu-icon .search-form{padding:0}.ast-header-break-point .site-header .ast-inline-search.ast-search-menu-icon .search-field{width:100%;padding-right:2em}.ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.full-screen,.ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.header-cover{display:none}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .ast-search-menu-icon .search-form{right:-1em;left:auto;padding-left:0;padding-right:3em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .search-field{padding-right:0;padding-left:1em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .ast-search-menu-icon .search-form{left:-1em;right:auto;padding-right:0;padding-left:3em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .search-field{padding-left:0;padding-right:1em}.ast-header-break-point .ast-above-header .ast-above-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field{padding-right:0}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon .search-form{padding-left:0;left:auto;padding-right:2em}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon.slide-search .search-form{left:-1em;padding-left:2em}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-1 .search-field{padding-right:0}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .search-field{padding-right:0;padding-left:1em}.ast-header-break-point .ast-above-header-mobile-stack .ast-above-header .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{right:auto;padding-right:2em}.ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon.ast-inline-search .search-form{left:0;padding-left:0;padding-right:2em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .ast-search-menu-icon .search-form{right:-1em;left:auto;padding-left:0;padding-right:3em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .search-field{padding-right:0;padding-left:1em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .ast-search-menu-icon .search-form{left:-1em;right:auto;padding-right:0;padding-left:3em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .search-field{padding-left:0;padding-right:1em}.ast-header-break-point .ast-below-header .below-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field{padding-right:0}.ast-header-break-point .ast-swap-below-header-sections.site-header .ast-below-header .ast-inline-search.ast-search-menu-icon .search-field{padding-left:1em;padding-right:0}.ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon .search-form{left:-1em;padding-left:3em;padding-right:1em}.ast-below-header-mobile-stack .ast-below-header .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{right:auto;padding-right:2em}.iphone.full-screen,.ipod.full-screen{position:fixed!important}@media (max-width:992px){.ast-above-header-mobile-stack .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{left:auto}.ast-below-header-mobile-stack .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{left:auto}}@media (max-width:544px){.ast-search-box.full-screen .ast-search-wrapper .large-search-text{display:none}.ast-search-box.full-screen .ast-search-wrapper .search-field,.ast-search-box.full-screen .ast-search-wrapper .search-submit{font-size:1.6em}} assets/css/minified/advanced-search-shortcode-rtl.min.css 0000666 00000001222 15165507576 0017537 0 ustar 00 .astra-search-shortcode{position:relative;display:inline-block;padding:0 1em}.astra-search-shortcode.inline{padding:0}.astra-search-shortcode.cover{position:static}.ast-search-box.header-cover{top:0;right:0;left:0;bottom:0;z-index:10}.ast-inline-search.ast-search-menu-icon .search-field{width:100%}.ast-header-break-point .astra-search-shortcode .ast-search-icon{display:block}.astra-search-shortcode.slide.right form{left:auto;right:-1em;padding:0 2em 0 0}.iphone.full-screen,.ipod.full-screen{position:fixed!important}#secondary .ast-search-box.full-screen .search-submit{font-size:2em}#secondary .ast-search-box.full-screen .search-field{font-size:2.6em} assets/css/minified/advanced-search-shortcode.min.css 0000666 00000001222 15165507576 0016740 0 ustar 00 .astra-search-shortcode{position:relative;display:inline-block;padding:0 1em}.astra-search-shortcode.inline{padding:0}.astra-search-shortcode.cover{position:static}.ast-search-box.header-cover{top:0;left:0;right:0;bottom:0;z-index:10}.ast-inline-search.ast-search-menu-icon .search-field{width:100%}.ast-header-break-point .astra-search-shortcode .ast-search-icon{display:block}.astra-search-shortcode.slide.right form{right:auto;left:-1em;padding:0 0 0 2em}.iphone.full-screen,.ipod.full-screen{position:fixed!important}#secondary .ast-search-box.full-screen .search-submit{font-size:2em}#secondary .ast-search-box.full-screen .search-field{font-size:2.6em} assets/css/minified/style-rtl.min.css 0000666 00000021227 15165507576 0013706 0 ustar 00 .main-header-bar-wrap .ast-search-box.header-cover{z-index:7}.ast-below-header-wrap .ast-search-box.header-cover #close,.ast-below-header-wrap .ast-search-box.header-cover .search-field{font-size:1.8em}.ast-below-header-wrap .ast-search-box.header-cover .search-submit{font-size:1.5em}.ast-search-box.full-screen,.ast-search-box.header-cover{display:none;opacity:0;transition:opacity .2s;width:100%;height:100%}.ast-search-box.full-screen .search-field,.ast-search-box.header-cover .search-field{background:100% 0;border:0;color:#fafafa;box-shadow:none;text-align:right;padding:0}.ast-search-box.full-screen .search-submit,.ast-search-box.header-cover .search-submit{background:100% 0;padding:0;color:#9e9e9e;transition:all .7s ease-In;outline:0;border:0;vertical-align:middle}.ast-search-box.full-screen .ast-search-wrapper,.ast-search-box.header-cover .ast-search-wrapper{position:absolute;width:100%;right:50%;top:50%;transform:translate(50%,-50%)}.ast-search-box.full-screen .ast-search-wrapper .search-form,.ast-search-box.header-cover .ast-search-wrapper .search-form{line-height:normal}.ast-search-box.full-screen #close,.ast-search-box.header-cover #close{color:#fafafa;transform:rotate(0);font-size:2em;cursor:pointer;z-index:9;font-weight:400}.ast-search-box.full-screen .search-field::-webkit-input-placeholder,.ast-search-box.header-cover .search-field::-webkit-input-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field:-moz-placeholder,.ast-search-box.header-cover .search-field:-moz-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field::-moz-placeholder,.ast-search-box.header-cover .search-field::-moz-placeholder{color:#fafafa}.ast-search-box.full-screen .search-field:-ms-input-placeholder,.ast-search-box.header-cover .search-field:-ms-input-placeholder{color:#fafafa}.ast-search-box.header-cover{position:absolute;background:rgba(25,25,25,.94);top:0;z-index:10}.ast-search-box.header-cover .search-field{font-size:2em;line-height:2;width:100%}.ast-search-box.header-cover .ast-container{position:relative}.ast-search-box.header-cover .close,.ast-search-box.header-cover .search-submit,.ast-search-box.header-cover .search-text-wrap{display:inline-block}.ast-search-box.header-cover .search-text-wrap{width:calc(100% - 2.5em);vertical-align:middle}.ast-search-box.header-cover .search-submit{font-size:1.7em;margin-left:2em}.ast-search-box.header-cover #close{vertical-align:middle;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ast-search-box.full-screen{position:fixed;background:rgba(25,25,25,.94);top:0;right:0;z-index:999}.ast-search-box.full-screen .ast-search-wrapper .large-search-text{text-align:center;color:#e2e2e2;font-size:1.5em;font-weight:400;transition-delay:50ms;transition:all .3s ease-in-out}.ast-search-box.full-screen .ast-search-wrapper fieldset{border:0;padding:2.5em 0 1em;border-bottom:2px solid #9e9e9e}.ast-search-box.full-screen .ast-search-wrapper .search-field{font-size:2.6em;padding-right:30px;line-height:1.7;width:90%;width:calc(100% - 1.5em);vertical-align:middle;text-align:center}.ast-search-box.full-screen .ast-search-wrapper .search-form{width:70%;margin:20px auto}.ast-search-box.full-screen .ast-search-wrapper .search-submit{font-size:2em}.ast-search-box.full-screen #close{position:absolute;color:#fafafa;left:1em;line-height:1;cursor:pointer;z-index:9;font-weight:400;font-size:2em;top:1.5em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ast-search-box.full-screen ::-webkit-input-placeholder{opacity:0}.ast-search-box.full-screen ::-moz-placeholder{opacity:0}.ast-search-box.full-screen :-ms-input-placeholder{opacity:0}.ast-search-box.full-screen :-moz-placeholder{opacity:0}@media (max-width:420px){.ast-search-box.full-screen ::-webkit-input-placeholder{opacity:1}.ast-search-box.full-screen ::-moz-placeholder{opacity:1}.ast-search-box.full-screen :-ms-input-placeholder{opacity:1}.ast-search-box.full-screen :-moz-placeholder{opacity:1}}.ast-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder{opacity:.5}.ast-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder{opacity:.5}.site-header .ast-inline-search.ast-search-menu-icon .search-form{padding-right:0;padding-left:2em}.site-header .ast-inline-search.ast-search-menu-icon .search-field{width:auto;padding-right:1em;padding-left:0}.ast-inline-search.ast-search-menu-icon{position:relative;transform:none;right:0;left:0}.ast-inline-search.ast-search-menu-icon .search-submit{display:block;background:0 0;border:none;position:absolute;height:100%;left:.25em;padding:0;top:0;font-size:1.3em;color:#757575}.ast-header-break-point .ast-inline-search.ast-search-menu-icon .search-form{padding:0}.ast-header-break-point .site-header .ast-inline-search.ast-search-menu-icon .search-field{width:100%;padding-left:2em}.ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.full-screen,.ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.header-cover{display:none}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .ast-search-menu-icon .search-form{left:-1em;right:auto;padding-right:0;padding-left:3em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .search-field{padding-left:0;padding-right:1em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .ast-search-menu-icon .search-form{right:-1em;left:auto;padding-left:0;padding-right:3em}.ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .search-field{padding-right:0;padding-left:1em}.ast-header-break-point .ast-above-header .ast-above-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field{padding-left:0}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon .search-form{padding-right:0;right:auto;padding-left:2em}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon.slide-search .search-form{right:-1em;padding-right:2em}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-1 .search-field{padding-left:0}.ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .search-field{padding-left:0;padding-right:1em}.ast-header-break-point .ast-above-header-mobile-stack .ast-above-header .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{left:auto;padding-left:2em}.ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon.ast-inline-search .search-form{right:0;padding-right:0;padding-left:2em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .ast-search-menu-icon .search-form{left:-1em;right:auto;padding-right:0;padding-left:3em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .search-field{padding-left:0;padding-right:1em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .ast-search-menu-icon .search-form{right:-1em;left:auto;padding-left:0;padding-right:3em}.ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .search-field{padding-right:0;padding-left:1em}.ast-header-break-point .ast-below-header .below-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field{padding-left:0}.ast-header-break-point .ast-swap-below-header-sections.site-header .ast-below-header .ast-inline-search.ast-search-menu-icon .search-field{padding-right:1em;padding-left:0}.ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon .search-form{right:-1em;padding-right:3em;padding-left:1em}.ast-below-header-mobile-stack .ast-below-header .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{left:auto;padding-left:2em}.iphone.full-screen,.ipod.full-screen{position:fixed!important}@media (max-width:992px){.ast-above-header-mobile-stack .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{right:auto}.ast-below-header-mobile-stack .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form{right:auto}}@media (max-width:544px){.ast-search-box.full-screen .ast-search-wrapper .large-search-text{display:none}.ast-search-box.full-screen .ast-search-wrapper .search-field,.ast-search-box.full-screen .ast-search-wrapper .search-submit{font-size:1.6em}} assets/css/unminified/style-rtl.css 0000666 00000026103 15165507576 0013465 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ /** * Header Cover / Full Screen Search */ .main-header-bar-wrap .ast-search-box.header-cover { z-index: 7; } .ast-below-header-wrap .ast-search-box.header-cover .search-field, .ast-below-header-wrap .ast-search-box.header-cover #close { font-size: 1.8em; } .ast-below-header-wrap .ast-search-box.header-cover .search-submit { font-size: 1.5em; } .ast-search-box.header-cover, .ast-search-box.full-screen { display: none; opacity: 0; transition: opacity .2s; width: 100%; height: 100%; /* Placeholder Color */ } .ast-search-box.header-cover .search-field, .ast-search-box.full-screen .search-field { background: 100% 0; border: 0; color: #fafafa; box-shadow: none; text-align: right; padding: 0; } .ast-search-box.header-cover .search-submit, .ast-search-box.full-screen .search-submit { background: 100% 0; padding: 0; color: #9E9E9E; transition: all .7s ease-In; outline: none; border: 0; vertical-align: middle; } .ast-search-box.header-cover .ast-search-wrapper, .ast-search-box.full-screen .ast-search-wrapper { position: absolute; width: 100%; right: 50%; top: 50%; transform: translate(50%, -50%); } .ast-search-box.header-cover .ast-search-wrapper .search-form, .ast-search-box.full-screen .ast-search-wrapper .search-form { line-height: normal; } .ast-search-box.header-cover #close, .ast-search-box.full-screen #close { color: #fafafa; transform: rotate(0); font-size: 2em; cursor: pointer; z-index: 9; font-weight: normal; } .ast-search-box.header-cover .search-field::-webkit-input-placeholder, .ast-search-box.full-screen .search-field::-webkit-input-placeholder { color: #fafafa; } .ast-search-box.header-cover .search-field:-moz-placeholder, .ast-search-box.full-screen .search-field:-moz-placeholder { /* Firefox 18- */ color: #fafafa; } .ast-search-box.header-cover .search-field::-moz-placeholder, .ast-search-box.full-screen .search-field::-moz-placeholder { /* Firefox 19+ */ color: #fafafa; } .ast-search-box.header-cover .search-field:-ms-input-placeholder, .ast-search-box.full-screen .search-field:-ms-input-placeholder { color: #fafafa; } .ast-search-box.header-cover { position: absolute; background: rgba(25, 25, 25, 0.94); top: 0; z-index: 10; } .ast-search-box.header-cover .search-field { font-size: 2em; line-height: 2; width: 100%; } .ast-search-box.header-cover .ast-container { position: relative; } .ast-search-box.header-cover .search-text-wrap, .ast-search-box.header-cover .search-submit, .ast-search-box.header-cover .close { display: inline-block; } .ast-search-box.header-cover .search-text-wrap { width: calc( 100% - 2.5em); vertical-align: middle; } .ast-search-box.header-cover .search-submit { font-size: 1.7em; margin-left: 2em; } .ast-search-box.header-cover #close { vertical-align: middle; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .ast-search-box.full-screen { position: fixed; background: rgba(25, 25, 25, 0.94); top: 0; right: 0; z-index: 999; } .ast-search-box.full-screen .ast-search-wrapper .large-search-text { text-align: center; color: #e2e2e2; font-size: 1.5em; font-weight: normal; transition-delay: 50ms; transition: all .3s ease-in-out; } .ast-search-box.full-screen .ast-search-wrapper fieldset { border: 0; padding: 2.5em 0 1em; border-bottom: 2px solid #9E9E9E; } .ast-search-box.full-screen .ast-search-wrapper .search-field { font-size: 2.6em; padding-right: 30px; line-height: 1.7; width: 90%; width: calc( 100% - 1.5em); vertical-align: middle; text-align: center; } .ast-search-box.full-screen .ast-search-wrapper .search-form { width: 70%; margin: 20px auto; } .ast-search-box.full-screen .ast-search-wrapper .search-submit { font-size: 2em; } .ast-search-box.full-screen #close { position: absolute; color: #fafafa; left: 1em; line-height: 1; cursor: pointer; z-index: 9; font-weight: normal; font-size: 2em; top: 1.5em; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .ast-search-box.full-screen ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ opacity: 0; } .ast-search-box.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0; } .ast-search-box.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0; } .ast-search-box.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0; } @media (max-width: 420px) { .ast-search-box.full-screen ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ opacity: 1; } .ast-search-box.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 1; } .ast-search-box.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 1; } .ast-search-box.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 1; } } .ast-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder { opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0.5; } .site-header .ast-inline-search.ast-search-menu-icon .search-form { padding-right: 0; padding-left: 2em; } .site-header .ast-inline-search.ast-search-menu-icon .search-field { width: auto; padding-right: 1em; padding-left: 0; } .ast-inline-search.ast-search-menu-icon { position: relative; transform: none; right: 0; left: 0; } .ast-inline-search.ast-search-menu-icon .search-submit { display: block; background: none; border: none; position: absolute; height: 100%; left: 0.25em; padding: 0; top: 0; font-size: 1.3em; color: #757575; } .ast-header-break-point .ast-inline-search.ast-search-menu-icon .search-form { padding: 0; } .ast-header-break-point .site-header .ast-inline-search.ast-search-menu-icon .search-field { width: 100%; padding-left: 2em; } .ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.full-screen, .ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.header-cover { display: none; } /** * Swap Above Header */ .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .ast-search-menu-icon .search-form { left: -1em; right: auto; padding-right: 0em; padding-left: 3em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .search-field { padding-left: 0px; padding-right: 1em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .ast-search-menu-icon .search-form { right: -1em; left: auto; padding-left: 0em; padding-right: 3em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .search-field { padding-right: 0px; padding-left: 1em; } /** Above Header - Swap + Stack */ .ast-header-break-point .ast-above-header .ast-above-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field { padding-left: 0; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon .search-form { padding-right: 0px; right: auto; padding-left: 2em; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon.slide-search .search-form { right: -1em; padding-right: 2em; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-1 .search-field { padding-left: 0; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .search-field { padding-left: 0; padding-right: 1em; } .ast-header-break-point .ast-above-header-mobile-stack .ast-above-header .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { left: auto; padding-left: 2em; } .ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon.ast-inline-search .search-form { right: 0; padding-right: 0; padding-left: 2em; } /** * Swap Below Header */ .ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .ast-search-menu-icon .search-form { left: -1em; right: auto; padding-right: 0em; padding-left: 3em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .search-field { padding-left: 0px; padding-right: 1em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .ast-search-menu-icon .search-form { right: -1em; left: auto; padding-left: 0em; padding-right: 3em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .search-field { padding-right: 0px; padding-left: 1em; } /** Below Header - Swap + Stack */ .ast-header-break-point .ast-below-header .below-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field { padding-left: 0; } .ast-header-break-point .ast-swap-below-header-sections.site-header .ast-below-header .ast-inline-search.ast-search-menu-icon .search-field { padding-right: 1em; padding-left: 0; } .ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon .search-form { right: -1em; padding-right: 3em; padding-left: 1em; } .ast-below-header-mobile-stack .ast-below-header .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { left: auto; padding-left: 2em; } /** * iPhone/iPad fix * * Full screen search input cursor position not looks on expected place. * So, We add the `fixed` to body when it full-screen search is open. */ .ipod.full-screen, .iphone.full-screen { position: fixed !important; } @media (max-width: 992px) { .ast-above-header-mobile-stack .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { right: auto; } .ast-below-header-mobile-stack .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { right: auto; } } @media (max-width: 544px) { .ast-search-box.full-screen .ast-search-wrapper .large-search-text { display: none; } .ast-search-box.full-screen .ast-search-wrapper .search-field, .ast-search-box.full-screen .ast-search-wrapper .search-submit { font-size: 1.6em; } } assets/css/unminified/advanced-search-shortcode-rtl.css 0000666 00000002021 15165507576 0017316 0 ustar 00 .astra-search-shortcode { position: relative; display: inline-block; padding: 0 1em; } .astra-search-shortcode.inline { padding: 0; } .astra-search-shortcode.cover { position: static; } .ast-search-box.header-cover { top: 0; right: 0; left: 0; bottom: 0; z-index: 10; } .ast-inline-search.ast-search-menu-icon .search-field { width: 100%; } .ast-header-break-point .astra-search-shortcode .ast-search-icon { display: block; } .astra-search-shortcode.slide.right form { left: auto; right: -1em; padding: 0 2em 0 0; } /** * iPhone/iPad fix * * Full screen search input cursor position not looks on expected place. * So, We add the `fixed` to body when it full-screen search is open. */ .ipod.full-screen, .iphone.full-screen { position: fixed !important; } /** * Full screen search */ #secondary .ast-search-box.full-screen .search-submit { font-size: 2em; } #secondary .ast-search-box.full-screen .search-field { font-size: 2.6em; } assets/css/unminified/style.css 0000666 00000026076 15165507576 0012677 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ /** * Header Cover / Full Screen Search */ .main-header-bar-wrap .ast-search-box.header-cover { z-index: 7; } .ast-below-header-wrap .ast-search-box.header-cover .search-field, .ast-below-header-wrap .ast-search-box.header-cover #close { font-size: 1.8em; } .ast-below-header-wrap .ast-search-box.header-cover .search-submit { font-size: 1.5em; } .ast-search-box.header-cover, .ast-search-box.full-screen { display: none; opacity: 0; transition: opacity .2s; width: 100%; height: 100%; /* Placeholder Color */ } .ast-search-box.header-cover .search-field, .ast-search-box.full-screen .search-field { background: 0 0; border: 0; color: #fafafa; box-shadow: none; text-align: left; padding: 0; } .ast-search-box.header-cover .search-submit, .ast-search-box.full-screen .search-submit { background: 0 0; padding: 0; color: #9E9E9E; transition: all .7s ease-In; outline: none; border: 0; vertical-align: middle; } .ast-search-box.header-cover .ast-search-wrapper, .ast-search-box.full-screen .ast-search-wrapper { position: absolute; width: 100%; left: 50%; top: 50%; transform: translate(-50%, -50%); } .ast-search-box.header-cover .ast-search-wrapper .search-form, .ast-search-box.full-screen .ast-search-wrapper .search-form { line-height: normal; } .ast-search-box.header-cover #close, .ast-search-box.full-screen #close { color: #fafafa; transform: rotate(0); font-size: 2em; cursor: pointer; z-index: 9; font-weight: normal; } .ast-search-box.header-cover .search-field::-webkit-input-placeholder, .ast-search-box.full-screen .search-field::-webkit-input-placeholder { color: #fafafa; } .ast-search-box.header-cover .search-field:-moz-placeholder, .ast-search-box.full-screen .search-field:-moz-placeholder { /* Firefox 18- */ color: #fafafa; } .ast-search-box.header-cover .search-field::-moz-placeholder, .ast-search-box.full-screen .search-field::-moz-placeholder { /* Firefox 19+ */ color: #fafafa; } .ast-search-box.header-cover .search-field:-ms-input-placeholder, .ast-search-box.full-screen .search-field:-ms-input-placeholder { color: #fafafa; } .ast-search-box.header-cover { position: absolute; background: rgba(25, 25, 25, 0.94); top: 0; z-index: 10; } .ast-search-box.header-cover .search-field { font-size: 2em; line-height: 2; width: 100%; } .ast-search-box.header-cover .ast-container { position: relative; } .ast-search-box.header-cover .search-text-wrap, .ast-search-box.header-cover .search-submit, .ast-search-box.header-cover .close { display: inline-block; } .ast-search-box.header-cover .search-text-wrap { width: calc( 100% - 2.5em); vertical-align: middle; } .ast-search-box.header-cover .search-submit { font-size: 1.7em; margin-right: 2em; } .ast-search-box.header-cover #close { vertical-align: middle; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .ast-search-box.full-screen { position: fixed; background: rgba(25, 25, 25, 0.94); top: 0; left: 0; z-index: 999; } .ast-search-box.full-screen .ast-search-wrapper .large-search-text { text-align: center; color: #e2e2e2; font-size: 1.5em; font-weight: normal; transition-delay: 50ms; transition: all .3s ease-in-out; } .ast-search-box.full-screen .ast-search-wrapper fieldset { border: 0; padding: 2.5em 0 1em; border-bottom: 2px solid #9E9E9E; } .ast-search-box.full-screen .ast-search-wrapper .search-field { font-size: 2.6em; padding-left: 30px; line-height: 1.7; width: 90%; width: calc( 100% - 1.5em); vertical-align: middle; text-align: center; } .ast-search-box.full-screen .ast-search-wrapper .search-form { width: 70%; margin: 20px auto; } .ast-search-box.full-screen .ast-search-wrapper .search-submit { font-size: 2em; } .ast-search-box.full-screen #close { position: absolute; color: #fafafa; right: 1em; line-height: 1; cursor: pointer; z-index: 9; font-weight: normal; font-size: 2em; top: 1.5em; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .ast-search-box.full-screen ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ opacity: 0; } .ast-search-box.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0; } .ast-search-box.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0; } .ast-search-box.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0; } @media (max-width: 420px) { .ast-search-box.full-screen ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ opacity: 1; } .ast-search-box.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 1; } .ast-search-box.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 1; } .ast-search-box.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 1; } } .ast-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder { opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0.5; } .ast-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0.5; } .site-header .ast-inline-search.ast-search-menu-icon .search-form { padding-left: 0; padding-right: 2em; } .site-header .ast-inline-search.ast-search-menu-icon .search-field { width: auto; padding-left: 1em; padding-right: 0; } .ast-inline-search.ast-search-menu-icon { position: relative; transform: none; left: 0; right: 0; } .ast-inline-search.ast-search-menu-icon .search-submit { display: block; background: none; border: none; position: absolute; height: 100%; right: 0.25em; padding: 0; top: 0; font-size: 1.3em; color: #757575; } .ast-header-break-point .ast-inline-search.ast-search-menu-icon .search-form { padding: 0; } .ast-header-break-point .site-header .ast-inline-search.ast-search-menu-icon .search-field { width: 100%; padding-right: 2em; } .ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.full-screen, .ast-header-custom-item-inside.ast-desktop .main-header-menu .ast-search-menu-icon.header-cover { display: none; } /** * Swap Above Header */ .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .ast-search-menu-icon .search-form { right: -1em; left: auto; padding-left: 0em; padding-right: 3em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-1 .search-field { padding-right: 0px; padding-left: 1em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .ast-search-menu-icon .search-form { left: -1em; right: auto; padding-right: 0em; padding-left: 3em; } .ast-header-break-point .ast-swap-above-header-sections .ast-above-header-section-2 .search-field { padding-left: 0px; padding-right: 1em; } /** Above Header - Swap + Stack */ .ast-header-break-point .ast-above-header .ast-above-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field { padding-right: 0; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon .search-form { padding-left: 0px; left: auto; padding-right: 2em; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-2 .ast-search-menu-icon.slide-search .search-form { left: -1em; padding-left: 2em; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .ast-above-header-section-1 .search-field { padding-right: 0; } .ast-header-break-point .ast-swap-above-header-sections.ast-mobile-header-stack .ast-above-header .search-field { padding-right: 0; padding-left: 1em; } .ast-header-break-point .ast-above-header-mobile-stack .ast-above-header .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { right: auto; padding-right: 2em; } .ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon.ast-inline-search .search-form { left: 0; padding-left: 0; padding-right: 2em; } /** * Swap Below Header */ .ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .ast-search-menu-icon .search-form { right: -1em; left: auto; padding-left: 0em; padding-right: 3em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-1 .search-field { padding-right: 0px; padding-left: 1em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .ast-search-menu-icon .search-form { left: -1em; right: auto; padding-right: 0em; padding-left: 3em; } .ast-header-break-point .ast-swap-below-header-sections .below-header-section-2 .search-field { padding-left: 0px; padding-right: 1em; } /** Below Header - Swap + Stack */ .ast-header-break-point .ast-below-header .below-header-section-1 .ast-inline-search.ast-search-menu-icon .search-field { padding-right: 0; } .ast-header-break-point .ast-swap-below-header-sections.site-header .ast-below-header .ast-inline-search.ast-search-menu-icon .search-field { padding-left: 1em; padding-right: 0; } .ast-header-break-point .ast-swap-below-header-sections .ast-below-header .below-header-section-2 .ast-search-menu-icon .search-form { left: -1em; padding-left: 3em; padding-right: 1em; } .ast-below-header-mobile-stack .ast-below-header .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { right: auto; padding-right: 2em; } /** * iPhone/iPad fix * * Full screen search input cursor position not looks on expected place. * So, We add the `fixed` to body when it full-screen search is open. */ .ipod.full-screen, .iphone.full-screen { position: fixed !important; } @media (max-width: 992px) { .ast-above-header-mobile-stack .ast-above-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { left: auto; } .ast-below-header-mobile-stack .below-header-section-1 .ast-search-menu-icon.ast-inline-search .search-form { left: auto; } } @media (max-width: 544px) { .ast-search-box.full-screen .ast-search-wrapper .large-search-text { display: none; } .ast-search-box.full-screen .ast-search-wrapper .search-field, .ast-search-box.full-screen .ast-search-wrapper .search-submit { font-size: 1.6em; } } assets/css/unminified/advanced-search-shortcode.css 0000666 00000002021 15165507576 0016517 0 ustar 00 .astra-search-shortcode { position: relative; display: inline-block; padding: 0 1em; } .astra-search-shortcode.inline { padding: 0; } .astra-search-shortcode.cover { position: static; } .ast-search-box.header-cover { top: 0; left: 0; right: 0; bottom: 0; z-index: 10; } .ast-inline-search.ast-search-menu-icon .search-field { width: 100%; } .ast-header-break-point .astra-search-shortcode .ast-search-icon { display: block; } .astra-search-shortcode.slide.right form { right: auto; left: -1em; padding: 0 0 0 2em; } /** * iPhone/iPad fix * * Full screen search input cursor position not looks on expected place. * So, We add the `fixed` to body when it full-screen search is open. */ .ipod.full-screen, .iphone.full-screen { position: fixed !important; } /** * Full screen search */ #secondary .ast-search-box.full-screen .search-submit { font-size: 2em; } #secondary .ast-search-box.full-screen .search-field { font-size: 2.6em; } index.php 0000666 00000000170 15165507576 0006407 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.4.8 */ /* Silence is golden, and we agree. */ classes/index.php 0000666 00000000162 15165507576 0010045 0 ustar 00 <?php /** * Index file * * @package Astra * @since 1.4.8 */ /* Silence is golden, and we agree. */ classes/class-astra-ext-adv-search-shortcodes.php 0000666 00000007601 15165507576 0016144 0 ustar 00 <?php /** * Advanced Search - Shortcodes. * * @package Astra Addon * @since 1.4.8 */ if ( ! class_exists( 'Astra_Ext_Adv_Search_Shortcodes' ) ) { /** * Shortcodes Initialization * * @since 1.4.8 */ // @codingStandardsIgnoreStart class Astra_Ext_Adv_Search_Shortcodes { // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance * @since 1.4.8 */ private static $instance; /** * Initiator * * @since 1.4.8 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor * * @since 1.4.8 */ public function __construct() { add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); add_shortcode( 'astra_search', array( $this, 'search_markup' ) ); } /** * Enqueue scripts * * @since 1.4.8 * @return void */ public function enqueue_scripts() { /* Define Variables */ $uri = ASTRA_ADDON_EXT_ADVANCED_SEARCH_URL . '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 . '/'; /*** End Path Logic */ wp_register_style( 'advanced-search-shortcode', $css_uri . 'advanced-search-shortcode' . $file_prefix . '.css', array(), ASTRA_EXT_VER ); } /** * Search Markup * * @since 1.4.8 * @param array $atts Shortcode parameters. * @return mixed */ public function search_markup( $atts ) { wp_enqueue_style( 'advanced-search-shortcode' ); if ( is_callable( 'astra_search_static_css' ) ) { wp_add_inline_style( 'advanced-search-shortcode', astra_search_static_css() ); } $atts = shortcode_atts( array( 'style' => 'slide', 'direction' => 'left', ), $atts ); if ( 'inline' === $atts['style'] ) { $markup = Astra_Ext_Adv_Search_Markup::get_instance()->get_search_form_shortcode( 'search-box' ); } elseif ( 'full-screen' === $atts['style'] ) { $svg_markup = self::search_svg_markup(); $markup = '<div class="ast-search-icon"><a class="full-screen astra-search-icon" aria-label="Search icon link" href="#" >' . $svg_markup . '</a></div>'; add_action( 'wp_footer', function() { astra_addon_get_template( 'advanced-search/template/full-screen.php' ); } ); } elseif ( 'cover' === $atts['style'] ) { $svg_markup = self::search_svg_markup(); $markup = '<div class="ast-search-icon"><a class="header-cover astra-search-icon" aria-label="Search icon link" href="#">' . $svg_markup . '</a></div>'; $markup .= Astra_Ext_Adv_Search_Markup::get_instance()->get_search_form_shortcode( 'header-cover' ); } else { $markup = astra_get_search(); } $classes = array( 'astra-search-shortcode', 'search-custom-menu-item' ); if ( ! empty( $atts['style'] ) ) { $classes[] = $atts['style']; } if ( ! empty( $atts['direction'] ) ) { $classes[] = $atts['direction']; } $classes = implode( ' ', $classes ); return '<div class="' . esc_attr( $classes ) . '">' . $markup . '</div>'; } /** * Search svg markup. * * @return string * @since 3.6.8 */ public static function search_svg_markup() { ob_start(); ?> <span class="screen-reader-text"><?php esc_html_e( 'Search', 'astra-addon' ); ?></span> <?php Astra_Icons::get_icons( 'search', true ); ?> <?php $search_svg_html = ob_get_clean(); return $search_svg_html; } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Adv_Search_Shortcodes::get_instance(); } classes/class-astra-ext-adv-search-loader.php 0000666 00000005325 15165507576 0015236 0 ustar 00 <?php /** * Advanced Search - Customizer. * * @package Astra Addon * @since 1.4.8 */ if ( ! class_exists( 'Astra_Ext_Adv_Search_Loader' ) ) { /** * Customizer Initialization * * @since 1.4.8 */ // @codingStandardsIgnoreStart class Astra_Ext_Adv_Search_Loader { // @codingStandardsIgnoreEnd /** * Member Variable * * @since 1.4.8 * @var instance */ private static $instance; /** * Initiator * * @since 1.4.8 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor * * @since 1.4.8 */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); add_action( 'customize_register', array( $this, 'new_customize_register' ), 2 ); } /** * Set Options Default Values * * @since 1.4.8 * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { /** * Header Builder > Search style. */ $defaults['header-search-box-type'] = 'slide-search'; $defaults['header-search-box-placeholder'] = __( 'Search …', 'astra-addon' ); /** * Astra default header > Search style. */ $defaults['header-main-rt-section-search-box-type'] = 'slide-search'; $defaults['below-header-section-2-search-box-type'] = 'slide-search'; $defaults['below-header-section-1-search-box-type'] = 'slide-search'; $defaults['above-header-section-1-search-box-type'] = 'slide-search'; $defaults['above-header-section-2-search-box-type'] = 'slide-search'; return $defaults; } /** * Add postMessage support for site title and description for the Theme Customizer. * * @since 1.4.8 * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function new_customize_register( $wp_customize ) { if ( astra_addon_existing_header_footer_configs() ) { // Sections. require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/sections/class-astra-customizer-adv-search-header.php'; require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/sections/class-astra-customizer-adv-search-above-header.php'; require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/sections/class-astra-customizer-adv-search-below-header.php'; } else { require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/sections/class-astra-customizer-adv-search-configs.php'; } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Adv_Search_Loader::get_instance(); classes/class-astra-ext-adv-search-markup.php 0000666 00000030364 15165507576 0015270 0 ustar 00 <?php /** * Advanced Search Markup * * @package Astra Addon */ if ( ! class_exists( 'Astra_Ext_Adv_Search_Markup' ) ) { /** * Advanced Search Markup Initial Setup * * @since 1.4.8 */ // @codingStandardsIgnoreStart class Astra_Ext_Adv_Search_Markup { // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator * * @since 1.4.8 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor * * @since 1.4.8 */ public function __construct() { 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' ) ); add_action( 'astra_footer_after', array( $this, 'full_screen_search_markup' ) ); add_filter( 'astra_get_search', array( $this, 'get_search_markup' ), 10, 3 ); /** * Compatibility with Default Astra & Astra Header Builder > Search. */ if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { add_action( 'astra_main_header_bar_top', array( $this, 'header_builder_cover_search' ) ); add_action( 'astra_mobile_header_bar_top', array( $this, 'header_builder_cover_search' ) ); add_filter( 'astra_default_strings', array( $this, 'header_builder_default_strings' ), 10 ); add_filter( 'astra_search_field_placeholder', array( $this, 'header_builder_default_search_string' ), 10 ); } else { add_action( 'astra_main_header_bar_top', array( $this, 'main_header_cover_search' ) ); add_action( 'astra_above_header_top', array( $this, 'top_header_cover_search' ) ); add_action( 'astra_below_header_top', array( $this, 'below_header_cover_search' ) ); } } /** * Add default strings * * @param array $strings Default strings array. * @since 3.1.0 */ public function header_builder_default_strings( $strings ) { $search_string = astra_get_option( 'header-search-box-placeholder' ); $strings['string-header-cover-search-placeholder'] = esc_attr( $search_string ); $strings['string-search-input-placeholder'] = esc_attr( $search_string ); $strings['string-full-width-search-placeholder'] = esc_attr( $search_string ); return $strings; } /** * Add default search filter callback * * @param string $search_string Default string. * @since 3.1.0 */ public function header_builder_default_search_string( $search_string ) { $search_string = esc_attr( astra_get_option( 'header-search-box-placeholder' ) ); return $search_string; } /** * Main Header Cover Search * * @since 1.4.8 * @return void */ public function main_header_cover_search() { $search_box = astra_get_option( 'header-main-rt-section' ); $search_box_style = astra_get_option( 'header-main-rt-section-search-box-type' ); if ( 'search' == $search_box && 'header-cover' == $search_box_style ) { $this->get_search_form_shortcode( 'header-cover', true ); } } /** * Header Cover Search * * @since 3.0.0 * @return void */ public function header_builder_cover_search() { if ( 'header-cover' === astra_get_option( 'header-search-box-type' ) ) { $this->get_search_form_shortcode( 'header-cover', true ); } } /** * Add Localize variables * * @since 3.0.0 * @param array $localize_vars Localize variables array. * @return array */ public function localize_variables( $localize_vars ) { $localize_vars['is_header_builder_active'] = astra_addon_builder_helper()->is_header_footer_builder_active; return $localize_vars; } /** * Below Header Cover Search * * @since 1.4.8 * @return void */ public function below_header_cover_search() { $header_cover = false; $layout = astra_get_option( 'below-header-layout' ); $section_1_search_box = astra_get_option( 'below-header-section-1' ); $section_1_search_box_style = astra_get_option( 'below-header-section-1-search-box-type' ); if ( 'below-header-layout-1' == $layout ) { $section_2_search_box = astra_get_option( 'below-header-section-2' ); $section_2_search_box_style = astra_get_option( 'below-header-section-2-search-box-type' ); if ( ! $header_cover && 'search' == $section_2_search_box ) { if ( 'header-cover' == $section_2_search_box_style ) { $header_cover = true; } } } if ( 'search' == $section_1_search_box ) { if ( 'header-cover' == $section_1_search_box_style ) { $header_cover = true; } } if ( $header_cover ) { $this->get_search_form_shortcode( 'header-cover', true ); } } /** * Top Header Cover Search * * @since 1.4.8 * @return void */ public function top_header_cover_search() { $header_cover = false; $top_layout = astra_get_option( 'above-header-layout' ); $left_search_box = astra_get_option( 'above-header-section-1' ); $left_search_box_style = astra_get_option( 'above-header-section-1-search-box-type' ); if ( 'search' == $left_search_box && 'header-cover' == $left_search_box_style ) { $header_cover = true; } if ( 'above-header-layout-1' == $top_layout ) { $right_search_box = astra_get_option( 'above-header-section-2' ); $right_search_box_style = astra_get_option( 'above-header-section-2-search-box-type' ); if ( 'search' == $right_search_box && 'header-cover' == $right_search_box_style ) { $header_cover = true; } } if ( $header_cover ) { $this->get_search_form_shortcode( 'header-cover', true ); } } /** * Fullscreen Search * * @since 1.4.8 */ public function full_screen_search_markup() { if ( 'full-screen' === astra_get_option( 'above-header-section-1-search-box-type' ) || 'full-screen' === astra_get_option( 'above-header-section-2-search-box-type' ) || 'full-screen' === astra_get_option( 'header-main-rt-section-search-box-type' ) || 'full-screen' === astra_get_option( 'below-header-section-1-search-box-type' ) || 'full-screen' === astra_get_option( 'below-header-section-2-search-box-type' ) || ( true === astra_addon_builder_helper()->is_header_footer_builder_active && 'full-screen' === astra_get_option( 'header-search-box-type' ) ) ) { $this->get_search_form_shortcode( 'full-screen', true ); } } /** * Adding Wrapper for Search Form. * * @since 1.4.8 * * @param string $search_markup Search Form Content. * @param string $option Search Form Options. * @param string $device Device in which used. * @return Search HTML structure created. */ public function get_search_markup( $search_markup, $option = '', $device = '' ) { if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $search_box_style = astra_get_option( 'header-search-box-type', 'slide-search' ); $search_box_style = apply_filters( 'astra_search_style_hs', $search_box_style ); $elements = astra_get_option( 'header-mobile-items' ); $search_in_popup = false; if ( is_array( $elements ) && is_array( $elements['popup']['popup_content'] ) && in_array( 'search', $elements['popup']['popup_content'], true ) ) { $search_in_popup = true; } if ( 'search-box' == $search_box_style || ( $search_in_popup && 'mobile' === $device ) ) { $search_markup = $this->get_search_form( 'search-box' ); } elseif ( ( 'header-cover' == $search_box_style || 'full-screen' == $search_box_style ) && ! ( $search_in_popup && 'mobile' === $device ) ) { $search_markup = $this->get_search_icon( $search_box_style ); $search_markup .= '<div class="ast-search-menu-icon ' . $search_box_style . '">'; $search_markup .= '</div>'; } } else { $search_box_style = astra_get_option( $option . '-search-box-type', 'slide-search' ); $option_slug = str_replace( '-', '_', $option ); $search_box_style = apply_filters( 'astra_search_style_' . $option_slug, $search_box_style ); if ( 'search-box' == $search_box_style ) { $search_markup = $this->get_search_form_shortcode( 'search-box' ); } elseif ( 'header-cover' == $search_box_style || 'full-screen' == $search_box_style ) { $search_markup = $this->get_search_icon( $search_box_style ); if ( false == astra_get_option( 'header-display-outside-menu' ) && 'header-main-rt-section' === $option ) { $search_markup .= '<div class="ast-search-menu-icon ' . $search_box_style . '">'; $search_markup .= '</div>'; } } } return $search_markup; } /** * Search icon markup * * @since 1.4.8 * @param string $style Search style. * @return mixed HTML Markup. */ public function get_search_icon( $style ) { return '<div class="ast-search-icon"><a class="' . esc_attr( $style ) . ' astra-search-icon" aria-label="Search icon link" href="#">' . Astra_Icons::get_icons( 'search' ) . '</a></div>'; } /** * Search Form * * @since 1.4.8 * @param string $style Search Form Style. * @param boolean $echo Print or return. * @return mixed */ public function get_search_form( $style = 'slide-search', $echo = false ) { if ( Astra_Addon_Builder_Helper::is_component_loaded( 'search', 'header' ) ) { ob_start(); astra_addon_get_template( 'advanced-search/template/' . esc_attr( $style ) . '.php' ); $search_html = ob_get_clean(); if ( $echo ) { echo wp_kses( $search_html, Astra_Addon_Kses::astra_addon_form_with_post_kses_protocols() ); } else { return $search_html; } } } /** * Search Form Shortcode * * @since 3.6.8 * @param string $style Search Form Style. * @param boolean $echo Print or return. * @return mixed */ public function get_search_form_shortcode( $style = 'slide-search', $echo = false ) { $search_html = ''; ob_start(); astra_addon_get_template( 'advanced-search/template/' . esc_attr( $style ) . '.php' ); $search_html = ob_get_clean(); if ( $echo ) { echo do_shortcode( $search_html ); } else { return $search_html; } } /** * Add Styles Callback * * @since 1.4.8 */ public function add_styles() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_ADVANCED_SEARCH_URL . 'assets/css/'; $path = ASTRA_ADDON_EXT_ADVANCED_SEARCH_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 */ /* Add style.css */ Astra_Minify::add_css( $gen_path . 'style' . $file_prefix . '.css' ); } /** * Add Scripts Callback * * @since 1.4.8 */ public function add_scripts() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_ADVANCED_SEARCH_URL . 'assets/js/'; $path = ASTRA_ADDON_EXT_ADVANCED_SEARCH_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_js( $gen_path . 'advanced-search' . $file_prefix . '.js' ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Adv_Search_Markup::get_instance(); classes/dynamic.css.php 0000666 00000001616 15165507576 0011156 0 ustar 00 <?php /** * Mega Menu - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_addon_adv_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_addon_adv_search_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $css = ''; if ( false === Astra_Icons::is_svg_icons() ) { $search_close_btn = array( '.ast-search-box.header-cover #close::before, .ast-search-box.full-screen #close::before' => array( 'font-family' => 'Astra', 'content' => '"\e5cd"', 'display' => 'inline-block', 'transition' => 'transform .3s ease-in-out', ), ); /* Parse CSS from array() */ $css .= astra_parse_css( $search_close_btn ); } return $dynamic_css . $css; } classes/sections/class-astra-customizer-adv-search-above-header.php 0000666 00000007065 15165507576 0021550 0 ustar 00 <?php /** * Above Header * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.8 */ // 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; } /** * Customizer Sanitizes * * @since 1.4.8 */ if ( ! class_exists( 'Astra_Customizer_Adv_Search_Above_Header' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Adv_Search_Above_Header extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.8 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( // Option: Above Header Section 1 Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[above-header-section-1-search-box-type]', 'default' => astra_get_option( 'above-header-section-1-search-box-type' ), 'section' => 'section-above-header', 'priority' => 45, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide', 'astra-addon' ), 'full-screen' => __( 'Full Screen', 'astra-addon' ), 'header-cover' => __( 'Header Cover', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-1]', 'operator' => '==', 'value' => 'search', ), ), ), // Option: Above Header Section 2 Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[above-header-section-2-search-box-type]', 'default' => astra_get_option( 'above-header-section-2-search-box-type' ), 'section' => 'section-above-header', 'priority' => 70, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide', 'astra-addon' ), 'full-screen' => __( 'Full Screen', 'astra-addon' ), 'header-cover' => __( 'Header Cover', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-bottom-divider' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-layout]', 'operator' => '==', 'value' => 'above-header-layout-1', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[above-header-section-2]', 'operator' => '==', 'value' => 'search', ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Adv_Search_Above_Header(); classes/sections/index.php 0000666 00000000162 15165507576 0011674 0 ustar 00 <?php /** * Index file * * @package Astra * @since 1.4.8 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-customizer-adv-search-configs.php 0000666 00000006067 15165507576 0020657 0 ustar 00 <?php /** * Astra Theme Customizer Configuration Builder. * * @package astra-addon * @link https://wpastra.com/ * @since 3.0.0 */ // No direct access, please. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Register Builder Customizer Configurations. * * @since 3.0.0 */ // @codingStandardsIgnoreStart class Astra_Customizer_Adv_Search_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register Builder 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'; /** * Option: Pro Search Bar Configs. */ $_configs = array( // Option: Header Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[header-search-box-type]', 'default' => astra_get_option( 'header-search-box-type' ), 'section' => $_section, 'priority' => 1, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide Search', 'astra-addon' ), 'full-screen' => __( 'Full Screen Search', 'astra-addon' ), 'header-cover' => __( 'Header Cover Search', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), 'context' => astra_addon_builder_helper()->general_tab, 'transport' => 'postMessage', 'partial' => array( 'selector' => '.ast-header-search', 'container_inclusive' => false, 'render_callback' => array( Astra_Ext_Adv_Search_Markup::get_instance(), 'get_search_markup' ), ), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: search placeholder text. */ array( 'name' => ASTRA_THEME_SETTINGS . '[header-search-box-placeholder]', 'default' => astra_get_option( 'header-search-box-placeholder' ), 'section' => $_section, 'priority' => 3, 'title' => __( 'Placeholder Text', 'astra-addon' ), 'type' => 'control', 'control' => 'text', 'transport' => 'postMessage', 'partial' => array( 'selector' => '.ast-header-search', 'container_inclusive' => false, 'render_callback' => array( Astra_Ext_Adv_Search_Markup::get_instance(), 'get_search_markup' ), ), 'context' => astra_addon_builder_helper()->general_tab, 'divider' => array( 'ast_class' => 'ast-top-section-divider ast-bottom-section-divider' ), ), ); return array_merge( $configurations, $_configs ); } } /** * Kicking this off by creating object of this class. */ new Astra_Customizer_Adv_Search_Configs(); classes/sections/class-astra-customizer-adv-search-header.php 0000666 00000004446 15165507576 0020456 0 ustar 00 <?php /** * Primary Header * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.8 */ // 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; } /** * Customizer Sanitizes * * @since 1.4.8 */ if ( ! class_exists( 'Astra_Customizer_Adv_Search_Header' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Adv_Search_Header extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.8 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( // Option: Header Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[header-main-rt-section-search-box-type]', 'default' => astra_get_option( 'header-main-rt-section-search-box-type' ), 'section' => 'section-primary-menu', 'priority' => 20, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide Search', 'astra-addon' ), 'full-screen' => __( 'Full Screen Search', 'astra-addon' ), 'header-cover' => __( 'Header Cover Search', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[header-main-rt-section]', 'operator' => '==', 'value' => 'search', ), ), 'divider' => array( 'ast_class' => 'ast-top-divider' ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Adv_Search_Header(); classes/sections/class-astra-customizer-adv-search-below-header.php 0000666 00000007227 15165507576 0021564 0 ustar 00 <?php /** * Below Header * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.8 */ // 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; } /** * Customizer Sanitizes * * @since 1.4.8 */ if ( ! class_exists( 'Astra_Customizer_Adv_Search_Below_Header' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Adv_Search_Below_Header extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.8 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( // Option: Below Header Section 1 Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[below-header-section-1-search-box-type]', 'default' => astra_get_option( 'below-header-section-1-search-box-type' ), 'section' => 'section-below-header', 'priority' => 26, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide', 'astra-addon' ), 'full-screen' => __( 'Full Screen', 'astra-addon' ), 'header-cover' => __( 'Header Cover', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), '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 . '[below-header-layout]', 'operator' => '!=', 'value' => 'disabled', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-1]', 'operator' => '==', 'value' => 'search', ), ), ), // Option: Below Header Section 2 Search Style. array( 'name' => ASTRA_THEME_SETTINGS . '[below-header-section-2-search-box-type]', 'default' => astra_get_option( 'below-header-section-2-search-box-type' ), 'section' => 'section-below-header', 'priority' => 46, 'title' => __( 'Search Style', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-select', 'choices' => array( 'slide-search' => __( 'Slide', 'astra-addon' ), 'full-screen' => __( 'Full Screen', 'astra-addon' ), 'header-cover' => __( 'Header Cover', 'astra-addon' ), 'search-box' => __( 'Search Box', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-layout]', 'operator' => '==', 'value' => 'below-header-layout-1', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[below-header-section-2]', 'operator' => '==', 'value' => 'search', ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Adv_Search_Below_Header(); template/search-box.php 0000666 00000000275 15165507576 0011154 0 ustar 00 <?php /** * Advanced Search - Search Box * * @package Astra Addon */ ?> <div class="ast-search-menu-icon ast-inline-search"> <?php astra_addon_get_search_form(); ?> </div> template/full-screen.php 0000666 00000002331 15165507576 0011333 0 ustar 00 <?php /** * Advanced Search - Full Screen Template * * @package Astra Addon */ ?> <div class="ast-search-box full-screen" id="ast-seach-full-screen-form"> <span id="close" class="close"><?php Astra_Icons::get_icons( 'close', true ); ?></span> <div class="ast-search-wrapper"> <div class="ast-container"> <h3 class="large-search-text"><?php echo esc_html( astra_default_strings( 'string-full-width-search-message', false ) ); ?></h3> <form class="search-form" action="<?php echo esc_url( home_url() ); ?>/" method="get"> <fieldset> <span class="text"> <label for="search-field" class="screen-reader-text"><?php echo esc_html( astra_default_strings( 'string-full-width-search-placeholder', false ) ); ?></label> <input id="search-field" name="s" class="search-field" autocomplete="off" type="text" value="" placeholder="<?php echo esc_attr( astra_default_strings( 'string-full-width-search-placeholder', false ) ); ?>"> </span> <button aria-label="<?php esc_attr_e( 'Search', 'astra-addon' ); ?>" class="button search-submit"><i class="astra-search-icon"> <?php Astra_Icons::get_icons( 'search', true ); ?> </i></button> </fieldset> </form> </div> </div> </div> template/header-cover.php 0000666 00000001562 15165507576 0011465 0 ustar 00 <?php /** * Advanced Search - Header Cover Template * * @package Astra Addon */ ?> <div class="ast-search-box header-cover" id="ast-search-form"> <div class="ast-search-wrapper"> <div class="ast-container"> <form class="search-form" action="<?php echo esc_url( home_url() ); ?>/" method="get"> <span class="search-text-wrap"> <label for="search-field" class="screen-reader-text"><?php echo esc_html( astra_default_strings( 'string-header-cover-search-placeholder', false ) ); ?></label> <input id="search-field" name="s" class="search-field" type="text" autocomplete="off" value="" placeholder="<?php echo esc_attr( astra_default_strings( 'string-header-cover-search-placeholder', false ) ); ?>"> </span> <span id="close" class="close"><?php Astra_Icons::get_icons( 'close', true ); ?></span> </form> </div> </div> </div> template/index.php 0000666 00000000162 15165507576 0010223 0 ustar 00 <?php /** * Index file * * @package Astra * @since 1.4.8 */ /* Silence is golden, and we agree. */ class-astra-ext-advanced-search.php 0000666 00000003252 15165507576 0013325 0 ustar 00 <?php /** * Advanced Search Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR', ASTRA_EXT_DIR . 'addons/advanced-search/' ); define( 'ASTRA_ADDON_EXT_ADVANCED_SEARCH_URL', ASTRA_EXT_URI . 'addons/advanced-search/' ); if ( ! class_exists( 'Astra_Ext_Advanced_Search' ) ) { /** * Advanced Search Initial Setup * * @since 1.4.8 */ // @codingStandardsIgnoreStart class Astra_Ext_Advanced_Search { // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance * @since 1.4.8 */ private static $instance; /** * Initiator * * @since 1.4.8 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks * * @since 1.4.8 */ public function __construct() { require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/class-astra-ext-adv-search-loader.php'; require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/class-astra-ext-adv-search-markup.php'; require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/class-astra-ext-adv-search-shortcodes.php'; if ( false === Astra_Icons::is_svg_icons() ) { require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'classes/dynamic.css.php'; } if ( version_compare( ASTRA_THEME_VERSION, '3.2.0', '<' ) ) { require_once ASTRA_ADDON_EXT_ADVANCED_SEARCH_DIR . 'dynamic.css.php'; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Advanced_Search::get_instance(); } dynamic.css.php 0000666 00000003215 15165507576 0007516 0 ustar 00 <?php /** * Search CSS - Addon is updated and theme is not updated to v3.2.0. * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_addon_advanced_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_addon_advanced_search_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $parse_css = ''; $adv_search_css = ' .astra-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder { opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0.5; }'; if ( is_rtl() ) { $adv_search_css .= ' .astra-hfb-header .ast-search-box.full-screen.full-screen ::-webkit-input-placeholder { opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen ::-moz-placeholder { /* Firefox 19+ */ opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen :-ms-input-placeholder { /* IE 10+ */ opacity: 0.5; } .astra-hfb-header .ast-search-box.full-screen.full-screen :-moz-placeholder { /* Firefox 18- */ opacity: 0.5; } '; } $parse_css .= Astra_Enqueue_Scripts::trim_css( $adv_search_css ); return $dynamic_css . $parse_css; }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings