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 / index.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
index.php
320 lines
1 <?php
2 if(!defined('ABSPATH')) {
3 die();
4 }
5 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope
6 do_action('pmxe_addons_html');
7 ?>
8 <table class="wpallexport-layout wpallexport-step-1">
9 <tr>
10 <td class="left">
11 <div class="wpallexport-wrapper">
12 <h2 class="wpallexport-wp-notices"></h2>
13 <div class="wpallexport-header">
14 <div class="wpallexport-logo"></div>
15 <div class="wpallexport-title">
16 <h2><?php esc_html_e('New Export', 'wp-all-export'); ?></h2>
17 </div>
18 <div class="wpallexport-links">
19 <a href="http://www.wpallimport.com/support/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=premium-support" target="_blank"><?php esc_html_e('Support', 'wp-all-export'); ?></a> | <a href="http://www.wpallimport.com/documentation/?utm_source=export-plugin-free&utm_medium=help&utm_campaign=docs" target="_blank"><?php esc_html_e('Documentation', 'wp-all-export'); ?></a>
20 </div>
21 </div>
22
23 <div class="clear"></div>
24
25 <?php if ($this->errors->get_error_codes()): ?>
26 <?php $this->error() ?>
27 <?php endif ?>
28
29 <form method="post" class="wpallexport-choose-file" enctype="multipart/form-data" autocomplete="off">
30
31 <div class="wpallexport-upload-resource-step-one rad4">
32
33 <div class="clear"></div>
34
35 <div class="wpallexport-import-types">
36 <h2><?php esc_html_e('First, choose what to export.', 'wp-all-export'); ?></h2>
37 <a class="wpallexport-import-from wpallexport-url-type <?php echo 'advanced' != $post['export_type'] ? 'selected' : '' ?>" rel="specific_type" href="javascript:void(0);">
38 <span class="wpallexport-icon"></span>
39 <span class="wpallexport-icon-label"><?php esc_html_e('Specific Post Type', 'wp-all-export'); ?></span>
40 </a>
41 <a class="wpallexport-import-from wpallexport-file-type <?php echo 'advanced' == $post['export_type'] ? 'selected' : '' ?>" rel="advanced_type" href="javascript:void(0);">
42 <span class="wpallexport-icon"></span>
43 <span class="wpallexport-icon-label"><?php esc_html_e('WP_Query Results', 'wp-all-export'); ?></span>
44 </a>
45 </div>
46
47 <input type="hidden" value="<?php echo esc_attr($post['export_type']); ?>" name="export_type"/>
48
49 <?php if (\class_exists('WooCommerce')): ?>
50 <input type="hidden" value="1" id="WooCommerce_Installed">
51 <?php endif; ?>
52
53 <div class="wpallexport-upload-type-container" rel="specific_type">
54
55 <div class="wpallexport-file-type-options">
56
57 <?php
58 $custom_types = get_post_types(array('_builtin' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => true), 'objects') + get_post_types(array('_builtin' => false, 'show_ui' => false), 'objects');
59 foreach ($custom_types as $key => $ct) {
60 if (in_array($key, array('attachment', 'revision', 'nav_menu_item', 'import_users', 'shop_webhook', 'acf-field', 'acf-field-group'))) unset($custom_types[$key]);
61 }
62 $custom_types = apply_filters( 'wpallexport_custom_types', $custom_types );
63 global $wp_version;
64 $sorted_cpt = array();
65 foreach ($custom_types as $key => $cpt){
66
67 $sorted_cpt[$key] = $cpt;
68
69 // Put users & comments & taxonomies after Pages
70 if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){
71
72 $sorted_cpt['taxonomies'] = new stdClass();
73 $sorted_cpt['taxonomies']->labels = new stdClass();
74 $sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp-all-export');
75
76 $sorted_cpt['comments'] = new stdClass();
77 $sorted_cpt['comments']->labels = new stdClass();
78 $sorted_cpt['comments']->labels->name = __('Comments','wp-all-export');
79
80 $sorted_cpt['users'] = new stdClass();
81 $sorted_cpt['users']->labels = new stdClass();
82 $sorted_cpt['users']->labels->name = __('Users','wp-all-export');
83 break;
84 }
85 }
86 $order = array('shop_order', 'shop_coupon', 'shop_customer', 'product');
87 foreach ($order as $cpt){
88 if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt];
89 }
90
91 uasort($custom_types, "wp_all_export_cmp_custom_types");
92
93 foreach ($custom_types as $key => $cpt) {
94 if (empty($sorted_cpt[$key])){
95 $sorted_cpt[$key] = $cpt;
96 }
97 }
98
99 if ( class_exists('WooCommerce') ) {
100
101 $reviewElement = new stdClass();
102 $reviewElement->labels = new stdClass();
103 $reviewElement->labels->name = __('WooCommerce Reviews', 'wp-all-export');
104
105 $sorted_cpt = $this->insertAfter($sorted_cpt, 'product', 'shop_review', $reviewElement);
106 }
107
108 ?>
109
110 <select id="file_selector">
111 <option value=""><?php esc_html_e('Choose a post type...', 'wp-all-export'); ?></option>
112 <?php if (count($sorted_cpt)): $unknown_cpt = array(); ?>
113 <?php foreach ($sorted_cpt as $key => $ct):?>
114 <?php
115 // Remove unused post types
116 if( in_array($key, array('wp_block', 'customize_changeset', 'custom_css', 'scheduled_action', 'scheduled-action', 'user_request', 'oembed_cache', 'wp_navigation'))) {
117 continue;
118 }
119 $image_src = 'dashicon-cpt';
120 $cpt_label = $ct->labels->name;
121
122 if ( in_array($key, array('post', 'page', 'product', 'import_users', 'shop_order', 'shop_coupon', 'shop_customer', 'users', 'comments', 'taxonomies', 'custom_wpae-gf-addon') ) )
123 {
124 $image_src = 'dashicon-' . $key;
125 }
126 else if($key == 'shop_review') {
127 $image_src = 'dashicon-review';
128 }
129 else
130 {
131 $unknown_cpt[$key] = $ct;
132 continue;
133 }
134
135 ?>
136 <option value="<?php echo esc_attr($key);?>" data-imagesrc="dashicon <?php echo esc_attr($image_src); ?>" <?php if ($key == $post['cpt']) echo 'selected="selected"'; ?>><?php echo esc_html($cpt_label); ?></option>
137 <?php endforeach ?>
138 <?php endif ?>
139 <?php if ( ! empty($unknown_cpt)): ?>
140 <?php foreach ($unknown_cpt as $key => $ct):?>
141 <?php
142 $image_src = 'dashicon-cpt';
143 $cpt_label = $ct->labels->name;
144 ?>
145 <option value="<?php echo esc_attr($key);?>" data-imagesrc="dashicon <?php echo esc_attr($image_src); ?>" <?php if ($key == $post['cpt']) echo 'selected="selected"'; ?>><?php echo esc_html($cpt_label); ?></option>
146 <?php endforeach ?>
147 <?php endif;?>
148 </select>
149 <input type="hidden" name="cpt" value="<?php echo esc_attr($post['cpt']); ?>"/>
150 <div class="taxonomy_to_export_wrapper">
151 <input type="hidden" name="taxonomy_to_export" value="<?php echo esc_attr($post['taxonomy_to_export']);?>">
152 <select id="taxonomy_to_export">
153 <option value=""><?php esc_html_e('Select taxonomy', 'wp-all-export'); ?></option>
154 <?php $options = wp_all_export_get_taxonomies(); ?>
155 <?php foreach ($options as $slug => $name):?>
156 <option value="<?php echo esc_attr($slug);?>" <?php if ($post['taxonomy_to_export'] == $slug):?>selected="selected"<?php endif;?>><?php echo esc_html($name);?></option>
157 <?php endforeach;?>
158 </select>
159 </div>
160
161 <div class="sub_post_type_to_export_wrapper">
162 <input type="hidden" name="sub_post_type_to_export" value="<?php echo esc_attr($post['taxonomy_to_export']);?>">
163 <select id="sub_post_to_export">
164 </select>
165 </div>
166
167 <div class="wpallexport-free-edition-notice wpallexport-user-export-notice">
168 <p><?php esc_html_e('The User Export Package is Required to Export Users.', 'wp-all-export'); ?></p>
169 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839954&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-users"><?php
170 esc_html_e('Purchase the User Export Package','wp-all-export');?></a>
171 </div>
172
173 <div class="wpallexport-free-edition-notice wpallexport-shop_customer-export-notice">
174 <p><?php esc_html_e('The User Export Package is Required to Export Customers.', 'wp-all-export'); ?></p>
175
176 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839954&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-customers"><?php
177 esc_html_e('Purchase the User Export Package','wp-all-export');?></a>
178 </div>
179
180
181 <div class="wpallexport-free-edition-notice wpallexport-shop_order-export-notice">
182 <p><?php esc_html_e('The Order Export Add-On is Required to Export Orders.', 'wp-all-export'); ?></p>
183 <a class="upgrade_link thickbox open-plugin-details-modal" target="_blank" href="<?php echo esc_url(admin_url('plugin-install.php?tab=plugin-information&plugin=order-export-for-woocommerce&TB_iframe=true&width=772&height=978'));?>"><?php
184 esc_html_e('Download the Order Export Add-On','wp-all-export');?></a>
185 </div>
186
187 <div class="wpallexport-free-edition-notice wpallexport-shop_coupon-export-notice">
188 <p><?php esc_html_e('The WooCommerce Export Package is Required to Export Coupons.', 'wp-all-export'); ?></p>
189 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839955&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-coupons"><?php
190 esc_html_e('Purchase the WooCommerce Export Package','wp-all-export');?></a>
191
192 </div>
193
194 <div class="wpallexport-free-edition-notice wpallexport-shop_review-export-notice">
195
196 <p><?php esc_html_e('WP All Export Pro and the WooCommerce Export Add-On are Required to Export WooCommerce Reviews.', 'wp-all-export'); ?></p>
197
198 <a class="upgrade_link" target="_blank"
199 href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839955&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-reviews"><?php
200 esc_html_e('Purchase the WooCommerce Export Package','wp-all-export');?></a>
201
202
203 </div>
204
205 <div class="wpallexport-free-edition-notice wpallexport-product-export-notice">
206 <p><?php esc_html_e('The Product Export Add-On is Required to Export WooCommerce Products.', 'wp-all-export'); ?></p>
207 <a class="upgrade_link thickbox open-plugin-details-modal" target="_blank" href="<?php echo esc_url(admin_url('plugin-install.php?tab=plugin-information&plugin=product-export-for-woocommerce&TB_iframe=true&width=772&height=978'));?>"><?php
208 esc_html_e('Download the Product Export Add-On','wp-all-export');?></a>
209
210 </div>
211
212 <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice">
213
214 <p><?php esc_html_e('WP All Export Pro is Required to Export Comments.', 'wp-all-export'); ?></p>
215
216 <a class="upgrade_link" target="_blank"
217 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=export-comments"><?php
218 esc_html_e('Purchase WP All Export Pro','wp-all-export');?></a>
219
220 </div>
221
222
223 <div class="wpallexport-free-edition-notice wpallexport-taxonomies-export-notice">
224
225 <p><?php esc_html_e('WP All Export Pro is Required to Export Taxonomies.', 'wp-all-export'); ?></p>
226
227 <a class="upgrade_link" target="_blank"
228 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=export-taxonomies"><?php
229 esc_html_e('Purchase WP All Export Pro','wp-all-export');?></a>
230
231 </div>
232
233 <?php do_action('pmxe_after_notices_html'); ?>
234 </div>
235 </div>
236
237 <div class="wpallexport-upload-type-container" rel="advanced_type">
238 <div class="wpallexport-file-type-options">
239
240 <select id="wp_query_selector">
241 <option value="wp_query" <?php if ('wp_query' == $post['wp_query_selector']) echo 'selected="selected"'; ?>><?php esc_html_e('Post Type Query', 'wp-all-export'); ?></option>
242 <option value="wp_user_query" <?php if ('wp_user_query' == $post['wp_query_selector']) echo 'selected="selected"'; ?>><?php esc_html_e('User Query', 'wp-all-export'); ?></option>
243 <?php
244 global $wp_version;
245 if ( version_compare($wp_version, '4.2.0', '>=') ):
246 ?>
247 <option value="wp_comment_query" <?php if ('wp_comment_query' == $post['wp_query_selector']) echo 'selected="selected"'; ?>><?php esc_html_e('Comment Query', 'wp-all-export'); ?></option>
248 <?php
249 endif;
250 ?>
251 </select>
252
253 <div class="wpallexport-free-edition-notice wpallexport-user-export-notice" style="margin-bottom: 20px;">
254 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839954&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-users">
255 <?php esc_html_e('The User Export Package is required to Export Users','wp-all-export');?></a><br/>
256 <p><?php esc_html_e('If you already own it, remove the WP All Export free edition and install the User Export Package\'s plugins.', 'wp-all-export'); ?></p>
257 </div>
258
259 <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice" style="margin-bottom: 20px;">
260 <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=export-comments">
261 <?php esc_html_e('Upgrade to the Pro edition of WP All Export to Export Comments','wp-all-export');?></a><br/>
262 <p><?php esc_html_e('If you already own it, remove the free edition and install the Pro edition.', 'wp-all-export'); ?></p>
263 </div>
264
265 <div class="wpallexport-free-edition-notice wpallexport-custom-product-export-notice" style="margin-bottom: 20px;">
266 <p><?php esc_html_e('The WooCommerce Export Package is Required to Export WooCommerce Products.', 'wp-all-export'); ?></p>
267 <br/>
268 <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=5839955&discount=welcome-upgrade-169&edd_options%5Bprice_id%5D=1&utm_source=export-plugin-free&utm_medium=upgrade-notice&utm_campaign=export-products"><?php
269 esc_html_e('Purchase the WooCommerce Export Package','wp-all-export');?></a>
270
271 </div>
272
273 <input type="hidden" name="wp_query_selector" value="<?php echo esc_attr($post['wp_query_selector']);?>">
274 <textarea class="wp_query" rows="10" cols="80" name="wp_query" placeholder="'post_type' => 'post', 'post_status' => array( 'pending', 'draft', 'future' )" style="width: 600px;"><?php echo esc_html($post['wp_query']); ?></textarea>
275
276 </div>
277
278 </div>
279
280 <div class="wp_all_export_preloader"></div>
281
282 <input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_html($post['filter_rules_hierarhy']);?>"/>
283 <input type="hidden" class="wpallexport-preload-post-data" value="<?php echo esc_attr($preload);?>">
284 </div>
285
286 <div class="wpallexport-filtering-wrapper rad4">
287 <div class="ajax-console" id="filtering_result">
288
289 </div>
290 </div>
291
292 <div class="wpallexport-upload-resource-step-two rad4 wpallexport-collapsed closed">
293
294 </div>
295
296 <p class="wpallexport-submit-buttons" <?php if ('advanced' == $post['export_type']) echo 'style="display:block;"';?>>
297 <input type="hidden" name="custom_type" value="" />
298 <input type="hidden" name="is_submitted" value="1" />
299 <input type="hidden" name="auto_generate" value="0" />
300
301 <?php wp_nonce_field('choose-cpt', '_wpnonce_choose-cpt'); ?>
302
303 <span class="wp_all_export_continue_step_two"></span>
304
305 </p>
306
307 <table><tr><td class="wpallexport-note"></td></tr></table>
308 </form>
309
310 <div class="wpallexport-display-columns wpallexport-margin-top-forty">
311 <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- plugin-owned filter output; callback in filters/wpallexport_footer.php returns trusted static HTML
312 echo apply_filters('wpallexport_footer', ''); ?>
313 </div>
314
315 </div>
316 </td>
317 </tr>
318 </table>
319
320 <?php add_thickbox(); ?>