blocks
4 years ago
options
4 years ago
template
4 years ago
google.php
4 years ago
index.php
4 years ago
options.php
4 years ago
process.php
4 years ago
success_page.php
4 years ago
template.php
4 years ago
variation_options.php
4 years ago
variation_options_common.php
4 years ago
success_page.php
131 lines
| 1 | <?php |
| 2 | $cron_job_key = PMXE_Plugin::getInstance()->getOption('cron_job_key'); |
| 3 | $urlToExport = site_url() . '/wp-load.php?security_token=' . substr(md5($cron_job_key . $update_previous->id), 0, 16) . '&export_id=' . $update_previous->id . '&action=get_data'; |
| 4 | $uploads = wp_upload_dir(); |
| 5 | |
| 6 | $bundle_path = wp_all_export_get_absolute_path($update_previous->options['bundlepath']); |
| 7 | |
| 8 | if (!empty($bundle_path)) { |
| 9 | $bundle_url = site_url() . '/wp-load.php?security_token=' . substr(md5($cron_job_key . $update_previous->id), 0, 16) . '&export_id=' . $update_previous->id . '&action=get_bundle&t=zip'; |
| 10 | } |
| 11 | |
| 12 | $isImportAllowedSpecification = new \Wpae\App\Specification\IsImportAllowed(); |
| 13 | $isGoogleFeed = false; |
| 14 | ?> |
| 15 | <div id="export_finished" style="padding-top: 10px;"> |
| 16 | <?php |
| 17 | if ($isGoogleFeed) { |
| 18 | ?> |
| 19 | <h3><?php _e('WP All Export successfully exported your data!', 'wp_all_export_plugin'); ?></h3> |
| 20 | <?php |
| 21 | $cronJobKey = PMXE_Plugin::getInstance()->getOption('cron_job_key'); |
| 22 | include_once('google_merchants_success.php'); |
| 23 | } else { |
| 24 | ?> |
| 25 | <h2 style="color:#425f9a; font-size:24px; margin-bottom: 36px;">What's next?</h2> |
| 26 | |
| 27 | <script type="text/javascript"> |
| 28 | jQuery(document).ready(function () { |
| 29 | jQuery('.success-tabs .tab').click(function () { |
| 30 | jQuery('.success-tabs .tab').removeClass('selected'); |
| 31 | jQuery(this).addClass('selected'); |
| 32 | var rel = jQuery(this).attr('rel'); |
| 33 | jQuery('.tab-content').removeClass('selected'); |
| 34 | jQuery('.tab-content-container').find('#' + rel).addClass('selected'); |
| 35 | }); |
| 36 | }); |
| 37 | </script> |
| 38 | <ul class="success-tabs"> |
| 39 | <li rel="tab1-content" class="tab selected"><?php _e("Download", 'wp_all_export_plugin'); ?></li> |
| 40 | <li rel="tab2-content" class="tab"><?php _e("Scheduling", 'wp_all_export_plugin'); ?></li> |
| 41 | <li rel="tab3-content" class="tab"><?php _e("External Apps", 'wp_all_export_plugin'); ?></li> |
| 42 | <?php if ($isImportAllowedSpecification->isSatisfied($update_previous)): ?> |
| 43 | <li rel="tab4-content" class="tab"><?php _e("Export, Edit, Import", 'wp_all_export_plugin'); ?></li> |
| 44 | <?php endif; ?> |
| 45 | </ul> |
| 46 | <hr style="margin-top:0;"/> |
| 47 | <div class="tab-content-container"> |
| 48 | <div class="tab-content selected normal-tab" id="tab1-content"> |
| 49 | <h3 style="margin-top: 30px; margin-bottom: 30px;"><?php _e("Click to Download", 'wp_all_export_plugin'); ?></h3> |
| 50 | <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 35px; display: none;"> |
| 51 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=migrate-orders"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a> |
| 52 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p> |
| 53 | </div> |
| 54 | |
| 55 | <div class="input"> |
| 56 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 57 | rel="<?php echo add_query_arg(array('action' => 'download', 'id' => $update_previous->id, '_wpnonce' => wp_create_nonce('_wpnonce-download_feed')), $this->baseUrl); ?>"><?php echo strtoupper(wp_all_export_get_export_format($update_previous->options)); ?></button> |
| 58 | <?php if (!empty($update_previous->options['split_large_exports'])): ?> |
| 59 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 60 | rel="<?php echo add_query_arg(array('page' => 'pmxe-admin-manage', 'id' => $update_previous->id, 'action' => 'split_bundle', '_wpnonce' => wp_create_nonce('_wpnonce-download_split_bundle')), $this->baseUrl); ?>"><?php printf(__('Split %ss', 'wp_all_export_plugin'), strtoupper(wp_all_export_get_export_format($update_previous->options))); ?></button> |
| 61 | <?php endif; ?> |
| 62 | <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?> |
| 63 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 64 | id="download-bundle" rel="<?php echo add_query_arg(array('page' => 'pmxe-admin-manage', 'id' => $update_previous->id, 'action' => 'bundle', '_wpnonce' => wp_create_nonce('_wpnonce-download_bundle')), $this->baseUrl); ?>"><?php _e('Bundle', 'wp_all_export_plugin'); ?></button> |
| 65 | <?php endif; ?> |
| 66 | </div> |
| 67 | |
| 68 | <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?> |
| 69 | <div id="download-details"> |
| 70 | <p style="margin-top:30px;"> |
| 71 | <?php _e("The bundle contains your exported data and a settings file for WP All Import.", 'wp_all_export_plugin'); ?><br/> |
| 72 | <?php _e("Upload the Bundle to WP All Import on another site to quickly import this data.", 'wp_all_export_plugin');?> |
| 73 | </p> |
| 74 | </div> |
| 75 | <?php endif; ?> |
| 76 | <div style="margin-top:30px;"> |
| 77 | <h3 style="margin-bottom: 0; margin-top: -10px;"><?php echo _e("Public URL", 'wp_all_export_plugin'); ?></h3> |
| 78 | <a href="<?php echo $urlToExport; ?>" <?php if (php_sapi_name() != 'cli-server') { ?> target="_blank" <?php } ?> |
| 79 | class="feed-url" style="margin-bottom: 0; font-size: 16px;"><?php echo $urlToExport; ?></a> |
| 80 | <p style="margin-top: 0;"> |
| 81 | <?php _e("This URL will always provide the export file from this export, even if the file name changes.", 'wp_all_export_plugin'); ?> |
| 82 | </p> |
| 83 | </div> |
| 84 | </div> |
| 85 | <div class="tab-content scheduling" id="tab2-content"> |
| 86 | <div class="wrap" style="text-align: left; padding-top: 10px;"> |
| 87 | |
| 88 | <?php |
| 89 | $export = $update_previous; |
| 90 | require __DIR__.'/../../../src/Scheduling/views/SchedulingUI.php'; ?> |
| 91 | |
| 92 | </div> |
| 93 | </div> |
| 94 | <div class="tab-content normal-tab" id="tab3-content"> |
| 95 | <p> |
| 96 | <?php _e("Automatically send your data to over 500 apps with Zapier.", 'wp_all_export_plugin'); ?> |
| 97 | <br/> |
| 98 | <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=2707173&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=zapier" target="_blank"> |
| 99 | <?php _e("Upgrade to the Pro edition of WP All Export for Zapier integration", 'wp_all_export_plugin'); ?> |
| 100 | </a> |
| 101 | <br/> |
| 102 | <a href="https://zapier.com/zapbook/wp-all-export-pro/" target="_blank"><?php _e("Click here to read more about WP All Export's Zapier Integration.", 'wp_all_export_plugin'); ?></a> |
| 103 | </p> |
| 104 | <iframe width="560" height="315" src="https://www.youtube.com/embed/6tBacBmiHsQ" frameborder="0" allowfullscreen></iframe> |
| 105 | </div> |
| 106 | <?php if ($isImportAllowedSpecification->isSatisfied($update_previous)): ?> |
| 107 | |
| 108 | <div class="tab-content normal-tab" id="tab4-content"> |
| 109 | <p> |
| 110 | <?php _e("After you've downloaded your data, edit it however you like.", 'wp_all_export_plugin'); ?><br/> |
| 111 | <?php _e("Then, click below to import the data with WP All Import without having to set anything up.", 'wp_all_export_plugin'); ?> |
| 112 | </p> |
| 113 | <p> |
| 114 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 115 | rel="<?php echo add_query_arg(array('action' => 'download', 'id' => $update_previous->id, '_wpnonce' => wp_create_nonce('_wpnonce-download_feed')), $this->baseUrl); ?>"><?php _e('Download', 'wp_all_export_plugin'); ?> <?php echo strtoupper(wp_all_export_get_export_format($update_previous->options)); ?></button> |
| 116 | |
| 117 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 118 | rel="<?php echo add_query_arg(array('page' => 'pmxi-admin-import', 'id' => $update_previous->options['import_id'], 'deligate' => 'wpallexport'), remove_query_arg('page', $this->baseUrl)); ?>"><?php _e('Import with WP All Import', 'wp_all_export_plugin'); ?></button> |
| 119 | </p> |
| 120 | <p> |
| 121 | <?php _e("You can also start the import by clicking 'Import with WP All Import' on the Manage Exports page.", 'wp_all_export_plugin');?> |
| 122 | </p> |
| 123 | </div> |
| 124 | <?php endif; ?> |
| 125 | </div> |
| 126 | <hr> |
| 127 | <?php |
| 128 | } |
| 129 | ?> |
| 130 | <input type="hidden" value="<?php echo $export['options']['cpt'][0]; ?>" id="export-cpt"> |
| 131 | </div> |