| 1 |
<?php |
| 2 |
defined('ABSPATH') || die('Restricted Access'); |
| 3 |
?> |
| 4 |
<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" class="acym__form__migrate"> |
| 5 |
<div id="acym_migrate" class="cell grid-x"> |
| 6 |
<div class="text-center cell acym__migrate__titles"> |
| 7 |
<h1 class="acym__title text-center"><?php echo esc_html(acym_translation('ACYM_THANKS_FOR_INSTALLING_ACYM')); ?></h1> |
| 8 |
<h2 class="acym__migrate__subtitle"><?php echo esc_html(acym_translation('ACYM_DO_YOU_WANT_TO_MIGRATE')); ?></h2> |
| 9 |
</div> |
| 10 |
<div class="cell large-3"></div> |
| 11 |
|
| 12 |
<div class="acym__content acym__content__reduced cell large-6 grid-x"> |
| 13 |
<div class="text-center cell acym__migrate__content__titles"> |
| 14 |
<h1 class="acym__title acym__title__secondary"><?php echo esc_html(acym_translation('ACYM_WHICH_DATA_TO_MIGRATE')); ?></h1> |
| 15 |
<p class="acym__color__red"><b><?php echo esc_html(acym_translation('ACYM_MIGRATE_WARNING_DATA_OVERWRITE')); ?></b></p> |
| 16 |
</div> |
| 17 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 18 |
<input type="checkbox" id="acym__migrate__config" name="migrate[config]" class="acym__migrate__option" /> |
| 19 |
<label for="acym__migrate__config"><?php echo esc_html(acym_translation('ACYM_CONFIGURATION')); ?></label> |
| 20 |
<span id="acym__migrate__result__config__check"></span> |
| 21 |
</div> |
| 22 |
<?php if (acym_level(ACYM_ENTERPRISE)) { ?> |
| 23 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 24 |
<input type="checkbox" id="acym__migrate__bounce" name="migrate[bounce]" class="acym__migrate__option" /> |
| 25 |
<label for="acym__migrate__bounce"><?php echo esc_html(acym_translation('ACYM_BOUNCE_HANDLING')); ?></label> |
| 26 |
<span id="acym__migrate__result__bounce__check"></span> |
| 27 |
</div> |
| 28 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 29 |
<input type="checkbox" id="acym__migrate__distrib" name="migrate[distrib]" class="acym__migrate__option" /> |
| 30 |
<label for="acym__migrate__distrib"><?php echo esc_html(acym_translation('ACYM_DISTRIBUTION_LISTS')); ?></label> |
| 31 |
<span id="acym__migrate__result__distrib__check"></span> |
| 32 |
</div> |
| 33 |
<?php } ?> |
| 34 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 35 |
<input type="checkbox" id="acym__migrate__lists" name="migrate[lists]" class="acym__migrate__option" /> |
| 36 |
<label for="acym__migrate__lists"><?php echo esc_html(acym_translation('ACYM_LISTS')); ?></label> |
| 37 |
<span id="acym__migrate__result__lists__check"></span> |
| 38 |
</div> |
| 39 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 40 |
<input type="checkbox" id="acym__migrate__mails" name="migrate[mails]" class="acym__migrate__option" /> |
| 41 |
<label for="acym__migrate__mails"><?php echo esc_html(acym_translation('ACYM_NEWSLETTERS')); ?></label> |
| 42 |
<span id="acym__migrate__result__mails__check"></span> |
| 43 |
</div> |
| 44 |
<div class="cell acym__migrate__input__element acym_vcenter margin-left-2" id="acym__migrate__input__global_stats"> |
| 45 |
<input type="checkbox" id="acym__migrate__mailstats" name="migrate[mailStats]" class="acym__migrate__option" /> |
| 46 |
<label for="acym__migrate__mailstats"><?php echo esc_html(acym_translation('ACYM_GLOBAL_STATS')); ?></label> |
| 47 |
<span id="acym__migrate__result__mailstats__check"></span> |
| 48 |
</div> |
| 49 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 50 |
<input type="checkbox" id="acym__migrate__templates" name="migrate[templates]" class="acym__migrate__option" /> |
| 51 |
<label for="acym__migrate__templates"><?php echo esc_html(acym_translation('ACYM_TEMPLATES')); ?></label> |
| 52 |
<span id="acym__migrate__result__templates__check"></span> |
| 53 |
</div> |
| 54 |
<?php if (acym_level(ACYM_ENTERPRISE)) { ?> |
| 55 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 56 |
<input type="checkbox" id="acym__migrate__fields" name="migrate[fields]" class="acym__migrate__option" /> |
| 57 |
<label for="acym__migrate__fields"><?php echo esc_html(acym_translation('ACYM_CUSTOM_FIELDS')); ?></label> |
| 58 |
<span id="acym__migrate__result__fields__check"></span> |
| 59 |
</div> |
| 60 |
<?php } ?> |
| 61 |
<div class="cell acym__migrate__input__element acym_vcenter"> |
| 62 |
<input type="checkbox" id="acym__migrate__users" name="migrate[users]" class="acym__migrate__option" /> |
| 63 |
<label for="acym__migrate__users"><?php echo esc_html(acym_translation('ACYM_SUBSCRIBERS')); ?></label> |
| 64 |
<span id="acym__migrate__result__users__check"></span> |
| 65 |
</div> |
| 66 |
<div class="cell grid-x text-center align-right grid-margin-x"> |
| 67 |
<button type="button" |
| 68 |
data-task="migrationDone" |
| 69 |
class="button button-secondary acy_button_submit margin-right-1 cell medium-shrink small-12" |
| 70 |
id="acym__migrate__no__button"><?php echo esc_html(acym_translation('ACYM_NO_DONT_WANT_TO_MIGRATE_MY_DATA')); ?></button> |
| 71 |
<button type="button" class="button primary cell medium-shrink small-12" id="acym__migrate__button"><?php echo esc_html( |
| 72 |
acym_translation('ACYM_MIGRATE') |
| 73 |
); ?></button> |
| 74 |
<h1 class="acym__title acym__title__secondary cell acym__migration__need__display" id="acym__migration__percentage" style="display: none">0%</h1> |
| 75 |
<div class="success progress cell acym__migration__need__display" id="acym__migration__progress__bar" style="display: none"> |
| 76 |
<div class="progress-meter" id="acym__migration__progress__bar__inner" style="width: 0"></div> |
| 77 |
</div> |
| 78 |
<div class="cell grid-x" style="display: none"> |
| 79 |
<h1 class="acym__title acym__title__secondary cell"><?php echo esc_html(acym_translation('ACYM_DISPLAY_GIF')); ?></h1> |
| 80 |
<img src="" alt="gif to wait" id="acym__migration__gif" class="cell"> |
| 81 |
</div> |
| 82 |
</div> |
| 83 |
<div class="cell grid-x text-center" id="acym__migrate__result__ok"> |
| 84 |
<h2 class="cell acym__listing__empty__subtitle"><?php echo esc_html(acym_translation('ACYM_MIGRATION_DONE')); ?></h2> |
| 85 |
<button type="submit" data-task="migrationDone" class="button acy_button_submit cell medium-shrink margin-auto"> |
| 86 |
<?php echo esc_html(acym_translation('ACYM_CONTINUE')); ?> |
| 87 |
</button> |
| 88 |
</div> |
| 89 |
<div class="cell acym__color__red grid-x align-center" id="acym__migrate__result__error"> |
| 90 |
<p class="acym__color__red margin-bottom-1" id="acym__migrate__result__error__message"></p> |
| 91 |
<button type="button" id="acym__migrate__restart_from_error__button" class="button cell margin-right-1 medium-shrink"> |
| 92 |
<?php echo esc_html(acym_translation('ACYM_RESTART_FROM_ERROR')); ?> |
| 93 |
</button> |
| 94 |
<button type="button" data-task="migrationDone" class="button button-secondary cell acy_button_submit medium-shrink"> |
| 95 |
<?php echo esc_html(acym_translation('ACYM_IGNORE_ERRORS_AND_CONTINUE')); ?> |
| 96 |
</button> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
<div class="cell large-3"></div> |
| 100 |
</div> |
| 101 |
<?php acym_formOptions(true, '', '', 'dashboard'); ?> |
| 102 |
</form> |
| 103 |
|
| 104 |
|