blocks
7 years ago
options
7 years ago
template
7 years ago
google.php
7 years ago
index.php
7 years ago
options.php
7 years ago
process.php
7 years ago
success_page.php
7 years ago
template.php
7 years ago
variation_options.php
7 years ago
variation_options_common.php
7 years ago
success_page.php
132 lines
| 1 | <?php |
| 2 | $cron_job_key = PMXE_Plugin::getInstance()->getOption('cron_job_key'); |
| 3 | $urlToExport = site_url() . '/wp-cron.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-cron.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 | |
| 51 | <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 35px; display: none;"> |
| 52 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=migrate+orders&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Migrate Orders', PMXE_Plugin::LANGUAGE_DOMAIN);?></a> |
| 53 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', PMXE_Plugin::LANGUAGE_DOMAIN);?></p> |
| 54 | </div> |
| 55 | |
| 56 | <div class="input"> |
| 57 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 58 | 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> |
| 59 | <?php if (!empty($update_previous->options['split_large_exports'])): ?> |
| 60 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 61 | 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> |
| 62 | <?php endif; ?> |
| 63 | <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?> |
| 64 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 65 | 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> |
| 66 | <?php endif; ?> |
| 67 | </div> |
| 68 | |
| 69 | <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?> |
| 70 | <div id="download-details"> |
| 71 | <p style="margin-top:30px;"> |
| 72 | <?php _e("The bundle contains your exported data and a settings file for WP All Import.", 'wp_all_export_plugin'); ?><br/> |
| 73 | <?php _e("Upload the Bundle to WP All Import on another site to quickly import this data.", 'wp_all_export_plugin');?> |
| 74 | </p> |
| 75 | </div> |
| 76 | <?php endif; ?> |
| 77 | <div style="margin-top:30px;"> |
| 78 | <h3 style="margin-bottom: 0; margin-top: -10px;"><?php echo _e("Public URL", 'wp_all_export_plugin'); ?></h3> |
| 79 | <a href="<?php echo $urlToExport; ?>" <?php if (php_sapi_name() != 'cli-server') { ?> target="_blank" <?php } ?> |
| 80 | class="feed-url" style="margin-bottom: 0; font-size: 16px;"><?php echo $urlToExport; ?></a> |
| 81 | <p style="margin-top: 0;"> |
| 82 | <?php _e("This URL will always provide the export file from this export, even if the file name changes.", 'wp_all_export_plugin'); ?> |
| 83 | </p> |
| 84 | </div> |
| 85 | </div> |
| 86 | <div class="tab-content scheduling" id="tab2-content"> |
| 87 | <div class="wrap" style="text-align: left; padding-top: 10px;"> |
| 88 | |
| 89 | <?php |
| 90 | $export = $update_previous; |
| 91 | require __DIR__.'/../../../src/Scheduling/views/SchedulingUI.php'; ?> |
| 92 | |
| 93 | </div> |
| 94 | </div> |
| 95 | <div class="tab-content normal-tab" id="tab3-content"> |
| 96 | <p> |
| 97 | <?php _e("Automatically send your data to over 500 apps with Zapier.", 'wp_all_export_plugin'); ?> |
| 98 | <br/> |
| 99 | <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=zapier&utm_campaign=free+wp+all+export+plugin" target="_blank"> |
| 100 | <?php _e("Upgrade to the Pro edition of WP All Export for Zapier integration", 'wp_all_export_plugin'); ?> |
| 101 | </a> |
| 102 | <br/> |
| 103 | <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> |
| 104 | </p> |
| 105 | <iframe width="560" height="315" src="https://www.youtube.com/embed/6tBacBmiHsQ" frameborder="0" allowfullscreen></iframe> |
| 106 | </div> |
| 107 | <?php if ($isImportAllowedSpecification->isSatisfied($update_previous)): ?> |
| 108 | |
| 109 | <div class="tab-content normal-tab" id="tab4-content"> |
| 110 | <p> |
| 111 | <?php _e("After you've downloaded your data, edit it however you like.", 'wp_all_export_plugin'); ?><br/> |
| 112 | <?php _e("Then, click below to import the data with WP All Import without having to set anything up.", 'wp_all_export_plugin'); ?> |
| 113 | </p> |
| 114 | <p> |
| 115 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 116 | 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> |
| 117 | |
| 118 | <button class="button button-primary button-hero wpallexport-large-button download_data" |
| 119 | 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> |
| 120 | </p> |
| 121 | <p> |
| 122 | <?php _e("You can also start the import by clicking 'Import with WP All Import' on the Manage Exports page.", 'wp_all_export_plugin');?> |
| 123 | </p> |
| 124 | </div> |
| 125 | <?php endif; ?> |
| 126 | </div> |
| 127 | <hr> |
| 128 | <?php |
| 129 | } |
| 130 | ?> |
| 131 | <input type="hidden" value="<?php echo $export['options']['cpt'][0]; ?>" id="export-cpt"> |
| 132 | </div> |