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