Advanced Woo Search - Version 2.64

Version Description

( 2022-10-03 ) = * Update - Minify assets

Download this release

Release Info

Developer Mihail Barinov
Plugin Icon 128x128 Advanced Woo Search
Version 2.64
Comparing to
See all releases

Code changes from version 2.63 to 2.64

advanced-woo-search.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
- Version: 2.63
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
@@ -96,7 +96,7 @@ final class AWS_Main {
96
  */
97
  private function define_constants() {
98
 
99
- $this->define( 'AWS_VERSION', '2.63' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
@@ -191,11 +191,12 @@ final class AWS_Main {
191
  * Load assets for search form
192
  */
193
  public function load_scripts() {
194
- wp_enqueue_style( 'aws-style', AWS_URL . 'assets/css/common.css', array(), AWS_VERSION );
 
195
  if ( is_rtl() ) {
196
- wp_enqueue_style( 'aws-style-rtl', AWS_URL . 'assets/css/common-rtl.css', array(), AWS_VERSION );
197
  }
198
- wp_enqueue_script('aws-script', AWS_URL . 'assets/js/common.js', array('jquery'), AWS_VERSION, true);
199
  wp_localize_script('aws-script', 'aws_vars', array(
200
  'sale' => __('Sale!', 'advanced-woo-search'),
201
  'sku' => __('SKU', 'advanced-woo-search') . ': ',
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
+ Version: 2.64
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
96
  */
97
  private function define_constants() {
98
 
99
+ $this->define( 'AWS_VERSION', '2.64' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
191
  * Load assets for search form
192
  */
193
  public function load_scripts() {
194
+ $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
195
+ wp_enqueue_style( 'aws-style', AWS_URL . 'assets/css/common' . $suffix . '.css', array(), AWS_VERSION );
196
  if ( is_rtl() ) {
197
+ wp_enqueue_style( 'aws-style-rtl', AWS_URL . 'assets/css/common-rtl' . $suffix . '.css', array(), AWS_VERSION );
198
  }
199
+ wp_enqueue_script('aws-script', AWS_URL . 'assets/js/common' . $suffix . '.js', array('jquery'), AWS_VERSION, true);
200
  wp_localize_script('aws-script', 'aws_vars', array(
201
  'sale' => __('Sale!', 'advanced-woo-search'),
202
  'sku' => __('SKU', 'advanced-woo-search') . ': ',
assets/css/admin.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .sortable-container{width:200px;padding:0;float:left;margin-right:10px}.sortable-title{padding:8px 0;margin-right:10px;font-size:12px;font-weight:700;line-height:17px}.sti-sortable{border:1px solid #c7c4c4;background:#fff7f7;list-style-type:none;padding:5px;margin:0 10px 0 0;min-height:180px}.sti-sortable.enabled{background:#ddf0dc}.sti-sortable li.sti-btn{height:auto;border:1px solid #c7c4c4;padding:8px 0}.sti-sortable li#excerpt,.sti-sortable li.highlight,.sti-sortable li.sti-btn{display:inline-block;width:100%;margin:0 3px 3px 0;cursor:pointer;background:#f1f1f1;text-align:center;text-transform:capitalize}.sti-sortable li.highlight{background:#fff;height:36px;padding:0;border:1px dotted #ccc}.sti-sortable li#excerpt{height:auto;border:1px solid #c7c4c4;padding:8px 0}.nav-tab.premium-tab,.nav-tab[href*="page=aws-options&tab=premium"]{background:#fff7c7}.nav-tab.premium-tab:hover,.nav-tab[href*="page=aws-options&tab=premium"]:hover{background:#fff}.wp-submenu .current a[href*="page=aws-options&tab=premium"] span,.wp-submenu a[href*="page=aws-options&tab=premium"]:hover span{color:#ffff5b!important}#aws-reindex,#aws-reindex.loading .loader,#aws-reindex.loading .reindex-notice,#aws-reindex.loading .reindex-progress{display:inline-block}#aws-reindex .loader{display:none;width:20px;height:20px;background:url(../img/loader-1.GIF)no-repeat 50% 50%;margin-left:15px;margin-top:4px}#aws-reindex .reindex-notice,#aws-reindex .reindex-progress{display:none;margin-left:15px;position:relative;top:-5px;font-size:13px;font-weight:700}#aws-reindex .reindex-notice{font-weight:400}#aws_form .aws-heading{margin-right:-40px}#aws_form select{min-width:170px;display:block}#aws_form .img-select{position:relative;font-size:0;list-style:none;max-width:400px}#aws_form .img-select .option{display:block;position:relative;vertical-align:top;height:36px;width:400px;margin:0 0 16px}#aws_form .img-select .option input{width:100%;height:100%;position:absolute;left:0;top:0;z-index:2;cursor:pointer;opacity:0}#aws_form .img-select .option input:before,#aws_form .img-select .option input:checked:before{display:none}#aws_form .img-select .option .ico{display:block;width:100%;height:100%;margin:0 auto;background-size:contain!important;border:2px solid transparent;border-radius:5px}#aws_form .img-select .option input:checked+.ico{border-color:rgba(0,0,0,.6)}#aws_form .b-compare .column{width:50%;float:left}#aws_form .b-compare .column p{font-size:14px;border-bottom:1px solid #ccc;padding-bottom:4px}#aws_form .description.activation{font-size:14px;line-height:1.6;font-style:normal}#aws_form .description.activation .list{padding-top:2px}h1.aws-instance-name{position:relative;padding-bottom:20px;padding-right:20px;display:inline-block;cursor:pointer}.aws-instance-shortcode{display:inline-block;background:#fff;padding:4px;margin-left:20px;font-size:14px;font-weight:600;position:relative;top:-4px}.aws-table{margin:20px 0 10px}.aws-table tr:nth-child(odd) td{background:#f9f9f9}#aws_form .free-pro-table b,.aws-table .aws-name{font-weight:700}.aws-table .aws-current-filter{color:#b00000;margin-left:8px;font-size:12px}.aws-table th{padding:9px 7px!important;vertical-align:middle}.aws-table td,.form-table .aws-table td{vertical-align:middle;padding:7px!important;line-height:2em}.aws-table .aws-actions a{display:block;text-indent:-9999px;position:relative;padding:0!important;height:2em!important;min-height:2em!important;width:2em;margin-left:10px}.aws-table .aws-actions a:after{speak:none;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;font-family:Dashicons;line-height:1.85}.aws-table .aws-actions a.edit:after{content:""}.aws-table .aws-actions a.delete:after{content:""}.aws-table .aws-actions a.delete:hover:after{background:rgba(255,0,0,.2)}.aws-table .aws-actions a.copy:after{content:""}.aws-insert-instance{margin:20px 0}.aws-table.aws-table-sources{margin:10px 0;width:500px}.aws-table.aws-table-sources th.aws-actions{width:60px}.aws-table.aws-table-sources th.aws-active{width:30px}#aws_form .free-pro-table td.center,#aws_form .free-pro-table th.center,.aws-table.aws-table-sources td.aws-active{text-align:center}.aws-table.aws-table-sources td.aws-active .aws-yes{background-color:#26cc06}.aws-table.aws-table-sources td.aws-active .aws-disabled,.aws-table.aws-table-sources td.aws-active .aws-no,.aws-table.aws-table-sources td.aws-active .aws-yes{padding:1px 7px;color:#fff;border-radius:4px;position:relative;cursor:pointer}.aws-table.aws-table-sources td.aws-active .aws-disabled{background-color:gray;cursor:default}.aws-table.aws-table-sources td.aws-active .aws-no{background-color:#cc0606}.aws-table.aws-table-sources td.aws-active .aws-disabled,.aws-table.aws-table-sources td.aws-active .aws-yes,.aws-table.aws-table-sources td.aws-active.active .aws-no{display:none}.aws-table.aws-table-sources td.aws-active.active .aws-yes{display:inline}.aws-table.aws-table-sources td.aws-active.disabled .aws-disabled{display:inline!important}#aws_form.form-tab-premium .submit,.aws-table.aws-table-sources td.aws-active.disabled .aws-no,.aws-table.aws-table-sources td.aws-active.disabled .aws-yes,.aws-table.aws-table-sources td.aws-active.loading .aws-no,.aws-table.aws-table-sources td.aws-active.loading .aws-yes{display:none}.aws-table.aws-table-sources td.aws-active:after{content:"";display:none;margin:0 auto;width:20px;height:20px;background:url(../img/loader-2.gif)no-repeat 50% 50%}.aws-table.aws-table-sources td.aws-active.loading:after{display:block}.aws-table.aws-table-sources td.aws-name{font-weight:400}#aws_form .free-pro-table *,#aws_form .free-pro-table :after,#aws_form .free-pro-table :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#aws_form .free-pro-table{background:#fff;max-width:900px;margin:50px auto 20px}#aws_form .free-pro-table td,#aws_form .free-pro-table th{margin-bottom:0;padding:15px 10px;line-height:1.3;vertical-align:middle}#aws_form .free-pro-table td h3{margin:0 0 6px}#aws_form .free-pro-table .no,#aws_form .free-pro-table .yes{text-align:center;width:10%;padding:0}#aws_form .free-pro-table.bordered,#aws_form .free-pro-table.bordered td,#aws_form .free-pro-table.bordered th{border:1px solid #e0e0e0;border-collapse:collapse}#aws_form .free-pro-table .icon-before{margin:0 auto;display:inline-block}#aws_form .free-pro-table .no .icon-before:before,#aws_form .free-pro-table .yes .icon-before:before{content:"";display:block;position:relative;top:0;background-size:contain!important}#aws_form .free-pro-table .no .icon-before:before{height:35px;width:35px}#aws_form .free-pro-table .yes .icon-before:before{height:40px;width:40px;background:url(../img/yes.svg)no-repeat 50% 50%}#aws_form .free-pro-table .no .icon-before:before{background:url(../img/no.svg)no-repeat 50% 50%}#aws_form .links{margin:5px 0}#aws_form .links .links-title,#aws_form .links ul{display:inline-block}#aws_form .links ul{margin:0 0 0 10px}#aws_form .links ul li{display:inline-block;margin:0 5px}#aws_form .links ul li a{color:#7f54b3}#aws_form .buy-premium{width:500px;margin:20px auto 40px}#aws_form .buy-premium a{position:relative;display:block;background-color:#7f54b3;color:#fff;border-radius:6px;padding:16px 15px;text-decoration:none}#aws_form .buy-premium a:hover{background-color:#6f3eb0}#aws_form .buy-premium a:after{background:url(../img/cart.svg)no-repeat 50% 50%;height:40px;width:40px;content:"";display:block;position:absolute;top:17px;right:15px;background-size:contain}#aws_form .buy-premium a .desc{font-size:15px;line-height:1.5}#aws_form .buy-premium a .desc b{text-transform:uppercase;font-weight:700}#aws_form .buy-premium a ul{margin:12px 0 0 15px;list-style:disc}#aws_form .buy-premium a ul li{margin:0;font-size:12px;line-height:15px}#aws_form .faq{text-align:center;max-width:900px;margin:80px auto 70px}#aws_form .faq h3,#aws_form .features h3{margin:50px 0 46px;font-size:36px;color:#444}#aws_form .faq .faq-item{margin:0 0 25px}#aws_form .faq .faq-item .question{margin:0 0 6px;font-size:18px;color:#000}#aws_form .faq .faq-item .answer,.aws-welcome-panel li{font-size:14px}#aws_form .features{max-width:1050px;margin:70px auto 90px}#aws_form .features h3{margin:0 0 70px;text-align:center}#aws_form .features .features-item{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:60px;padding-bottom:60px;border-bottom:1px solid #e0e0e0}#aws_form .features .features-item .column{padding:0;width:48%}#aws_form .features .features-item .column .title{font-size:24px;margin:0 0 16px;font-weight:700}#aws_form .features .features-item .column .desc{font-size:16px;line-height:1.6;color:#444}#aws_form .features .features-item .column .desc a{color:#6f3eb0}#aws_form .features .features-item .column .img{margin-bottom:0;padding:0}#aws_form .features .features-item .column .img img{height:auto;vertical-align:middle;max-width:100%;box-shadow:0 1px 4px rgba(0,0,0,.2)}#aws_form .features .features-item:nth-child(2n) .column:first-child{order:2}#aws_form .features .features-item .column .desc,#aws_form .features .features-item .column .title{padding-right:10px}#aws_form .features .features-item:nth-child(2n) .column .desc,#aws_form .features .features-item:nth-child(2n) .column .title{padding-right:0;padding-left:10px}#aws_form .screenshots h3{margin:46px 0 50px;font-size:36px;color:#444;text-align:center}#aws_form .screenshots,#aws_form .screenshots *{box-sizing:border-box}#aws_form .screenshots{max-width:1050px;margin:70px auto 90px}#aws_form .screenshots .screenshots-section{text-align:left}#aws_form .screenshots .section-title{margin:0 0 10px;font-size:18px}#aws_form .screenshots .screenshots-list{display:flex;flex-wrap:wrap;margin:0-10px 30px;align-items:stretch}#aws_form .screenshots .screenshots-list .screen{width:25%;padding:10px}#aws_form .screenshots .screenshots-list .screen a{display:block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);padding:10px;height:100%;min-height:180px}#aws_form .screenshots .screenshots-list .screen a:hover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}#TB_window .awl-screen,#aws_form .screenshots .screenshots-list .screen img{display:block;max-width:100%}.aws-welcome-panel{border:0;box-shadow:none;padding:0;margin:16px 0 0;background:0 0;font-size:13px;line-height:1.7;position:relative;overflow:auto}.aws-welcome-panel h2{margin:0;font-size:21px;font-weight:400;line-height:1.2}.aws-welcome-panel p{color:#646970}.aws-welcome-panel .aws-welcome-panel-content{margin-left:13px;max-width:1500px}.aws-welcome-panel .aws-welcome-panel-column-container{clear:both;position:relative}.aws-welcome-panel .aws-welcome-panel-column:first-child{width:60%}.aws-welcome-panel .aws-welcome-panel-column{width:20%;min-width:200px;float:left}.aws-welcome-panel .aws-welcome-panel-column p{margin-top:7px;color:#3c434a}.aws-welcome-panel .about-description{font-size:16px;margin:0}.aws-welcome-panel li a{text-decoration:none;padding-bottom:2px}.aws-welcome-panel .aws-welcome-icon{background:0 0!important}.aws-welcome-panel .aws-welcome-icon:before{color:#646970;font:20px/1 dashicons;speak:never;display:inline-block;padding:0 10px 0 0;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;vertical-align:top}.aws-welcome-panel .aws-welcome-edit-page:before,.aws-welcome-panel .aws-welcome-write-blog:before{content:"";top:-3px}.aws-welcome-panel .aws-welcome-widgets-menus:before{content:"";top:-2px}
assets/css/common-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .rtl .aws-container .aws-search-form .aws-loader{right:auto;left:10px}.rtl .aws-container .aws-show-clear .aws-search-field{padding:6px 6px 6px 40px}.rtl .aws-container .aws-search-form .aws-search-clear{right:auto;left:0;padding:0 10px 0 0;text-align:right}.rtl .aws-container .aws-search-form .aws-form-btn{margin:0-1px 0 0}.rtl .aws-container[data-buttons-order="3"] .aws-search-form .aws-search-btn{margin:0 0 0-1px}.rtl .aws-search-result{text-align:right}.rtl .aws-search-result .aws_result_featured{margin:0 0 0 6px}.rtl .aws-search-result .aws_result_price del,.rtl .aws-search-result .aws_result_price ins{padding:0 0 0 12px}.rtl .aws-search-result .aws_result_cats{float:right;margin:0 0 0 20px}.rtl .aws-search-result .aws_result_image{float:right;padding:0 0 0 10px}.rtl .aws-search-result .aws_result_sale{right:auto;left:0}.rtl .aws-search-result .aws_onsale{float:left;padding-top:2px;position:relative;right:auto;left:-25px;transform:rotate(-45deg)}.rtl .et_vertical_nav .et_search_outer .aws-container{margin:0 0 0 20px}
assets/css/common.min.css ADDED
@@ -0,0 +1 @@
 
1
+ @-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.aws-container .aws-search-form{position:relative;width:100%;float:none!important;display:-webkit-box!important;display:-moz-box!important;display:-ms-flexbox!important;display:-webkit-flex!important;display:flex!important;align-items:stretch;height:44px}.aws-container .aws-search-form *,.aws-search-result{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-hyphens:manual;-webkit-hyphens:manual;hyphens:manual;border-radius:0!important}.aws-container .aws-search-form .aws-loader,.aws-container .aws-search-form .aws-loader:after{border-radius:50%!important;width:20px;height:20px}.aws-container .aws-search-form .aws-wrapper{flex-grow:1;position:relative;vertical-align:top;padding:0;width:100%}.aws-container .aws-search-form .aws-loader{position:absolute;display:none;right:10px;top:50%;z-index:999;margin:-10px 0 0;font-size:10px;text-indent:-9999em;border-top:3px solid #ededed;border-right:3px solid #ededed;border-bottom:3px solid #ededed;border-left:3px solid #555}.aws-container .aws-search-form.aws-processing .aws-loader{display:block;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 .7s infinite linear;animation:load8 .7s infinite linear}.aws-container .aws-search-label{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.aws-container .aws-search-field{width:100%;max-width:100%;color:#313131;padding:6px;line-height:30px;display:block;font-size:12px;position:relative;z-index:2;-webkit-appearance:none;height:100%;margin:0!important;border:1px solid #d8d8d8;outline:0}@media screen and (-webkit-min-device-pixel-ratio:0) and (max-width:1024px){.aws-container .aws-search-field{font-size:16px}}.aws-container .aws-search-field::-ms-clear{display:none;width:0;height:0}.aws-container .aws-search-field::-ms-reveal{display:none;width:0;height:0}.aws-container .aws-search-field::-webkit-search-cancel-button,.aws-container .aws-search-field::-webkit-search-decoration,.aws-container .aws-search-field::-webkit-search-results-button,.aws-container .aws-search-field::-webkit-search-results-decoration{display:none}.aws-container .aws-search-field:focus{background-color:#fff}.aws-container .aws-show-clear .aws-search-field{padding-right:40px}.aws-container .aws-search-field:focus::-webkit-input-placeholder{color:transparent}.aws-container .aws-search-field:focus:-moz-placeholder{color:transparent}.aws-container .aws-search-field:focus::-moz-placeholder{color:transparent}.aws-container .aws-search-field:focus:-ms-input-placeholder{color:transparent}.aws-container .aws-search-form .aws-search-clear{display:none!important;position:absolute;top:0;right:0;z-index:2;cursor:pointer;color:#757575;height:100%;width:38px;padding:0 0 0 10px;text-align:left}.aws-container .aws-search-form .aws-search-clear span{position:relative;display:block;font-size:24px;line-height:24px;top:50%;margin-top:-12px}.aws-container .aws-search-form.aws-show-clear.aws-form-active .aws-search-clear{display:block!important}.aws-container .aws-search-form.aws-form-active.aws-processing .aws-search-clear{display:none!important}.aws-container .aws-search-form .aws-search-btn{padding:0;line-height:10px;width:42px}.aws-container .aws-search-form .aws-search-btn_icon{display:inline-block;fill:currentColor;height:24px;line-height:24px;position:relative;width:42px;color:#555}.aws-container .aws-search-form .aws-search-btn svg{display:block;height:100%;width:100%}.aws-container[data-show-page=false] .aws-search-form .aws-search-btn:hover{background:#ededed;cursor:default}.aws-container .aws-search-form .aws-form-btn{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:center;flex-direction:column;text-align:center;background:#ededed;border:1px solid #d8d8d8;margin:0 0 0-1px;cursor:pointer;position:relative;white-space:nowrap;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:background-color 100ms ease-in-out;-moz-transition:background-color 100ms ease-in-out;-o-transition:background-color 100ms ease-in-out;transition:background-color 100ms ease-in-out}.aws-container .aws-search-form .aws-form-btn:hover{background:#dcdcdc}.aws-container .aws-search-form .aws-form-btn:active{background:#d8d8d8}.aws-container[data-buttons-order="3"] .aws-search-form .aws-wrapper{-webkit-order:2;order:2}.aws-container[data-buttons-order="3"] .aws-search-form .aws-search-btn{margin:0-1px 0 0}.aws-search-result{position:absolute;text-align:left;z-index:9999999999999;background:#fff;width:100%;margin-top:-1px;border:1px solid #ccc;font-size:12px;line-height:16px}.aws-search-result ul{list-style:none;padding:0!important;margin:0!important;max-height:400px;overflow-y:auto}.aws-search-result ul::-webkit-scrollbar-track{-webkit-box-shadow:none;background-color:#ededed}.aws-search-result ul::-webkit-scrollbar{width:7px;background-color:#ededed}.aws-search-result ul::-webkit-scrollbar-thumb{background-color:#d8d8d8}.aws-search-result ul li{list-style:none;border-bottom:1px solid #ccc;overflow:hidden;margin:0!important;position:relative}.aws-search-result ul li:last-child{border-bottom:0}.aws-search-result .aws_result_link{display:block;cursor:pointer;padding:10px 8px;height:100%;overflow:hidden;text-decoration:none;border:0}.aws-search-result .aws_result_item.hovered,.aws-search-result .aws_result_item:hover,.aws-search-result .aws_search_more a:hover{background:#f5f5f5}.aws-search-result .aws_results .aws_result_item{position:relative}.aws-search-result .aws_result_item .aws_result_link_top{position:absolute;z-index:1;white-space:nowrap;text-indent:-9999px;overflow:hidden;top:0;bottom:0;left:0;right:0;opacity:0;outline:0;text-decoration:none}.aws-search-result .aws_result_item [data-link],.aws-search-result .aws_result_item a,.aws-search-result .aws_result_item button,.aws-search-result .aws_result_item span[href]{position:relative;z-index:2}.aws-search-result .aws_result_content{overflow:hidden;display:block}.aws-search-result .aws_result_title{display:block;font-weight:400;margin-bottom:3px;color:#21759b}.aws-search-result .aws_result_featured{margin:0 6px 0 0;position:relative;top:-2px}.aws-search-result .aws_result_featured svg{width:13px;height:13px;fill:#fa0;vertical-align:bottom}.aws-search-result .aws_result_sku,.aws-search-result .aws_result_stock{display:block;font-weight:400;margin-top:4px;margin-bottom:5px;color:#7ad03a}.aws-search-result .aws_result_stock.out{color:#a44}.aws-search-result .aws_result_sku{margin-top:3px;color:#222}.aws-search-result .aws_result_cat .aws_result_title,.aws-search-result .aws_result_tag .aws_result_title{margin-bottom:2px}.aws-search-result .aws_result_excerpt{display:block;color:#222}.aws-search-result .aws_result_price{display:block;padding:2px 0;color:#222}.aws-search-result .aws_result_price del{background:0 0;padding:0 12px 0 0;opacity:.8;text-decoration:line-through!important}.aws-search-result .aws_result_price ins{background:0 0;padding:0 12px 0 0;opacity:1}.aws-search-result .aws_result_cats{display:block;float:left;margin:0 20px 0 0}.aws-search-result .aws_result_image{display:block;height:100%;float:left;padding:0 10px 0 0}.aws-search-result .aws_result_image img{width:50px;height:auto;box-shadow:none}.aws-search-result .aws_result_sale{display:block;height:42px;overflow:hidden;position:absolute;right:0;top:0;width:47px}.aws-search-result .aws_onsale{background:#77a464 0 0;color:#fff;display:block;float:right;height:20px;padding-top:2px;position:relative;right:-25px;text-align:center;top:3px;transform:rotate(45deg);width:77px}.aws-search-result .aws_no_result{line-height:1.5;padding:10px 6px;cursor:auto}.aws-search-result .aws_search_more a{line-height:40px;display:block;text-decoration:none;border:0;text-align:center;color:#21759b}body.aws-overlay{overflow:hidden!important;position:fixed;width:100%}.aws-container.aws-mobile-fixed{position:fixed!important;z-index:9999999!important;top:10px!important;left:20px!important;width:100%;width:calc(100% - 40px)!important}.aws-mobile-fixed-close{padding:15px;margin-right:-10px;display:inline-block;float:right;cursor:pointer}.aws-overlay-mask{display:block;position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;background:#fff;z-index:9999998!important}.aws-overlay .aws-overlay-mask{opacity:1}.et_search_outer .aws-container{width:60%}.et_search_outer .aws-container .aws-search-form{max-width:100%!important}.et_vertical_nav .et_search_outer .aws-container{width:auto;margin:0 20px 0 0}.et_fixed_nav .et-fixed-header .et_search_outer .aws-container{top:7px}.et_pb_menu__search .aws-container{width:100%}#et-boc .aws-container .aws-search-field{border:1px solid #d8d8d8;padding:6px 15px}#et-boc .aws-container .aws-search-form .aws-form-btn{background:#ededed;border:1px solid #d8d8d8;margin:0 0 0-1px}#et-boc .aws-container .aws-search-form .aws-wrapper .aws-loader{border-top:3px solid #ededed;border-right:3px solid #ededed;border-bottom:3px solid #ededed;border-left:3px solid #555;margin:-10px 0 0}#et-boc .aws-container .aws-search-form .aws-search-clear span{margin-top:-12px}#et-boc .aws-container .aws-search-form .aws-search-clear{padding:0 0 0 10px}.aws-search-result .aws_result_title .advanced-woo-labels{position:relative!important;width:auto!important;margin:0 5px 5px 0!important;transform:none!important}.aws-search-result .aws_result_title .advanced-woo-labels:last-child{margin-bottom:0!important}.aws-search-result .aws_result_title .aws_result_labels{display:flex;margin:0!important;flex-wrap:wrap;flex-direction:row;text-align:left;justify-content:flex-start}
assets/js/admin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery(document).ready(function($){"use strict";var $reindexBlock=$("#aws-reindex");var $reindexBtn=$("#aws-reindex .button");var $reindexProgress=$("#aws-reindex .reindex-progress");var $reindexCount=$("#aws-reindex-count strong");var syncStatus;var processed;var toProcess;var syncData=false;var $clearCacheBtn=$("#aws-clear-cache .button");$reindexBtn.on("click",function(e){e.preventDefault();syncStatus="sync";toProcess=0;processed=0;$reindexBlock.addClass("loading");$reindexProgress.html(processed+"%");sync("start")});function sync(data){$.ajax({type:"POST",url:aws_vars.ajaxurl,data:{action:"aws-reindex",data:data,_ajax_nonce:aws_vars.ajax_nonce},dataType:"json",timeout:0,success:function(response){if("sync"!==syncStatus){return}toProcess=response.data.found_posts;processed=response.data.offset;processed=Math.floor(processed/toProcess*100);syncData=response.data;if(0===response.data.offset&&!response.data.start){syncStatus="finished";console.log(response.data);console.log("Reindex finished!");$reindexBlock.removeClass("loading");$reindexCount.text(response.data.found_posts)}else{console.log(response.data);$reindexProgress.html(processed+"%");syncStatus="sync";sync(response.data)}},error:function(jqXHR,textStatus,errorThrown){console.log("Request failed: "+textStatus);if(textStatus=="timeout"||jqXHR.status==504){console.log("timeout");if(syncData){setTimeout(function(){sync(syncData)},1e3)}}else if(textStatus=="error"){if(syncData){if(0!==syncData.offset&&!syncData.start){setTimeout(function(){sync(syncData)},3e3)}}}},complete:function(jqXHR,textStatus){}})}$clearCacheBtn.on("click",function(e){e.preventDefault();var $clearCacheBlock=$(this).closest("#aws-clear-cache");$clearCacheBlock.addClass("loading");$.ajax({type:"POST",url:aws_vars.ajaxurl,data:{action:"aws-clear-cache",_ajax_nonce:aws_vars.ajax_nonce},dataType:"json",success:function(data){alert("Cache cleared!");$clearCacheBlock.removeClass("loading")}})});var changingState=false;$("[data-change-state]").on("click",function(e){e.preventDefault();if(changingState){return}else{changingState=true}var self=$(this);var $parent=self.closest("td");var setting=self.data("setting");var option=self.data("name");var state=self.data("change-state");$parent.addClass("loading");$.ajax({type:"POST",url:aws_vars.ajaxurl,data:{action:"aws-changeState",setting:setting,option:option,state:state,_ajax_nonce:aws_vars.ajax_nonce},dataType:"json",success:function(data){$parent.removeClass("loading");$parent.toggleClass("active");changingState=false}})});$(".aws-welcome-notice.is-dismissible").on("click",".notice-dismiss",function(event){$.ajax({type:"POST",url:aws_vars.ajaxurl,data:{action:"aws-hideWelcomeNotice",_ajax_nonce:aws_vars.ajax_nonce},dataType:"json",success:function(data){}})})});
assets/js/common.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var AwsHooks=AwsHooks||{};AwsHooks.filters=AwsHooks.filters||{};(function($){"use strict";var selector=".aws-container";var instance=0;var pluginPfx="aws_opts";var translate={sale:aws_vars.sale,sku:aws_vars.sku,showmore:aws_vars.showmore,noresults:aws_vars.noresults};AwsHooks.add_filter=function(tag,callback,priority){if(typeof priority==="undefined"){priority=10}AwsHooks.filters[tag]=AwsHooks.filters[tag]||[];AwsHooks.filters[tag].push({priority:priority,callback:callback})};AwsHooks.apply_filters=function(tag,value,options){var filters=[];if(typeof AwsHooks.filters[tag]!=="undefined"&&AwsHooks.filters[tag].length>0){AwsHooks.filters[tag].forEach(function(hook){filters[hook.priority]=filters[hook.priority]||[];filters[hook.priority].push(hook.callback)});filters.forEach(function(AwsHooks){AwsHooks.forEach(function(callback){value=callback(value,options)})})}return value};$.fn.aws_search=function(options){var methods={init:function(){var appendResultsTo=AwsHooks.apply_filters("aws_results_append_to","body",{instance:instance,form:self,data:d});$(appendResultsTo).append('<div id="aws-search-result-'+instance+'" class="aws-search-result" style="display: none;"></div>');methods.addClasses();setTimeout(function(){methods.resultLayout()},500)},onKeyup:function(e){searchFor=$searchField.val();searchFor=searchFor.trim();searchFor=searchFor.replace(/<>\{\}\[\]\\\/]/gi,"");searchFor=searchFor.replace(/\s\s+/g," ");for(var i=0;i<requests.length;i++){requests[i].abort()}if(!d.ajaxSearch){return}if(searchFor===""){$(d.resultBlock).html("").hide();methods.hideLoader();methods.resultsHide();return}if(cachedResponse.hasOwnProperty(searchFor)){methods.showResults(cachedResponse[searchFor]);return}if(searchFor.length<d.minChars){$(d.resultBlock).html("");methods.hideLoader();return}if(d.showLoader){methods.showLoader()}var searchTimeout=d.searchTimeout>100?d.searchTimeout:300;clearTimeout(keyupTimeout);keyupTimeout=setTimeout(function(){methods.ajaxRequest()},searchTimeout)},ajaxRequest:function(){var data={action:"aws_action",keyword:searchFor,aws_page:d.pageId,aws_tax:d.tax,lang:d.lang,pageurl:window.location.href,typedata:"json"};data=AwsHooks.apply_filters("aws_ajax_request_params",data,{instance:instance,form:self,data:d});requests.push($.ajax({type:"POST",url:ajaxUrl,data:data,dataType:"json",success:function(response){cachedResponse[searchFor]=response;methods.showResults(response);methods.showResultsBlock();methods.analytics(searchFor)},error:function(jqXHR,textStatus,errorThrown){console.log("Request failed: "+textStatus);methods.hideLoader()}}))},showResults:function(response){var resultNum=0;var html="<ul>";if(typeof response.tax!=="undefined"){$.each(response.tax,function(i,taxes){if(typeof taxes!=="undefined"&&taxes.length>0){$.each(taxes,function(i,taxitem){resultNum++;html+='<li class="aws_result_item aws_result_tag" style="position:relative;">';html+='<div class="aws_result_link">';html+='<a class="aws_result_link_top" href="'+taxitem.link+'">'+taxitem.name+"</a>";html+='<span class="aws_result_content">';html+='<span class="aws_result_title">';html+=taxitem.name;if(taxitem.count){html+='<span class="aws_result_count">&nbsp;('+taxitem.count+")</span>"}html+="</span>";if(typeof taxitem.excerpt!=="undefined"&&taxitem.excerpt){html+='<span class="aws_result_excerpt">'+taxitem.excerpt+"</span>"}html+="</span>";html+="</div>";html+="</li>"})}})}if(typeof response.products!=="undefined"&&response.products.length>0){$.each(response.products,function(i,result){resultNum++;html+='<li class="aws_result_item" style="position:relative;">';html+='<div class="aws_result_link">';html+='<a class="aws_result_link_top" href="'+result.link+'">'+result.title.replace(/(<[\s\S]*>)/gm,"")+"</a>";if(result.image){html+='<span class="aws_result_image">';html+='<img src="'+result.image+'">';html+="</span>"}html+='<span class="aws_result_content">';html+='<span class="aws_result_title">';if(result.featured){html+='<span class="aws_result_featured" title="Featured"><svg version="1.1" viewBox="0 0 20 21" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-296.000000, -422.000000)"><g transform="translate(296.000000, 422.500000)"><path d="M10,15.273 L16.18,19 L14.545,11.971 L20,7.244 L12.809,6.627 L10,0 L7.191,6.627 L0,7.244 L5.455,11.971 L3.82,19 L10,15.273 Z"/></g></g></g></svg></span>'}html+=result.title;html+="</span>";if(result.stock_status){var statusClass=result.stock_status.status?"in":"out";html+='<span class="aws_result_stock '+statusClass+'">';html+=result.stock_status.text;html+="</span>"}if(result.sku){html+='<span class="aws_result_sku">'+translate.sku+result.sku+"</span>"}if(result.excerpt){html+='<span class="aws_result_excerpt">'+result.excerpt+"</span>"}if(result.price){html+='<span class="aws_result_price">'+result.price+"</span>"}html+="</span>";if(result.on_sale){html+='<span class="aws_result_sale">';html+='<span class="aws_onsale">'+translate.sale+"</span>";html+="</span>"}html+="</div>";html+="</li>"});if(d.showMore&&d.showPage){html+='<li class="aws_result_item aws_search_more"><a href="#">'+translate.showmore+"</a></li>"}}if(!resultNum){html+='<li class="aws_result_item aws_no_result">'+translate.noresults+"</li>"}html+="</ul>";html=AwsHooks.apply_filters("aws_results_html",html,{response:response,data:d});methods.hideLoader();$(d.resultBlock).html(html);methods.showResultsBlock();if(eShowResults){self[0].dispatchEvent(eShowResults)}},showResultsBlock:function(){methods.resultLayout();methods.resultsShow()},showLoader:function(){$searchForm.addClass("aws-processing")},hideLoader:function(){$searchForm.removeClass("aws-processing")},resultsShow:function(){$(d.resultBlock).show();$searchForm.addClass("aws-form-active")},resultsHide:function(){$(d.resultBlock).hide();$searchForm.removeClass("aws-form-active")},onFocus:function(event){var show=AwsHooks.apply_filters("aws_show_modal_layout",false,{instance:instance,form:self,data:d});if(!$("body").hasClass("aws-overlay")&&(methods.isMobile()&&d.mobileScreen&&!methods.isFixed()||show)){methods.showMobileLayout()}if(searchFor!==""){methods.showResultsBlock()}},hideResults:function(event){if(!$(event.target).closest(".aws-container").length&&!$(event.target).closest(self).length&&!$(event.target).closest(d.resultBlock).length){methods.resultsHide()}},isResultsVisible:function(){return $(d.resultBlock).is(":visible")},removeHovered:function(){$(d.resultBlock).find(".aws_result_item").removeClass("hovered")},resultLayout:function(){var $resultsBlock=$(d.resultBlock);var offset=self.offset();var bodyOffset=$("body").offset();var bodyPosition=$("body").css("position");var bodyHeight=$(document).height();var resultsHeight=$resultsBlock.height();var forcePosition=AwsHooks.apply_filters("aws_results_force_position",false,{resultsBlock:$resultsBlock,form:self});if(offset&&bodyOffset){var styles={width:self.outerWidth(),top:0,left:0};if(bodyPosition==="relative"||bodyPosition==="absolute"||bodyPosition==="fixed"){styles.top=offset.top+$(self).innerHeight()-bodyOffset.top;styles.left=offset.left-bodyOffset.left}else{styles.top=offset.top+$(self).innerHeight();styles.left=offset.left}if(bodyHeight-offset.top<500&&!forcePosition||forcePosition&&forcePosition=="top"){resultsHeight=methods.getResultsBlockHeight();if(bodyHeight-offset.top<resultsHeight&&offset.top>=resultsHeight||forcePosition){styles.top=styles.top-resultsHeight-$(self).innerHeight()}}styles=AwsHooks.apply_filters("aws_results_layout",styles,{resultsBlock:$resultsBlock,form:self});$resultsBlock.css(styles)}},getResultsBlockHeight:function(){var $resultsBlock=$(d.resultBlock);var resultsHeight=$resultsBlock.height();if(resultsHeight===0){var copied_elem=$resultsBlock.clone().attr("id",false).css({visibility:"hidden",display:"block",position:"absolute"});$("body").append(copied_elem);resultsHeight=copied_elem.height();copied_elem.remove()}return resultsHeight},showMobileLayout:function(){self.after('<div class="aws-placement-container"></div>');self.addClass("aws-mobile-fixed").prepend('<div class="aws-mobile-fixed-close"><svg width="17" height="17" viewBox="1.5 1.5 21 21"><path d="M22.182 3.856c.522-.554.306-1.394-.234-1.938-.54-.543-1.433-.523-1.826-.135C19.73 2.17 11.955 10 11.955 10S4.225 2.154 3.79 1.783c-.438-.371-1.277-.4-1.81.135-.533.537-.628 1.513-.25 1.938.377.424 8.166 8.218 8.166 8.218s-7.85 7.864-8.166 8.219c-.317.354-.34 1.335.25 1.805.59.47 1.24.455 1.81 0 .568-.456 8.166-7.951 8.166-7.951l8.167 7.86c.747.72 1.504.563 1.96.09.456-.471.609-1.268.1-1.804-.508-.537-8.167-8.219-8.167-8.219s7.645-7.665 8.167-8.218z"></path></svg></div>');$("body").addClass("aws-overlay").append('<div class="aws-overlay-mask"></div>').append(self);$searchField.focus()},hideMobileLayout:function(){$(".aws-placement-container").after(self).remove();self.removeClass("aws-mobile-fixed");$("body").removeClass("aws-overlay");$(".aws-mobile-fixed-close").remove();$(".aws-overlay-mask").remove()},isFixed:function(){var $checkElements=self.add(self.parents());var isFixed=false;$checkElements.each(function(){if($(this).css("position")==="fixed"){isFixed=true;return false}});return isFixed},analytics:function(label){if(d.useAnalytics){try{var sPage="/?s="+encodeURIComponent("ajax-search:"+label);if(typeof gtag!=="undefined"&&gtag!==null){gtag("event","AWS search",{event_label:label,event_category:"AWS Search Term",transport_type:"beacon"});gtag("event","page_view",{page_path:sPage,page_title:"AWS search"})}if(typeof ga!=="undefined"&&ga!==null){ga("send","event","AWS search","AWS Search Term",label);ga("send","pageview",sPage)}if(typeof pageTracker!=="undefined"&&pageTracker!==null){pageTracker._trackPageview(sPage);pageTracker._trackEvent("AWS search","AWS search","AWS Search Term",label)}if(typeof _gaq!=="undefined"&&_gaq!==null){_gaq.push(["_trackEvent","AWS search","AWS Search Term",label]);_gaq.push(["_trackPageview",sPage])}if(typeof __gaTracker!=="undefined"&&__gaTracker!==null){__gaTracker("send","event","AWS search","AWS Search Term",label);__gaTracker("send","pageview",sPage)}}catch(error){}}},addClasses:function(){if(methods.isMobile()||d.showClear){$searchForm.addClass("aws-show-clear")}},isMobile:function(){var check=false;(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true})(navigator.userAgent||navigator.vendor||window.opera);return check},createCustomEvent:function(event,params){var customEvent=false;params=params||null;if(typeof window.CustomEvent==="function"){customEvent=new CustomEvent(event,{bubbles:true,cancelable:true,detail:params})}else if(document.createEvent){customEvent=document.createEvent("CustomEvent");customEvent.initCustomEvent(event,true,true,params)}return customEvent},createAndDispatchEvent:function(obj,event,params){var customEvent=methods.createCustomEvent(event,params);if(customEvent){obj.dispatchEvent(customEvent)}}};var self=$(this),$searchForm=self.find(".aws-search-form"),$searchField=self.find(".aws-search-field"),$searchButton=self.find(".aws-search-btn"),haveResults=false,eShowResults=false,requests=Array(),searchFor="",keyupTimeout,cachedResponse=new Array;var ajaxUrl=self.data("url")!==undefined?self.data("url"):false;if(document.createEvent){eShowResults=document.createEvent("Event");eShowResults.initEvent("awsShowingResults",true,true);eShowResults.eventName="awsShowingResults"}if(options==="relayout"){var d=self.data(pluginPfx);methods.resultLayout();return}instance++;self.data(pluginPfx,{minChars:self.data("min-chars")!==undefined?self.data("min-chars"):1,lang:self.data("lang")!==undefined?self.data("lang"):false,showLoader:self.data("show-loader")!==undefined?self.data("show-loader"):true,showMore:self.data("show-more")!==undefined?self.data("show-more"):true,ajaxSearch:self.data("ajax-search")!==undefined?self.data("ajax-search"):true,showPage:self.data("show-page")!==undefined?self.data("show-page"):true,showClear:self.data("show-clear")!==undefined?self.data("show-clear"):false,mobileScreen:self.data("mobile-screen")!==undefined?self.data("mobile-screen"):false,useAnalytics:self.data("use-analytics")!==undefined?self.data("use-analytics"):false,searchTimeout:self.data("timeout")!==undefined?parseInt(self.data("timeout")):300,instance:instance,resultBlock:"#aws-search-result-"+instance,pageId:self.data("page-id")!==undefined?self.data("page-id"):0,tax:self.data("tax")!==undefined?self.data("tax"):0});var d=self.data(pluginPfx);methods.createAndDispatchEvent(document,"awsLoaded",{instance:instance,form:self,data:d});if($searchForm.length>0){methods.init.call(this)}$searchField.on("keyup input",function(e){if(e.keyCode!=40&&e.keyCode!=38){methods.onKeyup(e)}});$searchField.on("focus",function(e){$searchForm.addClass("aws-focus");methods.onFocus(e)});$searchField.on("focusout",function(e){$searchForm.removeClass("aws-focus")});$searchForm.on("keypress",function(e){if(e.keyCode==13&&(!d.showPage||$searchField.val()==="")){e.preventDefault()}});$searchButton.on("click",function(e){if(d.showPage&&$searchField.val()!==""){$searchForm.submit()}});$searchForm.find(".aws-search-clear").on("click",function(e){$searchField.val("");$searchField.focus();methods.resultsHide();$(d.resultBlock).html("");searchFor=""});$(document).on("click",function(e){methods.hideResults(e)});$(window).on("resize",function(e){methods.resultLayout()});$(window).on("scroll",function(e){if($(d.resultBlock).css("display")=="block"){methods.resultLayout()}});$(d.resultBlock).on("mouseenter",".aws_result_item",function(){methods.removeHovered();$(this).addClass("hovered");$searchField.trigger("mouseenter")});$(d.resultBlock).on("mouseleave",".aws_result_item",function(){methods.removeHovered()});$(d.resultBlock).on("click",".aws_search_more",function(e){e.preventDefault();$searchForm.submit()});$(d.resultBlock).on("click","span[href], [data-link]",function(e){e.preventDefault();var link=$(this).data("link")?$(this).data("link"):$(this).attr("href");if(link===""||link==="#"){return}e.stopPropagation();if(link){window.location=link}});$(self).on("click",".aws-mobile-fixed-close",function(e){methods.hideMobileLayout()});$(window).on("keydown",function(e){if(e.keyCode==40||e.keyCode==38){if(methods.isResultsVisible()){e.stopPropagation();e.preventDefault();var $item=$(d.resultBlock).find(".aws_result_item");var $hoveredItem=$(d.resultBlock).find(".aws_result_item.hovered");var $itemsList=$(d.resultBlock).find("ul");if(e.keyCode==40){if($hoveredItem.length>0){methods.removeHovered();$hoveredItem.next().addClass("hovered")}else{$item.first().addClass("hovered")}}if(e.keyCode==38){if($hoveredItem.length>0){methods.removeHovered();$hoveredItem.prev().addClass("hovered")}else{$item.last().addClass("hovered")}}var activeItemOffset=$(".aws_result_item.hovered").position();if(activeItemOffset){$itemsList.animate({scrollTop:activeItemOffset.top+$itemsList.scrollTop()},400)}}}})};$(document).ready(function(){$(selector).each(function(){$(this).aws_search()});$("[data-avia-search-tooltip]").on("click",function(){window.setTimeout(function(){$(selector).aws_search()},1e3)});var $filters_widget=$(".woocommerce.widget_layered_nav_filters");var searchQuery=window.location.search;if($filters_widget.length>0&&searchQuery){if(searchQuery.indexOf("type_aws=true")!==-1){var $filterLinks=$filters_widget.find("ul li.chosen a");if($filterLinks.length>0){var addQuery="&type_aws=true";$filterLinks.each(function(){var filterLink=$(this).attr("href");if(filterLink&&filterLink.indexOf("post_type=product")!==-1){$(this).attr("href",filterLink+addQuery)}})}}}})})(jQuery);
includes/admin/class-aws-admin.php CHANGED
@@ -158,14 +158,18 @@ class AWS_Admin {
158
  public function admin_enqueue_scripts() {
159
 
160
  if ( isset( $_GET['page'] ) && $_GET['page'] == 'aws-options' ) {
161
- wp_enqueue_style( 'plugin-admin-style', AWS_URL . 'assets/css/admin.css', array(), AWS_VERSION );
 
 
 
162
  wp_enqueue_script( 'jquery' );
163
  wp_enqueue_script( 'jquery-ui-sortable' );
164
- wp_enqueue_script( 'plugin-admin-scripts', AWS_URL . 'assets/js/admin.js', array('jquery', 'jquery-ui-sortable'), AWS_VERSION );
165
  wp_localize_script( 'plugin-admin-scripts', 'aws_vars', array(
166
  'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),
167
  'ajax_nonce' => wp_create_nonce( 'aws_admin_ajax_nonce' ),
168
  ) );
 
169
  }
170
 
171
  }
158
  public function admin_enqueue_scripts() {
159
 
160
  if ( isset( $_GET['page'] ) && $_GET['page'] == 'aws-options' ) {
161
+
162
+ $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
163
+
164
+ wp_enqueue_style( 'plugin-admin-style', AWS_URL . 'assets/css/admin' . $suffix . '.css', array(), AWS_VERSION );
165
  wp_enqueue_script( 'jquery' );
166
  wp_enqueue_script( 'jquery-ui-sortable' );
167
+ wp_enqueue_script( 'plugin-admin-scripts', AWS_URL . 'assets/js/admin' . $suffix . '.js', array('jquery', 'jquery-ui-sortable'), AWS_VERSION );
168
  wp_localize_script( 'plugin-admin-scripts', 'aws_vars', array(
169
  'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),
170
  'ajax_nonce' => wp_create_nonce( 'aws_admin_ajax_nonce' ),
171
  ) );
172
+
173
  }
174
 
175
  }
includes/modules/gutenberg/aws-gutenberg-search-block.min.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(blocks,element,serverSideRender,blockEditor,components){var el=element.createElement;var useBlockProps=blockEditor.useBlockProps;var RichText=blockEditor.RichText;var ServerSideRender=serverSideRender;var InspectorControls=blockEditor.InspectorControls;var Fragment=element.Fragment;var TextControl=components.TextControl;var Panel=components.Panel;var PanelBody=components.PanelBody;var PanelRow=components.PanelRow;var sIcon=el("svg",{width:20,height:20},el("path",{fill:"#7f54b3",d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));blocks.updateCategory("aws",{icon:sIcon});var blockStyle={backgroundColor:"#900",color:"#fff",padding:"20px"};blocks.registerBlockType("advanced-woo-search/search-block",{apiVersion:2,title:"Search Form",description:"Advanced Woo Search form block inserts plugin search form into the page.",icon:sIcon,category:"aws",example:{},edit:function(props){var blockProps=blockEditor.hasOwnProperty("useBlockProps")?blockEditor.useBlockProps():null;return el(Fragment,{},el(InspectorControls,{},el(PanelBody,{title:"Search Form Settings",initialOpen:true},el(PanelRow,{},el(TextControl,{label:"Placeholder text",onChange:value=>{props.setAttributes({placeholder:value})},value:props.attributes.placeholder})))),el("div",blockProps,el(ServerSideRender,{block:"advanced-woo-search/search-block",attributes:props.attributes})))},save:function(props){return null}})})(window.wp.blocks,window.wp.element,window.wp.serverSideRender,window.wp.blockEditor,window.wp.components);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
- Stable tag: 2.63
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -168,6 +168,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
168
 
169
  == Changelog ==
170
 
 
 
 
171
  = 2.63 ( 2022-09-19 ) =
172
  * Add - Archive pages number option
173
  * Update - Tested with WC 6.9
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
+ Stable tag: 2.64
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
168
 
169
  == Changelog ==
170
 
171
+ = 2.64 ( 2022-10-03 ) =
172
+ * Update - Minify assets
173
+
174
  = 2.63 ( 2022-09-19 ) =
175
  * Add - Archive pages number option
176
  * Update - Tested with WC 6.9