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