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