PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.10
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.10
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 4 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
778 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 $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 _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 _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 _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 _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 _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 _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 (!$scheduling->checkConnection()) { ?>
565 <span class="wpai-license wpai-license-text" style="margin-left: 8px; font-weight: normal; <?php if(!$hasActiveLicense) { ?> display: none; <?php }?> color: #f2b03d; ">Unable to connect, please contact support.</span>
566 <?php } ?>
567 </h4>
568 </label>
569 </div>
570
571 <div style="margin-bottom: 10px; margin-left:26px;">
572 <label>
573 <?php _e('Run this export on a schedule.'); ?>
574 <?php if($hasActiveLicense) { ?>
575 <?php } ?>
576 </label>
577 </div>
578 <div id="automatic-scheduling"
579 style="margin-left: 21px; <?php if ($post['scheduling_enable'] != 1) { ?> display: none; <?php } ?>">
580 <div>
581 <div class="input">
582 <label style="color: rgb(68,68,68);">
583 <input
584 type="radio" <?php if ($post['scheduling_run_on'] != 'monthly') { ?> checked="checked" <?php } ?>
585 name="scheduling_run_on" value="weekly"
586 checked="checked"/> <?php _e('Every week on...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
587 </label>
588 </div>
589 <input type="hidden" style="width: 500px;" name="scheduling_weekly_days"
590 value="<?php echo $post['scheduling_weekly_days']; ?>" id="weekly_days"/>
591 <?php
592 if (isset($post['scheduling_weekly_days'])) {
593 $weeklyArray = explode(',', $post['scheduling_weekly_days']);
594 } else {
595 $weeklyArray = array();
596 }
597 ?>
598 <ul class="days-of-week" id="weekly" style="<?php if ($post['scheduling_run_on'] == 'monthly') { ?> display: none; <?php } ?>">
599 <li data-day="0" <?php if (in_array('0', $weeklyArray)) { ?> class="selected" <?php } ?>>
600 Mon
601 </li>
602 <li data-day="1" <?php if (in_array('1', $weeklyArray)) { ?> class="selected" <?php } ?>>
603 Tue
604 </li>
605 <li data-day="2" <?php if (in_array('2', $weeklyArray)) { ?> class="selected" <?php } ?>>
606 Wed
607 </li>
608 <li data-day="3" <?php if (in_array('3', $weeklyArray)) { ?> class="selected" <?php } ?>>
609 Thu
610 </li>
611 <li data-day="4" <?php if (in_array('4', $weeklyArray)) { ?> class="selected" <?php } ?>>
612 Fri
613 </li>
614 <li data-day="5" <?php if (in_array('5', $weeklyArray)) { ?> class="selected" <?php } ?>>
615 Sat
616 </li>
617 <li data-day="6" <?php if (in_array('6', $weeklyArray)) { ?> class="selected" <?php } ?>>
618 Sun
619 </li>
620 </ul>
621 </div>
622 <div style="clear: both;"></div>
623 <div>
624 <div class="input">
625 <label style="color: rgb(68,68,68);">
626 <input
627 type="radio" <?php if ($post['scheduling_run_on'] == 'monthly') { ?> checked="checked" <?php } ?>
628 name="scheduling_run_on"
629 value="monthly"/> <?php _e('Every month on the first...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
630 </label>
631 </div>
632 <input type="hidden" name="scheduling_monthly_days" value="<?php if(isset($post['scheduling_monthly_days'])) echo $post['scheduling_monthly_days']; ?>" id="monthly_days"/>
633 <?php
634 if (isset($post['scheduling_monthly_days'])) {
635 $monthlyArray = explode(',', $post['scheduling_monthly_days']);
636 } else {
637 $monthlyArray = array();
638 }
639 ?>
640 <ul class="days-of-week" id="monthly"
641 style="<?php if ($post['scheduling_run_on'] != 'monthly') { ?> display: none; <?php } ?>">
642 <li data-day="0" <?php if (in_array('0', $monthlyArray)) { ?> class="selected" <?php } ?>>
643 Mon
644 </li>
645 <li data-day="1" <?php if (in_array('1', $monthlyArray)) { ?> class="selected" <?php } ?>>
646 Tue
647 </li>
648 <li data-day="2" <?php if (in_array('2', $monthlyArray)) { ?> class="selected" <?php } ?>>
649 Wed
650 </li>
651 <li data-day="3" <?php if (in_array('3', $monthlyArray)) { ?> class="selected" <?php } ?>>
652 Thu
653 </li>
654 <li data-day="4" <?php if (in_array('4', $monthlyArray)) { ?> class="selected" <?php } ?>>
655 Fri
656 </li>
657 <li data-day="5" <?php if (in_array('5', $monthlyArray)) { ?> class="selected" <?php } ?>>
658 Sat
659 </li>
660 <li data-day="6" <?php if (in_array('6', $monthlyArray)) { ?> class="selected" <?php } ?>>
661 Sun
662 </li>
663 </ul>
664 </div>
665 <div style="clear: both;"></div>
666
667 <div id="times-container" style="margin-left: 5px;">
668 <div style="margin-top: 10px; margin-bottom: 5px;">
669 What times do you want this export to run?
670 </div>
671
672 <div id="times" style="margin-bottom: 10px;">
673 <?php if (is_array($post['scheduling_times'])) {
674 foreach ($post['scheduling_times'] as $time) { ?>
675
676 <?php if ($time) { ?>
677 <input class="timepicker" type="text" name="scheduling_times[]"
678 value="<?php echo $time; ?>"/>
679 <?php } ?>
680 <?php } ?>
681 <input class="timepicker" type="text" name="scheduling_times[]"/>
682 <?php } ?>
683 </div>
684 <div style="clear: both;"></div>
685 <div class="timezone-select" style="position:absolute; margin-top: 10px;">
686 <?php
687
688 $timezoneValue = false;
689 if ($post['scheduling_timezone']) {
690 $timezoneValue = $post['scheduling_timezone'];
691 }
692
693 $timezoneSelect = new \Wpae\Scheduling\Timezone\TimezoneSelect();
694 echo $timezoneSelect->getTimezoneSelect($timezoneValue);
695 ?>
696 </div>
697 </div>
698 <div style="height: 50px; margin-top: 30px; <?php if(!$hasActiveLicense) {?>display: none; <?php } ?>" id="subscribe-filler">&nbsp;</div>
699 <?php
700 if (!$hasActiveLicense) {
701 ?>
702 <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
703 <div class="button-container">
704
705 <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">
706 <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
707 style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
708 <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
709 xmlns="http://www.w3.org/2000/svg"
710 style="fill: white; display: none; position: absolute; top: 6px; left: 5px;">
711 <path
712 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"
713 fill="white"/>
714 </svg>
715 <svg class="error" width="30" height="30" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"
716 style="fill: red; display: none; position: absolute; top: 6px; left: 5px;">
717 <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>
718 <div class="easing-spinner" style="position: absolute; left: 23px; display: none;">
719 <div class="double-bounce1"></div>
720 <div class="double-bounce2"></div>
721 </div>
722
723 <span class="subscribe-button-text">
724 <?php _e('Subscribe', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
725 </span>
726 </div>
727 </a>
728 </div>
729 <div class="text-container" style="position: absolute; left: 150px; top: 2px;">
730 <p><?php _e('Get automatic scheduling for unlimited sites, just $9/mo.'); ?></p>
731 <p><?php _e('Have a license?'); ?>
732 <a href="#" id="add-subscription"><?php _e('Register this site.'); ?></a> <?php _e('Questions?', PMXE_Plugin::LANGUAGE_DOMAIN); ?> <a href="#" class="help_scheduling">Read more.</a></p>
733 <input type="password" id="add-subscription-field" style="position: absolute; z-index: 2; font-size:14px;" placeholder="<?php _e('Enter your license', PMXE_Plugin::LANGUAGE_DOMAIN); ?>" />
734 <div style="position: absolute;" id="find-subscription-link"><a href="http://www.wpallimport.com/portal/automatic-scheduling/" target="_blank"><?php _e('Find your license.', PMXE_Plugin::LANGUAGE_DOMAIN);?></a></div>
735 </div>
736 </div>
737 <?php
738 } ?>
739 </div>
740 <div style="clear:both"></div>
741 <?php require __DIR__.'/../views/ManualScheduling.php'; ?>
742 </div>
743 </div>
744 </div>
745
746 <div style="clear: both;"></div>
747 </div>
748
749 <div class="wpae-save-button button button-primary button-hero wpallexport-large-button wpae-export-complete-save-button" id="save-scheduling-button"
750 style="position: relative; width: 285px; <?php if($hasActiveLicense) { echo 'display: block;';} else { echo "display: none;";}?> margin:auto; background-image: none; margin-top: 25px;">
751 <svg width="30" height="30" viewBox="0 0 1792 1792"
752 xmlns="http://www.w3.org/2000/svg"
753 style="fill: white;">
754 <path
755 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"
756 fill="white"/>
757 </svg>
758 <div class="easing-spinner" style="display: none;">
759 <div class="double-bounce1"></div>
760 <div class="double-bounce2"></div>
761 </div>
762 <div class="save-text"
763 style="display: block; position:absolute; <?php if($this->isWizard) {?> left: 70px; <?php } else { ?> left: 60px; <?php } ?> top:0; user-select: none;">
764 <?php _e('Save Scheduling Options', 'wp_all_export_plugin'); ?>
765 </div>
766 </div>
767 <div class="wpallexport-overlay"></div>
768 <fieldset class="optionsset column rad4 wp-all-export-scheduling-help">
769
770 <div class="title">
771 <span style="font-size:1.5em;" class="wpallexport-add-row-title"><?php _e('Automatic Scheduling', 'wp_all_export_plugin'); ?></span>
772 </div>
773
774 <?php
775 include_once 'SchedulingHelp.php';
776 ?>
777 </fieldset>
778