PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
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 / views / admin / export / success_page.php
wp-all-export / views / admin / export Last commit date
blocks 4 weeks ago options 4 weeks ago template 4 weeks ago google.php 4 weeks ago index.php 4 weeks ago options.php 4 weeks ago process.php 4 weeks ago success_page.php 4 weeks ago template.php 4 weeks ago variation_options.php 4 weeks ago variation_options_common.php 3 years ago
success_page.php
182 lines
1 <?php
2 if(!defined('ABSPATH')) {
3 die();
4 }
5
6 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope
7 if(empty($update_previous->options['cpt'])) {
8 $postTypes = [];
9 $exportqueryPostType = [];
10
11 if ( isset( $update_previous->options['exportquery'] ) && ! empty( $update_previous->options['exportquery']->query['post_type'] ) ) {
12 $exportqueryPostType = [ $update_previous->options['exportquery']->query['post_type'] ];
13 }
14
15 if ( empty( $postTypes ) ) {
16 $postTypes = $exportqueryPostType;
17 }
18
19 $tmp_options = $update_previous->options;
20 $tmp_options['cpt'] = $postTypes;
21 $update_previous->options = $tmp_options;
22 }
23
24 $cron_job_key = PMXE_Plugin::getInstance()->getOption('cron_job_key');
25 $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';
26 $uploads = wp_upload_dir();
27
28 $bundle_path = wp_all_export_get_absolute_path($update_previous->options['bundlepath']);
29
30 if (!empty($bundle_path)) {
31 $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';
32 }
33
34 $isImportAllowedSpecification = new \Wpae\App\Specification\IsImportAllowed();
35 $isGoogleFeed = false;
36 $post = $update_previous->options;
37 ?>
38 <div id="export_finished" style="padding-top: 10px;">
39 <?php
40 if ($isGoogleFeed) {
41 ?>
42 <h3><?php esc_html_e('WP All Export successfully exported your data!', 'wp-all-export'); ?></h3>
43 <?php
44 $cronJobKey = PMXE_Plugin::getInstance()->getOption('cron_job_key');
45 include_once('google_merchants_success.php');
46 } else {
47 ?>
48 <h2 style="color:#425f9a; font-size:24px; margin-bottom: 36px;">What's next?</h2>
49
50 <script type="text/javascript">
51 jQuery(document).ready(function () {
52 jQuery('.success-tabs .tab').on('click', function () {
53 jQuery('.success-tabs .tab').removeClass('selected');
54 jQuery(this).addClass('selected');
55 var rel = jQuery(this).attr('rel');
56 jQuery('.tab-content').removeClass('selected');
57 jQuery('.tab-content-container').find('#' + rel).addClass('selected');
58 });
59 });
60 </script>
61 <ul class="success-tabs">
62 <li rel="tab1-content" class="tab selected"><?php esc_html_e("Download", 'wp-all-export'); ?></li>
63 <li rel="tab2-content" class="tab"><?php esc_html_e("Scheduling", 'wp-all-export'); ?></li>
64 <li rel="tab3-content" class="tab"><?php esc_html_e("External Apps", 'wp-all-export'); ?></li>
65 <?php if ($isImportAllowedSpecification->isSatisfied($update_previous)): ?>
66 <li rel="tab4-content" class="tab"><?php esc_html_e("Export, Edit, Import", 'wp-all-export'); ?></li>
67 <?php endif; ?>
68 </ul>
69 <hr style="margin-top:0;"/>
70 <div class="tab-content-container">
71 <div class="tab-content selected normal-tab" id="tab1-content">
72 <h3 style="margin-top: 30px; margin-bottom: 30px;"><?php esc_html_e("Click to Download", 'wp-all-export'); ?></h3>
73 <div class="wpallexport-free-edition-notice" id="migrate-orders-notice" style="padding: 20px; margin-bottom: 35px; display: none;">
74 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839967&discount=welcome-upgrade-99&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=migrate-orders"><?php esc_html_e('Upgrade to the Pro edition of WP All Export to Migrate Orders', 'wp-all-export');?></a>
75 <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp-all-export');?></p>
76 </div>
77
78 <div class="input">
79 <button class="button wpallexport-large-button download_data"
80 rel="<?php echo esc_url(add_query_arg(array('action' => 'download', 'id' => $update_previous->id, '_wpnonce' => wp_create_nonce('_wpnonce-download_feed')), $this->baseUrl)); ?>"><?php echo esc_html(strtoupper(wp_all_export_get_export_format($update_previous->options))); ?></button>
81 <?php if (!empty($update_previous->options['split_large_exports'])): ?>
82 <button class="button wpallexport-large-button download_data"
83 rel="<?php echo esc_url_raw(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 /* translators: %s: export format extension */ printf(esc_html__('Split %ss', 'wp-all-export'), esc_html(strtoupper(wp_all_export_get_export_format($update_previous->options)))); ?></button>
84 <?php endif; ?>
85 <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?>
86 <button class="button wpallexport-large-button download_data"
87 id="download-bundle" rel="<?php echo esc_url_raw(add_query_arg(array('page' => 'pmxe-admin-manage', 'id' => $update_previous->id, 'action' => 'bundle', '_wpnonce' => wp_create_nonce('_wpnonce-download_bundle')), $this->baseUrl)); ?>"><?php esc_html_e('Bundle', 'wp-all-export'); ?></button>
88 <?php endif; ?>
89 </div>
90
91 <?php if (PMXE_Export_Record::is_bundle_supported($update_previous->options)): ?>
92 <div id="download-details">
93 <p style="margin-top:30px;">
94 <?php esc_html_e("The bundle contains your exported data and a settings file for WP All Import.", 'wp-all-export'); ?><br/>
95 <?php esc_html_e("Upload the Bundle to WP All Import on another site to quickly import this data.", 'wp-all-export');?>
96 </p>
97 </div>
98 <?php endif; ?>
99 <div style="margin-top:30px;">
100 <h3 style="margin-bottom: 0; margin-top: -10px;"><?php esc_html_e("Public URL", 'wp-all-export'); ?></h3>
101 <a href="<?php echo esc_url($urlToExport); ?>" <?php if (php_sapi_name() != 'cli-server') { ?> target="_blank" <?php } ?>
102 class="feed-url" style="margin-bottom: 0; font-size: 16px;"><?php echo esc_html($urlToExport); ?></a>
103 <p style="margin-top: 0;">
104 <?php esc_html_e("This URL will always provide the export file from this export, even if the file name changes.", 'wp-all-export'); ?>
105 </p>
106 </div>
107 </div>
108 <div class="tab-content scheduling" id="tab2-content">
109 <div class="wrap" style="text-align: left; padding-top: 10px;">
110 <div id="scheduling-form-container">
111
112 <div class="wpallexport-content-section" style="padding-bottom: 15px; margin-bottom: 10px; margin-top: 5px;">
113 <div class="wpallexport-collapsed-content" style="padding: 0; height: auto; ">
114 <div class="wpallexport-collapsed-content-inner" style="padding-bottom: 0; overflow: auto; padding-right: 0;">
115
116 <?php
117 $is_export_complete_page = true;
118 $export = $update_previous;
119 require __DIR__.'/../../../src/Scheduling/views/SchedulingUI.php'; ?>
120 </div>
121 </div>
122 </div>
123 </div>
124 <div class="wpae-save-button button wpallexport-large-button wpae-export-complete-save-button <?php if(!$hasActiveLicense) { echo 'disabled'; }?>"
125 style="position: relative; width: 285px; display: block; margin:auto; background-image: none; margin-top: 25px;">
126 <svg width="30" height="30" viewBox="0 0 1792 1792"
127 xmlns="http://www.w3.org/2000/svg"
128 style="fill: white;">
129 <path
130 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"
131 fill="white"/>
132 </svg>
133 <div class="easing-spinner" style="display: none; left:20px; top:7px;">
134 <div class="double-bounce1"></div>
135 <div class="double-bounce2"></div>
136 </div>
137 <div class="save-text"
138 style="display: block; position:absolute; left: 70px; top:0; user-select: none;">
139 <?php esc_html_e('Save Scheduling Options', 'wp-all-export'); ?>
140 </div>
141 </div>
142 </div>
143 </div>
144 </div>
145 <div class="tab-content normal-tab" id="tab3-content">
146 <p>
147 <?php esc_html_e("Automatically send your data to over 500 apps with Zapier.", 'wp-all-export'); ?>
148 <br/>
149 <a href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839967&discount=welcome-upgrade-99&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=zapier" target="_blank">
150 <?php esc_html_e("Upgrade to the Pro edition of WP All Export for Zapier integration", 'wp-all-export'); ?>
151 </a>
152 <br/>
153 <a href="https://zapier.com/zapbook/wp-all-export-pro/" target="_blank"><?php esc_html_e("Click here to read more about WP All Export's Zapier Integration.", 'wp-all-export'); ?></a>
154 </p>
155 <iframe width="560" height="315" src="https://www.youtube.com/embed/6tBacBmiHsQ" frameborder="0" allowfullscreen></iframe>
156 </div>
157 <?php if ($isImportAllowedSpecification->isSatisfied($update_previous)): ?>
158
159 <div class="tab-content normal-tab" id="tab4-content">
160 <p>
161 <?php esc_html_e("After you've downloaded your data, edit it however you like.", 'wp-all-export'); ?><br/>
162 <?php esc_html_e("Then, click below to import the data with WP All Import without having to set anything up.", 'wp-all-export'); ?>
163 </p>
164 <p>
165 <button class="button wpallexport-large-button download_data"
166 rel="<?php echo esc_url(add_query_arg(array('action' => 'download', 'id' => $update_previous->id, '_wpnonce' => wp_create_nonce('_wpnonce-download_feed')), $this->baseUrl)); ?>"><?php esc_html_e('Download', 'wp-all-export'); ?> <?php echo esc_html(strtoupper(wp_all_export_get_export_format($update_previous->options))); ?></button>
167
168 <button class="button wpallexport-large-button download_data"
169 rel="<?php echo esc_url(add_query_arg(array('page' => 'pmxi-admin-import', 'id' => $update_previous->options['import_id'], 'deligate' => 'wpallexport'), remove_query_arg('page', $this->baseUrl))); ?>"><?php esc_html_e('Import with WP All Import', 'wp-all-export'); ?></button>
170 </p>
171 <p>
172 <?php esc_html_e("You can also start the import by clicking 'Import with WP All Import' on the Manage Exports page.", 'wp-all-export');?>
173 </p>
174 </div>
175 <?php endif; ?>
176 </div>
177 <hr>
178 <?php
179 }
180 ?>
181 <input type="hidden" value="<?php echo esc_attr($export['options']['cpt'][0]); ?>" id="export-cpt">
182 </div>