initial commit

This commit is contained in:
2024-04-29 13:12:44 +05:45
commit 34887303c5
19300 changed files with 5268802 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
.espbw-clearfix:before, .espbw-clearfix:after {content: "";display: table;}
.espbw-clearfix::after {clear: both;}
.espbw-hide{display: none;}
.filter-links a{padding-left:30px !important; background-size:25px 25px; background-repeat:no-repeat; background-position:left center;}
.filter-links .espbw-plugin-all a.espbw-filter-link{background-image:url('../images/essential-plugin-50.png');}
.filter-links .espbw-plugin-recommended a.espbw-filter-link{background-image:url('../images/utility-icon.png');}
.filter-links .espbw-plugin-marketing a.espbw-filter-link{background-image:url('../images/inbound50-by-50.png');}
.filter-links .espbw-plugin-sliders a.espbw-filter-link{background-image:url('../images/sliderspack.png');}
.filter-links .espbw-plugin-woo a.espbw-filter-link{background-image:url('../images/cart-2.png');}
.wpos-em{font-size:15px; color:#e11919 !important;}
.espbw-dashboard-logo{text-align: center;}
.espbw-dashboard-logo img{width:140px;}
.espbw-plugin-card-wrap{margin: 0 0 16px 0; display: inline-block; vertical-align: top; width: 50%; padding: 0 8px; font-size: 13px; box-sizing: border-box;}
.espbw-plugin-list{margin: 0 -8px; font-size:0.001px; width: auto;}
.espbw-plugin-list .plugin-card{float: none; width: 100%; margin: 0;}
.espbw-dashboard-title{text-align: center;}
.espbw-dashboard-title h3{margin: 10px 0 8px 0; font-size: 1.8em}
.espbw-dashboard-title-inr{display: inline-block; text-align: right;}
.espbw-dashboard-title-inr span{display: inline-block; font-weight: 600; text-decoration: underline;}
.espbw-filter .espbw-search-inp{margin: 0; border-radius: 0;}
.espbw-filter a:focus{box-shadow: none; outline: 0;}
.espbw-search-no-result{clear: both; text-align: center; font-size: 16px;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -0,0 +1,76 @@
/*jslint browser:true */
(function ($) {
"use strict";
var timer;
var timeOut = 300; /* delay after last keypress to execute filter */
$( document ).ready(function() {
/* Stop Submitting Search Form */
$('.espbw-search-inp-js').submit(function( event ) {
event.preventDefault();
});
$(document).on('keyup paste input', '.espbw-search-inp-js', function(event) {
clearTimeout(timer); /* if we pressed the key, it will clear the previous timer and wait again */
var curr_ele = $(this);
var cls_ele = curr_ele.closest('.espbw-dashboard-wrap');
var search_ele = cls_ele.find('.espbw-plugin-list');
cls_ele.find('.espbw-search-no-result').hide();
cls_ele.find('.espbw-filter-link').removeClass('current');
timer = setTimeout(function() {
var search_value = $.trim( curr_ele.val().toLowerCase() );
var search_array = search_value.split(" ");
if( search_value == '' ) {
cls_ele.find('.espbw-plugin-all .espbw-filter-link').addClass('current');
}
search_ele.find('.espbw-plugin-card-wrap').each(function(index) {
var contents = $(this).find('.espbw-plugin-name').text().toLowerCase();
var tags = $(this).attr('data-tags').toLowerCase();
if ( contents.indexOf(search_value) !== -1 || tags.indexOf(search_value) !== -1 ) {
$(this).show();
} else {
$(this).hide();
}
});
if( ! cls_ele.find('.espbw-plugin-card-wrap').is(":visible") ) {
cls_ele.find('.espbw-search-no-result').show();
}
}, timeOut);
});
/* Filter Links */
$(document).on('click', '.espbw-filter-link', function() {
var curr_ele = $(this);
var cls_ele = curr_ele.closest('.espbw-dashboard-wrap');
var plugin_list_ele = cls_ele.find('.espbw-plugin-list');
var filter = curr_ele.attr('data-filter');
filter = filter ? filter : '';
cls_ele.find('.espbw-search-inp-js').val('');
plugin_list_ele.find('.espbw-plugin-card-wrap').hide();
cls_ele.find('.espbw-filter-link').removeClass('current');
curr_ele.addClass('current');
if( filter == '' ) {
plugin_list_ele.find('.espbw-plugin-card-wrap').show();
} else {
plugin_list_ele.find('.espbw-'+filter).show();
}
});
});
})(jQuery);