link-templates
5 months ago
lock-options
6 months ago
page-templates
4 months ago
all-packages-shortcode.php
1 week ago
category-shortcode-toolbar.php
1 year ago
file-list.php
5 years ago
lock-options-iframe.php
5 months ago
packages-shortcode-toolbar.php
1 year ago
packages-shortcode.php
2 years ago
search-result.php
5 years ago
shortcode-iframe.php
5 months ago
search-result.php
25 lines
| 1 | <div class='w3eden'> |
| 2 | <form id="srcp" style="margin-bottom: 10px"> |
| 3 | <input type="text" class="form-control form-control-lg" style="border-radius: 3px;background-position: 16px 11px;padding-left: 50px !important;" name="src" placeholder="<?php _e('Search Package','wpdmap'); ?>" id="src"> |
| 4 | </form> |
| 5 | <div style='clear: both;'> |
| 6 | <div class='wpdm-downloads' id='wpdm-downloads'></div> |
| 7 | </div> |
| 8 | </div> |
| 9 | <script> |
| 10 | function htmlEncode(value){ |
| 11 | return jQuery('<div/>').text(value).html(); |
| 12 | } |
| 13 | jQuery('#srcp').submit(function(e){ |
| 14 | e.preventDefault(); |
| 15 | jQuery('.wpdm-cat-link').removeClass('active'); |
| 16 | jQuery('#inp').html('<?php _e('Search Result For','wpdmap'); ?> <b>'+htmlEncode(jQuery('#src').val())+'</b>'); |
| 17 | jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading"><i class="fa fa-spin fa-spinner icon icon-spin icon-spinner"></i> <?php _e('Loading','wpdmap'); ?>...</div>').load('<?php echo home_url('/?wpdmtask=get_downloads&pg='.get_the_ID().'&search='); ?>'+encodeURIComponent(jQuery('#src').val() )); |
| 18 | }); |
| 19 | jQuery('body').on('click', '.pagination a',function(e){ |
| 20 | e.preventDefault(); |
| 21 | jQuery('#wpdm-downloads').prepend('<div class="wpdm-loading"><i class="fa fa-spin fa-spinner icon icon-spin icon-spinner"></i> <?php _e('Loading','wpdmap'); ?>...</div>').load(this.href); |
| 22 | return false; |
| 23 | }); |
| 24 | </script> |
| 25 |