custom-tags.php
2 weeks ago
email-template-editor.php
2 years ago
email-template-settings.php
6 months ago
emails-template.php
4 years ago
header.php
3 years ago
import-template.php
5 years ago
list-templates.php
2 weeks ago
templates.php
2 weeks ago
import-template.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Base: wpdmpro |
| 4 | * Developer: shahjada |
| 5 | * Team: W3 Eden |
| 6 | * Date: 22/5/20 08:18 |
| 7 | */ |
| 8 | if(!defined("ABSPATH")) die(); |
| 9 | |
| 10 | ?> |
| 11 | |
| 12 | <div id="__imtemplates"> |
| 13 | <div style="padding: 100px; text-align: center" class="lead"> |
| 14 | <i class="fa fa-spin fa-sun"></i> <?php echo __( "Connecting Template Server", "download-manager" ) ?> |
| 15 | </div> |
| 16 | </div> |
| 17 | |
| 18 | <style> |
| 19 | img{ |
| 20 | max-width: 100%; |
| 21 | } |
| 22 | </style> |
| 23 | <script> |
| 24 | jQuery(function ($) { |
| 25 | $('#__imtemplates').load(ajaxurl, {action: 'connect_template_server'}); |
| 26 | $('body').on('click', '.btn-import-template', function () { |
| 27 | var $this = $(this); |
| 28 | $this.attr('disabled', 'disabled').html('<i class="fa fa-spin fa-sun"></i>'); |
| 29 | $.post(ajaxurl, {action: 'wpdm_import_template', template: $(this).data('template'), template_type: $(this).data('type')}, function (response) { |
| 30 | WPDM.notify("<b><i class='fa fa-check-double'></i> Done</b><br/>Template imported successfully!"); |
| 31 | $this.removeAttr('disabled').html('Import'); |
| 32 | }); |
| 33 | }); |
| 34 | |
| 35 | }); |
| 36 | </script> |
| 37 | <style> |
| 38 | .w3eden .panel .panel-footer.import-footer{ |
| 39 | position: relative; |
| 40 | padding: 0 0 0 15px; |
| 41 | line-height: 36px; |
| 42 | overflow: hidden; |
| 43 | } |
| 44 | .w3eden .btn.btn-import-template{ |
| 45 | top: 0;right: 0;border-radius: 0;height: 100%;position: absolute;padding: 0 20px; |
| 46 | } |
| 47 | </style> |
| 48 |