blocks
8 years ago
options
8 years ago
template
8 years ago
google.php
8 years ago
index.php
8 years ago
options.php
8 years ago
process.php
8 years ago
template.php
8 years ago
variation_options.php
8 years ago
variation_options_common.php
8 years ago
index.php
222 lines
| 1 | <table class="wpallexport-layout wpallexport-step-1"> |
| 2 | <tr> |
| 3 | <td class="left"> |
| 4 | <div class="wpallexport-wrapper"> |
| 5 | <h2 class="wpallexport-wp-notices"></h2> |
| 6 | <div class="wpallexport-header"> |
| 7 | <div class="wpallexport-logo"></div> |
| 8 | <div class="wpallexport-title"> |
| 9 | <p><?php _e('WP All Export', 'wp_all_export_plugin'); ?></p> |
| 10 | <h2><?php _e('Export to XML / CSV', 'wp_all_export_plugin'); ?></h2> |
| 11 | </div> |
| 12 | <div class="wpallexport-links"> |
| 13 | <a href="http://www.wpallimport.com/support/" target="_blank"><?php _e('Support', 'wp_all_export_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/" target="_blank"><?php _e('Documentation', 'wp_all_export_plugin'); ?></a> |
| 14 | </div> |
| 15 | </div> |
| 16 | |
| 17 | <div class="clear"></div> |
| 18 | |
| 19 | <?php if ($this->errors->get_error_codes()): ?> |
| 20 | <?php $this->error() ?> |
| 21 | <?php endif ?> |
| 22 | |
| 23 | <form method="post" class="wpallexport-choose-file" enctype="multipart/form-data" autocomplete="off"> |
| 24 | |
| 25 | <div class="wpallexport-upload-resource-step-one rad4"> |
| 26 | |
| 27 | <div class="clear"></div> |
| 28 | |
| 29 | <div class="wpallexport-import-types"> |
| 30 | <h2><?php _e('First, choose what to export.', 'wp_all_export_plugin'); ?></h2> |
| 31 | <a class="wpallexport-import-from wpallexport-url-type <?php echo 'advanced' != $post['export_type'] ? 'selected' : '' ?>" rel="specific_type" href="javascript:void(0);"> |
| 32 | <span class="wpallexport-icon"></span> |
| 33 | <span class="wpallexport-icon-label"><?php _e('Specific Post Type', 'wp_all_export_plugin'); ?></span> |
| 34 | </a> |
| 35 | <a class="wpallexport-import-from wpallexport-file-type <?php echo 'advanced' == $post['export_type'] ? 'selected' : '' ?>" rel="advanced_type" href="javascript:void(0);"> |
| 36 | <span class="wpallexport-icon"></span> |
| 37 | <span class="wpallexport-icon-label"><?php _e('WP_Query Results', 'wp_all_export_plugin'); ?></span> |
| 38 | </a> |
| 39 | </div> |
| 40 | |
| 41 | <input type="hidden" value="<?php echo $post['export_type']; ?>" name="export_type"/> |
| 42 | |
| 43 | <div class="wpallexport-upload-type-container" rel="specific_type"> |
| 44 | |
| 45 | <div class="wpallexport-file-type-options"> |
| 46 | |
| 47 | <?php |
| 48 | $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'); |
| 49 | foreach ($custom_types as $key => $ct) { |
| 50 | if (in_array($key, array('attachment', 'revision', 'nav_menu_item', 'import_users', 'shop_webhook', 'acf-field', 'acf-field-group'))) unset($custom_types[$key]); |
| 51 | } |
| 52 | $custom_types = apply_filters( 'wpallexport_custom_types', $custom_types ); |
| 53 | global $wp_version; |
| 54 | $sorted_cpt = array(); |
| 55 | foreach ($custom_types as $key => $cpt){ |
| 56 | |
| 57 | $sorted_cpt[$key] = $cpt; |
| 58 | |
| 59 | // Put users & comments & taxonomies after Pages |
| 60 | if ( ! empty($custom_types['page']) && $key == 'page' || empty($custom_types['page']) && $key == 'post' ){ |
| 61 | |
| 62 | $sorted_cpt['taxonomies'] = new stdClass(); |
| 63 | $sorted_cpt['taxonomies']->labels = new stdClass(); |
| 64 | $sorted_cpt['taxonomies']->labels->name = __('Taxonomies','wp_all_export_plugin'); |
| 65 | |
| 66 | $sorted_cpt['comments'] = new stdClass(); |
| 67 | $sorted_cpt['comments']->labels = new stdClass(); |
| 68 | $sorted_cpt['comments']->labels->name = __('Comments','wp_all_export_plugin'); |
| 69 | |
| 70 | $sorted_cpt['users'] = new stdClass(); |
| 71 | $sorted_cpt['users']->labels = new stdClass(); |
| 72 | $sorted_cpt['users']->labels->name = __('Users','wp_all_export_plugin'); |
| 73 | break; |
| 74 | } |
| 75 | } |
| 76 | $order = array('shop_order', 'shop_coupon', 'shop_customer', 'product'); |
| 77 | foreach ($order as $cpt){ |
| 78 | if (!empty($custom_types[$cpt])) $sorted_cpt[$cpt] = $custom_types[$cpt]; |
| 79 | } |
| 80 | |
| 81 | uasort($custom_types, "wp_all_export_cmp_custom_types"); |
| 82 | |
| 83 | foreach ($custom_types as $key => $cpt) { |
| 84 | if (empty($sorted_cpt[$key])){ |
| 85 | $sorted_cpt[$key] = $cpt; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | ?> |
| 90 | |
| 91 | <select id="file_selector"> |
| 92 | <option value=""><?php _e('Choose a post type...', 'wp_all_export_plugin'); ?></option> |
| 93 | <?php if (count($sorted_cpt)): $unknown_cpt = array(); ?> |
| 94 | <?php foreach ($sorted_cpt as $key => $ct):?> |
| 95 | <?php |
| 96 | $image_src = 'dashicon-cpt'; |
| 97 | $cpt_label = $ct->labels->name; |
| 98 | |
| 99 | if ( in_array($key, array('post', 'page', 'product', 'import_users', 'shop_order', 'shop_coupon', 'shop_customer', 'users', 'comments', 'taxonomies') ) ) |
| 100 | { |
| 101 | $image_src = 'dashicon-' . $key; |
| 102 | } |
| 103 | else |
| 104 | { |
| 105 | $unknown_cpt[$key] = $ct; |
| 106 | continue; |
| 107 | } |
| 108 | |
| 109 | ?> |
| 110 | <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> |
| 111 | <?php endforeach ?> |
| 112 | <?php endif ?> |
| 113 | <?php if ( ! empty($unknown_cpt)): ?> |
| 114 | <?php foreach ($unknown_cpt as $key => $ct):?> |
| 115 | <?php |
| 116 | $image_src = 'dashicon-cpt'; |
| 117 | $cpt_label = $ct->labels->name; |
| 118 | ?> |
| 119 | <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> |
| 120 | <?php endforeach ?> |
| 121 | <?php endif;?> |
| 122 | </select> |
| 123 | <input type="hidden" name="cpt" value="<?php echo $post['cpt']; ?>"/> |
| 124 | <div class="taxonomy_to_export_wrapper"> |
| 125 | <input type="hidden" name="taxonomy_to_export" value="<?php echo $post['taxonomy_to_export'];?>"> |
| 126 | <select id="taxonomy_to_export"> |
| 127 | <option value=""><?php _e('Select taxonomy', 'wp_all_export_plugin'); ?></option> |
| 128 | <?php $options = wp_all_export_get_taxonomies(); ?> |
| 129 | <?php foreach ($options as $slug => $name):?> |
| 130 | <option value="<?php echo $slug;?>" <?php if ($post['taxonomy_to_export'] == $slug):?>selected="selected"<?php endif;?>><?php echo $name;?></option> |
| 131 | <?php endforeach;?> |
| 132 | </select> |
| 133 | </div> |
| 134 | <div class="wpallexport-free-edition-notice wpallexport-user-export-notice"> |
| 135 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','wp_all_export_plugin');?></a> |
| 136 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 137 | </div> |
| 138 | <div class="wpallexport-free-edition-notice wpallexport-shop_customer-export-notice"> |
| 139 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Customers','wp_all_export_plugin');?></a> |
| 140 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 141 | </div> |
| 142 | <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice"> |
| 143 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a> |
| 144 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 145 | </div> |
| 146 | <div class="wpallexport-free-edition-notice wpallexport-taxonomies-export-notice"> |
| 147 | <a class="upgrade_link" target="_blank" href="http://www.wpallimport.com/order-now/export/?utm_source=wordpress.org&utm_campaign=free%2Bwp%2Ball%2Bexport%2Bplugin&utm_medium=taxonomies"><?php _e('Upgrade to the Pro edition of WP All Export to Export Taxonomies','wp_all_export_plugin');?></a> |
| 148 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 149 | </div> |
| 150 | </div> |
| 151 | </div> |
| 152 | |
| 153 | <div class="wpallexport-upload-type-container" rel="advanced_type"> |
| 154 | <div class="wpallexport-file-type-options"> |
| 155 | |
| 156 | <select id="wp_query_selector"> |
| 157 | <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> |
| 158 | <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> |
| 159 | <?php |
| 160 | global $wp_version; |
| 161 | if ( version_compare($wp_version, '4.2.0', '>=') ): |
| 162 | ?> |
| 163 | <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> |
| 164 | <?php |
| 165 | endif; |
| 166 | ?> |
| 167 | </select> |
| 168 | |
| 169 | <div class="wpallexport-free-edition-notice wpallexport-user-export-notice" style="margin-bottom: 20px;"> |
| 170 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Users','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 | |
| 174 | <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice" style="margin-bottom: 20px;"> |
| 175 | <a class="upgrade_link" target="_blank" href="https://www.wpallimport.com/checkout/?edd_action=add_to_cart&download_id=118611&edd_options%5Bprice_id%5D=1&utm_source=wordpress.org&utm_medium=export-users&utm_campaign=free+wp+all+export+plugin"><?php _e('Upgrade to the Pro edition of WP All Export to Export Comments','wp_all_export_plugin');?></a> |
| 176 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 177 | </div> |
| 178 | |
| 179 | <input type="hidden" name="wp_query_selector" value="<?php echo $post['wp_query_selector'];?>"> |
| 180 | <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> |
| 181 | |
| 182 | </div> |
| 183 | |
| 184 | </div> |
| 185 | |
| 186 | <div class="wp_all_export_preloader"></div> |
| 187 | |
| 188 | <input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_html($post['filter_rules_hierarhy']);?>"/> |
| 189 | <input type="hidden" class="wpallexport-preload-post-data" value="<?php echo $preload;?>"> |
| 190 | </div> |
| 191 | |
| 192 | <div class="wpallexport-filtering-wrapper rad4"> |
| 193 | <div class="ajax-console" id="filtering_result"> |
| 194 | |
| 195 | </div> |
| 196 | </div> |
| 197 | |
| 198 | <div class="wpallexport-upload-resource-step-two rad4 wpallexport-collapsed closed"> |
| 199 | |
| 200 | </div> |
| 201 | |
| 202 | <p class="wpallexport-submit-buttons" <?php if ('advanced' == $post['export_type']) echo 'style="display:block;"';?>> |
| 203 | <input type="hidden" name="custom_type" value="" /> |
| 204 | <input type="hidden" name="is_submitted" value="1" /> |
| 205 | <input type="hidden" name="auto_generate" value="0" /> |
| 206 | |
| 207 | <?php wp_nonce_field('choose-cpt', '_wpnonce_choose-cpt'); ?> |
| 208 | |
| 209 | <span class="wp_all_export_continue_step_two"></span> |
| 210 | |
| 211 | </p> |
| 212 | |
| 213 | <table><tr><td class="wpallexport-note"></td></tr></table> |
| 214 | </form> |
| 215 | |
| 216 | <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> |
| 217 | |
| 218 | </div> |
| 219 | </td> |
| 220 | </tr> |
| 221 | </table> |
| 222 |