PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.4.6
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.4.6
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / src / Scheduling / views / SchedulingUI.php
wp-all-export / src / Scheduling / views Last commit date
CommonJs.php 3 years ago ConnectionIcon.php 3 years ago ManualScheduling.php 2 years ago SaveSchedulingButton.php 3 years ago SchedulingHelp.php 2 years ago SchedulingOptions.php 2 years ago SchedulingUI.php 2 years ago
SchedulingUI.php
785 lines
1 <?php
2 if(!defined('ABSPATH')) {
3 die();
4 }
5 ?>
6 <style type="text/css">
7 .days-of-week {
8 margin-left: 5px;
9 }
10
11 .days-of-week li {
12 border: 1px solid #ccc;
13 border-radius: 5px;
14 padding: 10px 30px;;
15 display: inline-block;
16 margin-right: 10px;
17 cursor: pointer;
18 font-weight: bold;
19 width: 38px;
20 text-align: center;
21 height: 16px;
22 color: rgb(68,68,68);
23 float: left;
24 }
25
26 .days-of-week li.selected {
27 color: #fff;
28 background-color: #425F9A;
29 border-color: #585858;
30 }
31
32 #weekly, #monthly {
33 height: 40px;
34 }
35
36 .timepicker {
37 width: 100px;
38 padding: 10px;
39 border-radius: 5px;
40 margin-right: 10px;
41 }
42
43 #times {
44 margin-top: 5px;
45 width: 800px;
46 }
47
48 #times input {
49 margin-top: 10px;
50 margin-left: 0;
51 float: left;
52 }
53
54 #times input.error {
55 border-color: red !important;
56 }
57
58 .subscribe {
59
60 }
61
62 .subscribe .button-container {
63 float: left;
64 width: 150px;
65 }
66
67 .subscribe .text-container {
68 float: left;
69 width: auto;
70 }
71
72 .subscribe .text-container p {
73 margin: 0;
74 color: #425F9A;
75 font-size: 14px;
76 font-weight: bold;
77 }
78
79 .subscribe .text-container p a {
80 color: #425F9A;
81 text-decoration: underline;
82 }
83
84 .save {
85 padding-left: 5px;
86 padding-top: 5px;
87 width: auto;
88 }
89
90 .ui-timepicker-wrapper {
91 width: 98px;
92 }
93
94 .easing-spinner {
95 width: 30px;
96 height: 30px;
97 position: relative;
98 display: inline-block;
99
100 margin-top: 7px;
101 margin-left: -15px;
102
103 float: left;
104 }
105
106 .double-bounce1, .double-bounce2 {
107 width: 100%;
108 height: 100%;
109 border-radius: 50%;
110 background-color: #fff;
111 opacity: 0.6;
112 position: absolute;
113 top: 0;
114 left: 0;
115
116 -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
117 animation: sk-bounce 2.0s infinite ease-in-out;
118 }
119
120 .double-bounce2 {
121 -webkit-animation-delay: -1.0s;
122 animation-delay: -1.0s;
123 }
124
125 .wpae-export-complete-save-button svg {
126 margin-top: 7px;
127 margin-left: -15px;
128 position: relative;
129 display: none;
130 }
131
132 @-webkit-keyframes sk-bounce {
133 0%, 100% {
134 -webkit-transform: scale(0.0)
135 }
136 50% {
137 -webkit-transform: scale(1.0)
138 }
139 }
140
141 @keyframes sk-bounce {
142 0%, 100% {
143 transform: scale(0.0);
144 -webkit-transform: scale(0.0);
145 }
146 50% {
147 transform: scale(1.0);
148 -webkit-transform: scale(1.0);
149 }
150 }
151
152 #add-subscription-field {
153 position: absolute;
154 left: -152px;
155 top: -2px;
156 height: 46px;
157 border-radius: 5px;
158 font-size: 17px;
159 padding-left: 10px;
160 display: none;
161 width: 140px;
162 }
163
164 #find-subscription-link {
165 position: absolute;
166 left: 133px;
167 top: 14px;
168 height:30px;
169 width: 230px;
170 display: none;
171 }
172
173 #find-subscription-link a {
174 display: block;
175 width: 100%;
176 height: 46px;
177 white-space: nowrap;
178 }
179
180 #weekly li.error, #monthly li.error {
181 border-color: red;
182 }
183
184 .chosen-single {
185 margin-bottom: 0 !important;
186 }
187
188 .chosen-container.chosen-with-drop .chosen-drop {
189 margin-top: -3px;
190 }
191
192 .wpallexport-preview-content h4{
193 font-size: 14px;
194 margin-bottom: 5px;
195 color: #40acad;
196 text-decoration: none;
197 }
198
199 #scheduling-form h4 {
200 display: inline-block;;
201 }
202
203 .manual-scheduling {
204 margin-left: 26px;
205 }
206 </style>
207 <?php
208 $scheduling = \Wpae\Scheduling\Scheduling::create();
209 $schedulingExportOptions = $export->options;
210 $hasActiveLicense = $scheduling->checkLicense();
211 $cron_job_key = PMXE_Plugin::getInstance()->getOption('cron_job_key');
212 $options = \PMXE_Plugin::getInstance()->getOption();
213 $export_id = $export->id;
214 ?>
215
216 <script type="text/javascript">
217 (function ($) {
218 $(function () {
219
220 var hasActiveLicense = <?php echo $hasActiveLicense? 'true':'false'; ?>;
221
222 $(document).ready(function () {
223
224 function openSchedulingAccordeonIfClosed() {
225 if ($('.wpallexport-file-options').hasClass('closed')) {
226 // Open accordion
227 $('#scheduling-title').trigger('click');
228 }
229 }
230
231 window.pmxeValidateSchedulingForm = function () {
232
233 var schedulingEnabled = $('input[name="scheduling_enable"]:checked').val() == 1;
234
235 if (!schedulingEnabled) {
236 return {
237 isValid: true
238 };
239 }
240
241 var runOn = $('input[name="scheduling_run_on"]:checked').val();
242
243 // Validate weekdays
244 if (runOn == 'weekly') {
245 var weeklyDays = $('#weekly_days').val();
246
247 if (weeklyDays == '') {
248 $('#weekly li').addClass('error');
249 return {
250 isValid: false,
251 message: 'Please select at least a day on which the export should run'
252 }
253 }
254 } else if (runOn == 'monthly') {
255 var monthlyDays = $('#monthly_days').val();
256
257 if (monthlyDays == '') {
258 $('#monthly li').addClass('error');
259 return {
260 isValid: false,
261 message: 'Please select at least a day on which the export should run'
262 }
263 }
264 }
265
266 // Validate times
267 var timeValid = true;
268 var timeMessage = 'Please select at least a time for the export to run';
269 var timeInputs = $('.timepicker');
270 var timesHasValues = false;
271
272 timeInputs.each(function (key, $elem) {
273
274 if($(this).val() !== ''){
275 timesHasValues = true;
276 }
277
278 if (!$(this).val().match(/^(0?[1-9]|1[012])(:[0-5]\d)[APap][mM]$/) && $(this).val() != '') {
279 $(this).addClass('error');
280 timeValid = false;
281 } else {
282 $(this).removeClass('error');
283 }
284 });
285
286 if(!timesHasValues) {
287 timeValid = false;
288 $('.timepicker').addClass('error');
289 }
290
291 if (!timeValid) {
292 return {
293 isValid: false,
294 message: timeMessage
295 };
296 }
297
298 return {
299 isValid: true
300 };
301 };
302
303 $('#weekly li').on('click', function () {
304
305 $('#weekly li').removeClass('error');
306
307 if ($(this).hasClass('selected')) {
308 $(this).removeClass('selected');
309 } else {
310 $(this).addClass('selected');
311 }
312
313 $('#weekly_days').val('');
314
315 $('#weekly li.selected').each(function () {
316 var val = $(this).data('day');
317 $('#weekly_days').val($('#weekly_days').val() + val + ',');
318 });
319
320 $('#weekly_days').val($('#weekly_days').val().slice(0, -1));
321
322 });
323
324 $('#monthly li').on('click', function () {
325
326 $('#monthly li').removeClass('error');
327 $(this).parent().parent().find('.days-of-week li').removeClass('selected');
328 $(this).addClass('selected');
329
330 $('#monthly_days').val($(this).data('day'));
331 });
332
333 $('input[name="scheduling_run_on"]').on('change', function () {
334 var val = $('input[name="scheduling_run_on"]:checked').val();
335 if (val == "weekly") {
336
337 $('#weekly').slideDown({
338 queue: false
339 });
340 $('#monthly').slideUp({
341 queue: false
342 });
343
344 } else if (val == "monthly") {
345
346 $('#weekly').slideUp({
347 queue: false
348 });
349 $('#monthly').slideDown({
350 queue: false
351 });
352 }
353 });
354
355 $('.timepicker').timepicker();
356
357 var selectedTimes = [];
358
359 var onTimeSelected = function () {
360
361 selectedTimes.push([$(this).val(), $(this).val() + 1]);
362
363 var isLastChild = $(this).is(':last-child');
364 if (isLastChild) {
365 $(this).parent().append('<input class="timepicker" name="scheduling_times[]" style="display: none;" type="text" />');
366 $('.timepicker:last-child').timepicker({
367 'disableTimeRanges': selectedTimes
368 });
369 $('.timepicker:last-child').fadeIn('fast');
370 $('.timepicker').on('changeTime', onTimeSelected);
371 }
372 };
373
374 $('.timepicker').on('changeTime', onTimeSelected);
375
376 $('#timezone').chosen({width: '320px'});
377
378 $('.wpae-export-complete-save-button').on('click', function (e) {
379
380 if($('.wpae-save-button').hasClass('disabled')) {
381 return false;
382 }
383
384 var initialValue = $(this).find('.save-text').html();
385 var schedulingEnable = $('input[name="scheduling_enable"]:checked').val() == 1;
386
387 var validationResponse = pmxeValidateSchedulingForm();
388 if (!validationResponse.isValid) {
389
390 openSchedulingAccordeonIfClosed();
391 e.preventDefault();
392 return false;
393 }
394
395 $(this).find('.easing-spinner').toggle();
396
397 var $button = $(this);
398
399 var formData = $('#scheduling-form :input').serializeArray();
400
401 formData.push({name: 'security', value: wp_all_export_security});
402 formData.push({name: 'action', value: 'save_scheduling'});
403 formData.push({name: 'element_id', value: <?php echo intval($export_id); ?>});
404 formData.push({name: 'scheduling_enable', value: $('input[name="scheduling_enable"]:checked').val()});
405
406 $.ajax({
407 type: 'POST',
408 url: ajaxurl,
409 data: formData,
410 success: function (response) {
411 $button.find('.easing-spinner').toggle();
412 $button.find('.save-text').html(initialValue);
413 $button.find('svg').show();
414 $button.find('svg').fadeOut(3000);
415
416 },
417 error: function () {
418 $button.find('.easing-spinner').toggle();
419 $button.find('.save-text').html(initialValue);
420 }
421 });
422 });
423
424 <?php if($schedulingExportOptions['scheduling_timezone'] == 'UTC') {
425 ?>
426 var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
427
428 if($('#timezone').find("option:contains('"+ timeZone +"')").length != 0){
429 $('#timezone').trigger("chosen:updated");
430 $('#timezone').val(timeZone);
431 $('#timezone').trigger("chosen:updated");
432 }else{
433 var parts = timeZone.split('/');
434 var lastPart = parts[parts.length-1];
435 var opt = $('#timezone').find("option:contains('"+ lastPart +"')");
436
437 $('#timezone').val(opt.val());
438 $('#timezone').trigger("chosen:updated");
439 }
440
441 <?php
442 }
443 ?>
444
445 var saveSubscription = false;
446
447 $('#add-subscription').on('click', function(){
448
449 $('#add-subscription-field').show();
450 $('#add-subscription-field').animate({width:'400px'}, 225);
451 $('#add-subscription-field').animate({left:'-1px'}, 225);
452 $('#subscribe-button .button-subscribe').css('background-color','#46ba69');
453 $('.text-container p').fadeOut();
454
455 setTimeout(function () {
456 $('#find-subscription-link').show();
457 $('#find-subscription-link').animate({left: '410px'}, 300, 'swing');
458 }, 225);
459 $('.subscribe-button-text').html('<?php esc_html_e('Activate'); ?>');
460 saveSubscription = true;
461 return false;
462 });
463
464 $('#subscribe-button').on('click', function(){
465
466 if(saveSubscription) {
467 $('#subscribe-button .easing-spinner').show();
468 var license = $('#add-subscription-field').val();
469 $.ajax({
470 url:ajaxurl+'?action=wpae_api&q=schedulingLicense/saveSchedulingLicense&security=<?php echo esc_js(wp_create_nonce("wp_all_export_secure"));?>',
471 type:"POST",
472 data: {
473 license: license
474 },
475 dataType:"json",
476 success: function(response){
477
478 $('#subscribe-button .button-subscribe').css('background-color','#425f9a');
479 if(response.success) {
480 hasActiveLicense = true;
481 $('.wpae-save-button').removeClass('disabled');
482 $('#subscribe-button .easing-spinner').hide();
483 $('#subscribe-button svg.success').show();
484 $('#subscribe-button svg.success').fadeOut(3000, function () {
485 $('.subscribe').hide({queue: false});
486 $('#subscribe-filler').show({queue: false});
487 });
488
489 $('.wpai-no-license').hide();
490 $('.wpai-license').show();
491 } else {
492 $('#subscribe-button .easing-spinner').hide();
493 $('#subscribe-button svg.error').show();
494 $('.subscribe-button-text').html('<?php esc_html_e('Subscribe'); ?>');
495 $('#subscribe-button svg.error').fadeOut(3000, function () {
496 $('#subscribe-button svg.error').hide({queue: false});
497
498 });
499
500 $('#add-subscription').html('<?php esc_html_e('Invalid license, try again?');?>');
501 $('.text-container p').fadeIn();
502
503 $('#find-subscription-link').animate({width: 'toggle'}, 300, 'swing');
504
505 setTimeout(function () {
506 $('#add-subscription-field').animate({width:'140px'}, 225);
507 $('#add-subscription-field').animate({left:'-152px'}, 225);
508 }, 300);
509
510 $('#add-subscription-field').val('');
511
512 $('#subscribe-button-text').html('<?php esc_html_e('Subscribe'); ?>');
513 saveSubscription = false;
514 }
515 }
516 });
517
518 return false;
519 }
520 });
521 });
522 // help scheduling template
523 $('.help_scheduling').on('click', function(){
524
525 $('.wp-all-export-scheduling-help').css('left', ($( document ).width()/2) - 255 ).show();
526 $('#wp-all-export-scheduling-help-inner').css('max-height', $( window ).height()-150).show();
527 $('.wpallexport-overlay').show();
528 return false;
529 });
530
531 $('.wp_all_export_scheduling_help').find('h3').on('click', function(){
532 var $action = $(this).find('span').html();
533 $('.wp_all_export_scheduling_help').find('h3').each(function(){
534 $(this).find('span').html("+");
535 });
536 if ( $action == "+" ) {
537 $('.wp_all_export_help_tab').slideUp();
538 $('.wp_all_export_help_tab[rel=' + $(this).attr('id') + ']').slideDown();
539 $(this).find('span').html("-");
540 }
541 else{
542 $('.wp_all_export_help_tab[rel=' + $(this).attr('id') + ']').slideUp();
543 $(this).find('span').html("+");
544 }
545 });
546 });
547 })(jQuery);
548
549 </script>
550 <?php require __DIR__.'/CommonJs.php'; ?>
551 <div id="scheduling-form">
552
553 <div class="wpallexport-content-section" style="padding-bottom: 15px; margin-bottom: 10px; margin-top: 5px;">
554 <div class="wpallexport-collapsed-content" style="padding: 0; height: auto; ">
555 <div class="wpallexport-collapsed-content-inner" style="padding-bottom: 0; overflow: auto; padding-right: 0;">
556 <div style="margin-bottom: 20px;">
557 <label>
558 <input type="radio" name="scheduling_enable" value="0" <?php if($schedulingExportOptions['scheduling_enable'] == 0) { ?> checked="checked" <?php } ?>/>
559 <h4 style="display: inline-block;"><?php esc_html_e('Do Not Schedule'); ?></h4>
560 </label>
561 </div>
562 <div>
563 <label>
564 <input type="radio" name="scheduling_enable" value="1" <?php if($schedulingExportOptions['scheduling_enable'] == 1) {?> checked="checked" <?php }?>/>
565 <h4 style="margin: 0; display: inline-flex; align-items: center;"><?php esc_html_e('Automatic Scheduling', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
566 <span class="connection-icon" style="margin-left: 8px; height: 16px;">
567 <?php include_once('ConnectionIcon.php'); ?>
568 </span>
569 <?php if($schedulingExportOptions['scheduling_enable'] == 1) { ?>
570 <?php if (!$scheduling->checkConnection()) { ?>
571 <span class="wpai-license" style="margin-left: 8px; font-weight: normal; font-weight: normal; <?php if(!$hasActiveLicense) { ?> display: none; <?php }?>"><span class="unable-to-connect">Unable to connect, please contact support.</span></span>
572 <?php } ?>
573 <?php } ?>
574 </h4>
575 </label>
576 </div>
577
578 <div style="margin-bottom: 10px; margin-left:26px;">
579 <label>
580 <?php esc_html_e('Run this export on a schedule.'); ?>
581 <?php if($hasActiveLicense) { ?>
582 <?php } ?>
583 </label>
584 </div>
585 <div id="automatic-scheduling"
586 style="margin-left: 21px; <?php if ($schedulingExportOptions['scheduling_enable'] != 1) { ?> display: none; <?php } ?>">
587 <div>
588 <div class="input">
589 <label style="color: rgb(68,68,68);">
590 <input
591 type="radio" <?php if ($schedulingExportOptions['scheduling_run_on'] != 'monthly') { ?> checked="checked" <?php } ?>
592 name="scheduling_run_on" value="weekly"
593 checked="checked"/> <?php esc_html_e('Every week on...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
594 </label>
595 </div>
596 <input type="hidden" style="width: 500px;" name="scheduling_weekly_days"
597 value="<?php echo esc_attr($schedulingExportOptions['scheduling_weekly_days']); ?>" id="weekly_days"/>
598 <?php
599 if (isset($schedulingExportOptions['scheduling_weekly_days'])) {
600 $weeklyArray = explode(',', $schedulingExportOptions['scheduling_weekly_days']);
601 } else {
602 $weeklyArray = array();
603 }
604 ?>
605 <ul class="days-of-week" id="weekly" style="<?php if ($schedulingExportOptions['scheduling_run_on'] == 'monthly') { ?> display: none; <?php } ?>">
606 <li data-day="0" <?php if (in_array('0', $weeklyArray)) { ?> class="selected" <?php } ?>>
607 Mon
608 </li>
609 <li data-day="1" <?php if (in_array('1', $weeklyArray)) { ?> class="selected" <?php } ?>>
610 Tue
611 </li>
612 <li data-day="2" <?php if (in_array('2', $weeklyArray)) { ?> class="selected" <?php } ?>>
613 Wed
614 </li>
615 <li data-day="3" <?php if (in_array('3', $weeklyArray)) { ?> class="selected" <?php } ?>>
616 Thu
617 </li>
618 <li data-day="4" <?php if (in_array('4', $weeklyArray)) { ?> class="selected" <?php } ?>>
619 Fri
620 </li>
621 <li data-day="5" <?php if (in_array('5', $weeklyArray)) { ?> class="selected" <?php } ?>>
622 Sat
623 </li>
624 <li data-day="6" <?php if (in_array('6', $weeklyArray)) { ?> class="selected" <?php } ?>>
625 Sun
626 </li>
627 </ul>
628 </div>
629 <div style="clear: both;"></div>
630 <div>
631 <div class="input">
632 <label style="color: rgb(68,68,68);">
633 <input
634 type="radio" <?php if ($schedulingExportOptions['scheduling_run_on'] == 'monthly') { ?> checked="checked" <?php } ?>
635 name="scheduling_run_on"
636 value="monthly"/> <?php esc_html_e('Every month on the first...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
637 </label>
638 </div>
639 <input type="hidden" name="scheduling_monthly_days" value="<?php if(isset($schedulingExportOptions['scheduling_monthly_days'])) echo esc_attr($schedulingExportOptions['scheduling_monthly_days']); ?>" id="monthly_days"/>
640 <?php
641 if (isset($schedulingExportOptions['scheduling_monthly_days'])) {
642 $monthlyArray = explode(',', $schedulingExportOptions['scheduling_monthly_days']);
643 } else {
644 $monthlyArray = array();
645 }
646 ?>
647 <ul class="days-of-week" id="monthly"
648 style="<?php if ($schedulingExportOptions['scheduling_run_on'] != 'monthly') { ?> display: none; <?php } ?>">
649 <li data-day="0" <?php if (in_array('0', $monthlyArray)) { ?> class="selected" <?php } ?>>
650 Mon
651 </li>
652 <li data-day="1" <?php if (in_array('1', $monthlyArray)) { ?> class="selected" <?php } ?>>
653 Tue
654 </li>
655 <li data-day="2" <?php if (in_array('2', $monthlyArray)) { ?> class="selected" <?php } ?>>
656 Wed
657 </li>
658 <li data-day="3" <?php if (in_array('3', $monthlyArray)) { ?> class="selected" <?php } ?>>
659 Thu
660 </li>
661 <li data-day="4" <?php if (in_array('4', $monthlyArray)) { ?> class="selected" <?php } ?>>
662 Fri
663 </li>
664 <li data-day="5" <?php if (in_array('5', $monthlyArray)) { ?> class="selected" <?php } ?>>
665 Sat
666 </li>
667 <li data-day="6" <?php if (in_array('6', $monthlyArray)) { ?> class="selected" <?php } ?>>
668 Sun
669 </li>
670 </ul>
671 </div>
672 <div style="clear: both;"></div>
673
674 <div id="times-container" style="margin-left: 5px;">
675 <div style="margin-top: 10px; margin-bottom: 5px;">
676 What times do you want this export to run?
677 </div>
678
679 <div id="times" style="margin-bottom: 10px;">
680 <?php if (is_array($schedulingExportOptions['scheduling_times'])) {
681 foreach ($schedulingExportOptions['scheduling_times'] as $time) { ?>
682
683 <?php if ($time) { ?>
684 <input class="timepicker" type="text" name="scheduling_times[]"
685 value="<?php echo esc_attr($time); ?>"/>
686 <?php } ?>
687 <?php } ?>
688 <input class="timepicker" type="text" name="scheduling_times[]"/>
689 <?php } ?>
690 </div>
691 <div style="clear: both;"></div>
692 <div class="timezone-select" style="position:absolute; margin-top: 10px;">
693 <?php
694
695 $timezoneValue = false;
696 if ($schedulingExportOptions['scheduling_timezone']) {
697 $timezoneValue = $schedulingExportOptions['scheduling_timezone'];
698 }
699
700 $timezoneSelect = new \Wpae\Scheduling\Timezone\TimezoneSelect();
701 echo $timezoneSelect->getTimezoneSelect($timezoneValue);
702 ?>
703 </div>
704 </div>
705 <div style="height: 50px; margin-top: 30px; <?php if(!$hasActiveLicense) {?>display: none; <?php } ?>" id="subscribe-filler">&nbsp;</div>
706 <?php
707 if (!$hasActiveLicense) {
708 ?>
709 <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
710 <div class="button-container">
711
712 <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=automatic-scheduling" target="_blank" id="subscribe-button">
713 <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
714 style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
715 <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
716 xmlns="http://www.w3.org/2000/svg"
717 style="fill: white; display: none; position: absolute; top: 6px; left: 5px;">
718 <path
719 d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"
720 fill="white"/>
721 </svg>
722 <svg class="error" width="30" height="30" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"
723 style="fill: red; display: none; position: absolute; top: 6px; left: 5px;">
724 <path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>
725 <div class="easing-spinner" style="position: absolute; left: 23px; display: none;">
726 <div class="double-bounce1"></div>
727 <div class="double-bounce2"></div>
728 </div>
729
730 <span class="subscribe-button-text">
731 <?php esc_html_e('Subscribe', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
732 </span>
733 </div>
734 </a>
735 </div>
736 <div class="text-container" style="position: absolute; left: 150px; top: 2px;">
737 <p><?php esc_html_e('Get automatic scheduling for unlimited sites, just $19/mo.'); ?></p>
738 <p><?php esc_html_e('Have a license?'); ?>
739 <a href="#" id="add-subscription"><?php esc_html_e('Register this site.'); ?></a> <?php esc_html_e('Questions?', PMXE_Plugin::LANGUAGE_DOMAIN); ?> <a href="#" class="help_scheduling">Read more.</a></p>
740 <input type="password" id="add-subscription-field" style="position: absolute; z-index: 2; font-size:14px;" placeholder="<?php esc_html_e('Enter your license', PMXE_Plugin::LANGUAGE_DOMAIN); ?>" />
741 <div style="position: absolute;" id="find-subscription-link"><a href="http://www.wpallimport.com/portal/automatic-scheduling/" target="_blank"><?php esc_html_e('Find your license.', PMXE_Plugin::LANGUAGE_DOMAIN);?></a></div>
742 </div>
743 </div>
744 <?php
745 } ?>
746 </div>
747 <div style="clear:both"></div>
748 <?php require __DIR__.'/../views/ManualScheduling.php'; ?>
749 </div>
750 </div>
751 </div>
752
753 <div style="clear: both;"></div>
754 </div>
755
756 <div class="wpae-save-button button button-primary button-hero wpallexport-large-button wpae-export-complete-save-button <?php if(!$hasActiveLicense) { echo 'disabled'; }?>"
757 style="position: relative; width: 285px; display: block; margin:auto; background-image: none; margin-top: 25px;">
758 <svg width="30" height="30" viewBox="0 0 1792 1792"
759 xmlns="http://www.w3.org/2000/svg"
760 style="fill: white;">
761 <path
762 d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"
763 fill="white"/>
764 </svg>
765 <div class="easing-spinner" style="display: none;">
766 <div class="double-bounce1"></div>
767 <div class="double-bounce2"></div>
768 </div>
769 <div class="save-text"
770 style="display: block; position:absolute; <?php if($this->isWizard) {?> left: 70px; <?php } else { ?> left: 60px; <?php } ?> top:0; user-select: none;">
771 <?php esc_html_e('Save Scheduling Options', 'wp_all_export_plugin'); ?>
772 </div>
773 </div>
774 <div class="wpallexport-overlay"></div>
775 <fieldset class="optionsset column rad4 wp-all-export-scheduling-help">
776
777 <div class="title">
778 <span style="font-size:1.5em;" class="wpallexport-add-row-title"><?php esc_html_e('Automatic Scheduling', 'wp_all_export_plugin'); ?></span>
779 </div>
780
781 <?php
782 include_once 'SchedulingHelp.php';
783 ?>
784 </fieldset>
785