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