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
245 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 | <div class="wpallexport-free-edition-notice wpallexport-user-export-notice"> |
| 153 | <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> |
| 154 | <p><?php _e('This free add-on is required to export users.', 'wp_all_export_plugin'); ?></p> |
| 155 | </div> |
| 156 | <div class="wpallexport-free-edition-notice wpallexport-shop_customer-export-notice"> |
| 157 | <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> |
| 158 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 159 | </div> |
| 160 | <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice"> |
| 161 | <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> |
| 162 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 163 | </div> |
| 164 | <div class="wpallexport-free-edition-notice wpallexport-reviews-export-notice"> |
| 165 | <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> |
| 166 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 167 | </div> |
| 168 | <div class="wpallexport-free-edition-notice wpallexport-taxonomies-export-notice"> |
| 169 | <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> |
| 170 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 171 | </div> |
| 172 | </div> |
| 173 | </div> |
| 174 | |
| 175 | <div class="wpallexport-upload-type-container" rel="advanced_type"> |
| 176 | <div class="wpallexport-file-type-options"> |
| 177 | |
| 178 | <select id="wp_query_selector"> |
| 179 | <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> |
| 180 | <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> |
| 181 | <?php |
| 182 | global $wp_version; |
| 183 | if ( version_compare($wp_version, '4.2.0', '>=') ): |
| 184 | ?> |
| 185 | <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> |
| 186 | <?php |
| 187 | endif; |
| 188 | ?> |
| 189 | </select> |
| 190 | |
| 191 | <div class="wpallexport-free-edition-notice wpallexport-user-export-notice" style="margin-bottom: 20px;"> |
| 192 | <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> |
| 193 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 194 | </div> |
| 195 | |
| 196 | <div class="wpallexport-free-edition-notice wpallexport-comments-export-notice" style="margin-bottom: 20px;"> |
| 197 | <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> |
| 198 | <p><?php _e('If you already own it, remove the free edition and install the Pro edition.', 'wp_all_export_plugin'); ?></p> |
| 199 | </div> |
| 200 | |
| 201 | <input type="hidden" name="wp_query_selector" value="<?php echo $post['wp_query_selector'];?>"> |
| 202 | <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> |
| 203 | |
| 204 | </div> |
| 205 | |
| 206 | </div> |
| 207 | |
| 208 | <div class="wp_all_export_preloader"></div> |
| 209 | |
| 210 | <input type="hidden" class="hierarhy-output" name="filter_rules_hierarhy" value="<?php echo esc_html($post['filter_rules_hierarhy']);?>"/> |
| 211 | <input type="hidden" class="wpallexport-preload-post-data" value="<?php echo $preload;?>"> |
| 212 | </div> |
| 213 | |
| 214 | <div class="wpallexport-filtering-wrapper rad4"> |
| 215 | <div class="ajax-console" id="filtering_result"> |
| 216 | |
| 217 | </div> |
| 218 | </div> |
| 219 | |
| 220 | <div class="wpallexport-upload-resource-step-two rad4 wpallexport-collapsed closed"> |
| 221 | |
| 222 | </div> |
| 223 | |
| 224 | <p class="wpallexport-submit-buttons" <?php if ('advanced' == $post['export_type']) echo 'style="display:block;"';?>> |
| 225 | <input type="hidden" name="custom_type" value="" /> |
| 226 | <input type="hidden" name="is_submitted" value="1" /> |
| 227 | <input type="hidden" name="auto_generate" value="0" /> |
| 228 | |
| 229 | <?php wp_nonce_field('choose-cpt', '_wpnonce_choose-cpt'); ?> |
| 230 | |
| 231 | <span class="wp_all_export_continue_step_two"></span> |
| 232 | |
| 233 | </p> |
| 234 | |
| 235 | <table><tr><td class="wpallexport-note"></td></tr></table> |
| 236 | </form> |
| 237 | |
| 238 | <a href="http://soflyy.com/" target="_blank" class="wpallexport-created-by"><?php _e('Created by', 'wp_all_export_plugin'); ?> <span></span></a> |
| 239 | |
| 240 | </div> |
| 241 | </td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | |
| 245 | <?php add_thickbox(); ?> |