PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.2
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.2
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 7 years ago ConnectionIcon.php 7 years ago ManualScheduling.php 7 years ago SaveSchedulingButton.php 7 years ago SchedulingHelp.php 7 years ago SchedulingOptions.php 7 years ago SchedulingUI.php 7 years ago
SchedulingUI.php
768 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 $('#timezone').val(timeZone);
424 $('#timezone').trigger("chosen:updated");
425
426 <?php
427 }
428 ?>
429
430 var saveSubscription = false;
431
432 $('#add-subscription').click(function(){
433
434 $('#add-subscription-field').show();
435 $('#add-subscription-field').animate({width:'400px'}, 225);
436 $('#add-subscription-field').animate({left:'-1px'}, 225);
437 $('#subscribe-button .button-subscribe').css('background-color','#46ba69');
438 $('.text-container p').fadeOut();
439
440 setTimeout(function () {
441 $('#find-subscription-link').show();
442 $('#find-subscription-link').animate({left: '410px'}, 300, 'swing');
443 }, 225);
444 $('.subscribe-button-text').html('<?php _e('Activate'); ?>');
445 saveSubscription = true;
446 return false;
447 });
448
449 $('#subscribe-button').click(function(){
450
451 if(saveSubscription) {
452 $('#subscribe-button .easing-spinner').show();
453 var license = $('#add-subscription-field').val();
454 $.ajax({
455 url:ajaxurl+'?action=wpae_api&q=schedulingLicense/saveSchedulingLicense&security=<?php echo wp_create_nonce("wp_all_export_secure");?>',
456 type:"POST",
457 data: {
458 license: license
459 },
460 dataType:"json",
461 success: function(response){
462
463 $('#subscribe-button .button-subscribe').css('background-color','#425f9a');
464 if(response.success) {
465 hasActiveLicense = true;
466 $('.wpae-save-button').slideDown().css('display','block');
467 $('#subscribe-button .easing-spinner').hide();
468 $('#subscribe-button svg.success').show();
469 $('#subscribe-button svg.success').fadeOut(3000, function () {
470 $('.subscribe').hide({queue: false});
471 $('#subscribe-filler').show({queue: false});
472 });
473
474 $('.wpai-no-license').hide();
475 $('.wpai-license').show();
476 } else {
477 $('#subscribe-button .easing-spinner').hide();
478 $('#subscribe-button svg.error').show();
479 $('.subscribe-button-text').html('<?php _e('Subscribe'); ?>');
480 $('#subscribe-button svg.error').fadeOut(3000, function () {
481 $('#subscribe-button svg.error').hide({queue: false});
482
483 });
484
485 $('#add-subscription').html('<?php _e('Invalid license, try again?');?>');
486 $('.text-container p').fadeIn();
487
488 $('#find-subscription-link').animate({width: 'toggle'}, 300, 'swing');
489
490 setTimeout(function () {
491 $('#add-subscription-field').animate({width:'140px'}, 225);
492 $('#add-subscription-field').animate({left:'-155px'}, 225);
493 }, 300);
494
495 $('#add-subscription-field').val('');
496
497 $('#subscribe-button-text').html('<?php _e('Subscribe'); ?>');
498 saveSubscription = false;
499 }
500 }
501 });
502
503 return false;
504 }
505 });
506 });
507 // help scheduling template
508 $('.help_scheduling').click(function(){
509
510 $('.wp-all-export-scheduling-help').css('left', ($( document ).width()/2) - 255 ).show();
511 $('#wp-all-export-scheduling-help-inner').css('max-height', $( window ).height()-150).show();
512 $('.wpallexport-overlay').show();
513 return false;
514 });
515
516 $('.wp_all_export_scheduling_help').find('h3').click(function(){
517 var $action = $(this).find('span').html();
518 $('.wp_all_export_scheduling_help').find('h3').each(function(){
519 $(this).find('span').html("+");
520 });
521 if ( $action == "+" ) {
522 $('.wp_all_export_help_tab').slideUp();
523 $('.wp_all_export_help_tab[rel=' + $(this).attr('id') + ']').slideDown();
524 $(this).find('span').html("-");
525 }
526 else{
527 $('.wp_all_export_help_tab[rel=' + $(this).attr('id') + ']').slideUp();
528 $(this).find('span').html("+");
529 }
530 });
531 });
532 })(jQuery);
533
534 </script>
535 <?php require __DIR__.'/CommonJs.php'; ?>
536 <div id="scheduling-form">
537
538 <div class="wpallexport-content-section" style="padding-bottom: 15px; margin-bottom: 10px; margin-top: 5px;">
539 <div class="wpallexport-collapsed-content" style="padding: 0; height: auto; ">
540 <div class="wpallexport-collapsed-content-inner" style="padding-bottom: 0; overflow: auto; padding-right: 0;">
541 <div style="margin-bottom: 20px;">
542 <label>
543 <input type="radio" name="scheduling_enable" value="0" <?php if($post['scheduling_enable'] == 0) { ?> checked="checked" <?php } ?>/>
544 <h4 style="display: inline-block;"><?php _e('Do Not Schedule'); ?></h4>
545 </label>
546 </div>
547 <div>
548 <label>
549 <input type="radio" name="scheduling_enable" value="1" <?php if($post['scheduling_enable'] == 1) {?> checked="checked" <?php }?>/>
550 <h4 style="margin: 0; position: relative; display: inline-block;"><?php _e('Automatic Scheduling', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
551 <span class="connection-icon" style="">
552 <?php include_once('ConnectionIcon.php'); ?>
553 </span>
554 <?php if (!$scheduling->checkConnection()) { ?>
555 <span class="wpai-license wpai-license-text" style="display: inline-block; font-weight: normal; <?php if(!$hasActiveLicense) { ?> display: none; <?php }?> color: #f2b03d; ">Unable to connect - <a target="_blank" style="text-decoration: underline;" href="http://wpallimport.com/support">please contact support</a>.</span>
556 <?php } ?>
557 </h4>
558 </label>
559 </div>
560
561 <div style="margin-bottom: 10px; margin-left:26px;">
562 <label>
563 <?php _e('Run this export on a schedule.'); ?>
564 <?php if($hasActiveLicense) { ?>
565 <?php } ?>
566 </label>
567 </div>
568 <div id="automatic-scheduling"
569 style="margin-left: 21px; <?php if ($post['scheduling_enable'] != 1) { ?> display: none; <?php } ?>">
570 <div>
571 <div class="input">
572 <label style="color: rgb(68,68,68);">
573 <input
574 type="radio" <?php if ($post['scheduling_run_on'] != 'monthly') { ?> checked="checked" <?php } ?>
575 name="scheduling_run_on" value="weekly"
576 checked="checked"/> <?php _e('Every week on...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
577 </label>
578 </div>
579 <input type="hidden" style="width: 500px;" name="scheduling_weekly_days"
580 value="<?php echo $post['scheduling_weekly_days']; ?>" id="weekly_days"/>
581 <?php
582 if (isset($post['scheduling_weekly_days'])) {
583 $weeklyArray = explode(',', $post['scheduling_weekly_days']);
584 } else {
585 $weeklyArray = array();
586 }
587 ?>
588 <ul class="days-of-week" id="weekly" style="<?php if ($post['scheduling_run_on'] == 'monthly') { ?> display: none; <?php } ?>">
589 <li data-day="0" <?php if (in_array('0', $weeklyArray)) { ?> class="selected" <?php } ?>>
590 Mon
591 </li>
592 <li data-day="1" <?php if (in_array('1', $weeklyArray)) { ?> class="selected" <?php } ?>>
593 Tue
594 </li>
595 <li data-day="2" <?php if (in_array('2', $weeklyArray)) { ?> class="selected" <?php } ?>>
596 Wed
597 </li>
598 <li data-day="3" <?php if (in_array('3', $weeklyArray)) { ?> class="selected" <?php } ?>>
599 Thu
600 </li>
601 <li data-day="4" <?php if (in_array('4', $weeklyArray)) { ?> class="selected" <?php } ?>>
602 Fri
603 </li>
604 <li data-day="5" <?php if (in_array('5', $weeklyArray)) { ?> class="selected" <?php } ?>>
605 Sat
606 </li>
607 <li data-day="6" <?php if (in_array('6', $weeklyArray)) { ?> class="selected" <?php } ?>>
608 Sun
609 </li>
610 </ul>
611 </div>
612 <div style="clear: both;"></div>
613 <div>
614 <div class="input">
615 <label style="color: rgb(68,68,68);">
616 <input
617 type="radio" <?php if ($post['scheduling_run_on'] == 'monthly') { ?> checked="checked" <?php } ?>
618 name="scheduling_run_on"
619 value="monthly"/> <?php _e('Every month on the first...', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
620 </label>
621 </div>
622 <input type="hidden" name="scheduling_monthly_days" value="<?php if(isset($post['scheduling_monthly_days'])) echo $post['scheduling_monthly_days']; ?>" id="monthly_days"/>
623 <?php
624 if (isset($post['scheduling_monthly_days'])) {
625 $monthlyArray = explode(',', $post['scheduling_monthly_days']);
626 } else {
627 $monthlyArray = array();
628 }
629 ?>
630 <ul class="days-of-week" id="monthly"
631 style="<?php if ($post['scheduling_run_on'] != 'monthly') { ?> display: none; <?php } ?>">
632 <li data-day="0" <?php if (in_array('0', $monthlyArray)) { ?> class="selected" <?php } ?>>
633 Mon
634 </li>
635 <li data-day="1" <?php if (in_array('1', $monthlyArray)) { ?> class="selected" <?php } ?>>
636 Tue
637 </li>
638 <li data-day="2" <?php if (in_array('2', $monthlyArray)) { ?> class="selected" <?php } ?>>
639 Wed
640 </li>
641 <li data-day="3" <?php if (in_array('3', $monthlyArray)) { ?> class="selected" <?php } ?>>
642 Thu
643 </li>
644 <li data-day="4" <?php if (in_array('4', $monthlyArray)) { ?> class="selected" <?php } ?>>
645 Fri
646 </li>
647 <li data-day="5" <?php if (in_array('5', $monthlyArray)) { ?> class="selected" <?php } ?>>
648 Sat
649 </li>
650 <li data-day="6" <?php if (in_array('6', $monthlyArray)) { ?> class="selected" <?php } ?>>
651 Sun
652 </li>
653 </ul>
654 </div>
655 <div style="clear: both;"></div>
656
657 <div id="times-container" style="margin-left: 5px;">
658 <div style="margin-top: 10px; margin-bottom: 5px;">
659 What times do you want this export to run?
660 </div>
661
662 <div id="times" style="margin-bottom: 10px;">
663 <?php if (is_array($post['scheduling_times'])) {
664 foreach ($post['scheduling_times'] as $time) { ?>
665
666 <?php if ($time) { ?>
667 <input class="timepicker" type="text" name="scheduling_times[]"
668 value="<?php echo $time; ?>"/>
669 <?php } ?>
670 <?php } ?>
671 <input class="timepicker" type="text" name="scheduling_times[]"/>
672 <?php } ?>
673 </div>
674 <div style="clear: both;"></div>
675 <div class="timezone-select" style="position:absolute; margin-top: 10px;">
676 <?php
677
678 $timezoneValue = false;
679 if ($post['scheduling_timezone']) {
680 $timezoneValue = $post['scheduling_timezone'];
681 }
682
683 $timezoneSelect = new \Wpae\Scheduling\Timezone\TimezoneSelect();
684 echo $timezoneSelect->getTimezoneSelect($timezoneValue);
685 ?>
686 </div>
687 </div>
688 <div style="height: 50px; margin-top: 30px; <?php if(!$hasActiveLicense) {?>display: none; <?php } ?>" id="subscribe-filler">&nbsp;</div>
689 <?php
690 if (!$hasActiveLicense) {
691 ?>
692 <div class="subscribe" style="margin-left: 5px; margin-top: 65px; margin-bottom: 130px; position: relative;">
693 <div class="button-container">
694
695 <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=515704" target="_blank" id="subscribe-button">
696 <div class="button button-primary button-hero wpallexport-large-button button-subscribe"
697 style="background-image: none; width: 140px; text-align: center; position: absolute; z-index: 4;">
698 <svg class="success" width="30" height="30" viewBox="0 0 1792 1792"
699 xmlns="http://www.w3.org/2000/svg"
700 style="fill: white; display: none; position: absolute; top: 6px; left: 5px;">
701 <path
702 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"
703 fill="white"/>
704 </svg>
705 <svg class="error" width="30" height="30" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"
706 style="fill: red; display: none; position: absolute; top: 6px; left: 5px;">
707 <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>
708 <div class="easing-spinner" style="position: absolute; left: 23px; display: none;">
709 <div class="double-bounce1"></div>
710 <div class="double-bounce2"></div>
711 </div>
712
713 <span class="subscribe-button-text">
714 <?php _e('Subscribe', PMXE_Plugin::LANGUAGE_DOMAIN); ?>
715 </span>
716 </div>
717 </a>
718 </div>
719 <div class="text-container" style="position: absolute; left: 150px; top: 2px;">
720 <p><?php _e('Get automatic scheduling for unlimited sites, just $9/mo.'); ?></p>
721 <p><?php _e('Have a license?'); ?>
722 <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>
723 <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); ?>" />
724 <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>
725 </div>
726 </div>
727 <?php
728 } ?>
729 </div>
730 <div style="clear:both"></div>
731 <?php require __DIR__.'/../views/ManualScheduling.php'; ?>
732 </div>
733 </div>
734 </div>
735
736 <div style="clear: both;"></div>
737 </div>
738
739 <div class="wpae-save-button button button-primary button-hero wpallexport-large-button wpae-export-complete-save-button" id="save-scheduling-button"
740 style="position: relative; width: 285px; <?php if($hasActiveLicense) { echo 'display: block;';} else { echo "display: none;";}?> margin:auto; background-image: none; margin-top: 25px;">
741 <svg width="30" height="30" viewBox="0 0 1792 1792"
742 xmlns="http://www.w3.org/2000/svg"
743 style="fill: white;">
744 <path
745 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"
746 fill="white"/>
747 </svg>
748 <div class="easing-spinner" style="display: none;">
749 <div class="double-bounce1"></div>
750 <div class="double-bounce2"></div>
751 </div>
752 <div class="save-text"
753 style="display: block; position:absolute; <?php if($this->isWizard) {?> left: 70px; <?php } else { ?> left: 60px; <?php } ?> top:0; user-select: none;">
754 <?php _e('Save Scheduling Options', 'wp_all_export_plugin'); ?>
755 </div>
756 </div>
757 <div class="wpallexport-overlay"></div>
758 <fieldset class="optionsset column rad4 wp-all-export-scheduling-help">
759
760 <div class="title">
761 <span style="font-size:1.5em;" class="wpallexport-add-row-title"><?php _e('Automatic Scheduling', 'wp_all_export_plugin'); ?></span>
762 </div>
763
764 <?php
765 include_once 'SchedulingHelp.php';
766 ?>
767 </fieldset>
768