bulk.php
4 weeks ago
delete.php
4 weeks ago
index.php
4 weeks ago
scheduling.php
4 weeks ago
templates.php
4 weeks ago
update.php
4 weeks ago
update.php
120 lines
| 1 | <?php |
| 2 | if(!defined('ABSPATH')) { |
| 3 | die(); |
| 4 | } |
| 5 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- variables in template files inherited from controller render() scope |
| 6 | $l10n = array( |
| 7 | 'confirm_and_run' => __('Confirm & Run Export', 'wp-all-export'), |
| 8 | 'save_configuration' => __('Save Export Configuration', 'wp-all-export') |
| 9 | ); |
| 10 | ?> |
| 11 | <script type="text/javascript"> |
| 12 | var wp_all_export_L10n = <?php echo json_encode($l10n); ?>; |
| 13 | </script> |
| 14 | |
| 15 | |
| 16 | <div class="wpallexport-step-4 wpallexport-export-options wpallexport-re-run-export"> |
| 17 | |
| 18 | <h2 class="wpallexport-wp-notices"></h2> |
| 19 | |
| 20 | <div class="wpallexport-wrapper"> |
| 21 | <h2 class="wpallexport-wp-notices"></h2> |
| 22 | <div class="wpallexport-header"> |
| 23 | <div class="wpallexport-logo"></div> |
| 24 | <div class="wpallexport-title"> |
| 25 | <h2><?php esc_html_e('Confirm & Run', 'wp-all-export'); ?></h2> |
| 26 | </div> |
| 27 | <div class="wpallexport-links"> |
| 28 | <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'); ?></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'); ?></a> |
| 29 | </div> |
| 30 | </div> |
| 31 | <div class="clear"></div> |
| 32 | </div> |
| 33 | |
| 34 | <table class="wpallexport-layout"> |
| 35 | <tr> |
| 36 | <td class="left" style="width: 100%;"> |
| 37 | |
| 38 | <?php do_action('pmxe_options_header', $isWizard, $post); ?> |
| 39 | |
| 40 | <div class="ajax-console"> |
| 41 | <?php if ($this->errors->get_error_codes()): ?> |
| 42 | <?php $this->error() ?> |
| 43 | <?php endif ?> |
| 44 | </div> |
| 45 | |
| 46 | <div class="wpallexport-content-section" style="padding: 0 30px 0 0; overflow: hidden; margin-bottom: 0;"> |
| 47 | |
| 48 | <div id="filtering_result" class="wpallexport-ready-to-go"> |
| 49 | <h3> </h3> |
| 50 | <div class="wp_all_export_preloader"></div> |
| 51 | </div> |
| 52 | |
| 53 | <form class="confirm <?php echo ! $isWizard ? 'edit' : '' ?>" method="post" style="float:right;"> |
| 54 | |
| 55 | <?php wp_nonce_field('update-export', '_wpnonce_update-export') ?> |
| 56 | <input type="hidden" name="is_confirmed" value="1" /> |
| 57 | <input type="hidden" name="record-count" class="wpae-record-count" value="0" /> |
| 58 | |
| 59 | |
| 60 | <input type="submit" class="rad10 wp_all_export_confirm_and_run" value="<?php esc_html_e('Confirm & Run Export', 'wp-all-export') ?>" <?php if (empty(PMXE_Plugin::$session->found_posts)):?>style="display:none;"<?php endif;?>/> |
| 61 | </form> |
| 62 | |
| 63 | </div> |
| 64 | |
| 65 | <div class="clear"></div> |
| 66 | |
| 67 | <form class="<?php echo ! $isWizard ? 'edit' : 'options' ?> choose-export-options" method="post" enctype="multipart/form-data" autocomplete="off" <?php echo ! $isWizard ? 'style="overflow:visible;"' : '' ?>> |
| 68 | |
| 69 | <?php |
| 70 | $addons = new \Wpae\App\Service\Addons\AddonService(); |
| 71 | $selected_post_type = ''; |
| 72 | if ($addons->isUserAddonActive() && XmlExportUser::$is_active): |
| 73 | $selected_post_type = empty($post['cpt'][0]) ? 'users' : $post['cpt'][0]; |
| 74 | endif; |
| 75 | if (empty($selected_post_type) and ! empty($post['cpt'][0])) |
| 76 | { |
| 77 | $selected_post_type = $post['cpt'][0]; |
| 78 | } |
| 79 | ?> |
| 80 | |
| 81 | <input type="hidden" name="selected_post_type" value="<?php echo esc_attr($selected_post_type); ?>"/> |
| 82 | <input type="hidden" name="export_type" value="<?php echo esc_attr($post['export_type']); ?>"/> |
| 83 | <input type="hidden" name="taxonomy_to_export" value="<?php echo esc_attr($post['taxonomy_to_export']);?>"> |
| 84 | <input type="hidden" name="wpml_lang" value="<?php echo esc_attr($post['wpml_lang']);?>" /> |
| 85 | <input type="hidden" id="export_variations" name="export_variations" value="<?php echo esc_attr(XmlExportEngine::getProductVariationMode());?>" /> |
| 86 | <input type="hidden" name="record-count" class="wpae-record-count" value="0" /> |
| 87 | <input type="hidden" name="sub_post_type_to_export" value="<?php echo esc_attr($post['sub_post_type_to_export']);?>"> |
| 88 | |
| 89 | <?php XmlExportFiltering::render_filtering_block( $engine, $isWizard, $post ); ?> |
| 90 | |
| 91 | <?php include_once PMXE_ROOT_DIR . '/views/admin/export/options/settings.php'; ?> |
| 92 | |
| 93 | <p class="wpallexport-submit-buttons" style="text-align: center;"> |
| 94 | <?php wp_nonce_field('update-export', '_wpnonce_update-export') ?> |
| 95 | <input type="hidden" name="is_confirmed" value="1" /> |
| 96 | |
| 97 | <a href="<?php echo esc_url(apply_filters('pmxi_options_back_link', add_query_arg('id', $item->id, add_query_arg(['action'=>'template','_wpnonce_template' => wp_create_nonce('template')], $this->baseUrl)), $isWizard)); ?>" class="back rad3"><?php esc_html_e('Edit Template', 'wp-all-export') ?></a> |
| 98 | <?php if (empty(PMXE_Plugin::$session->found_posts)):?> |
| 99 | <input type="submit" class="button wpallexport-large-button confirm_and_run_bottom" value="<?php esc_html_e('Save Export Configuration', 'wp-all-export') ?>" /> |
| 100 | <?php else:?> |
| 101 | <input type="submit" class="button wpallexport-large-button confirm_and_run_bottom" value="<?php esc_html_e('Confirm & Run Export', 'wp-all-export') ?>" /> |
| 102 | <?php endif;?> |
| 103 | </p> |
| 104 | |
| 105 | |
| 106 | </form> |
| 107 | |
| 108 | <div class="wpallexport-display-columns wpallexport-margin-top-forty"> |
| 109 | <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- plugin-owned filter output; callback in filters/wpallexport_footer.php returns trusted static HTML |
| 110 | echo apply_filters('wpallexport_footer', ''); ?> |
| 111 | </div> |
| 112 | |
| 113 | </td> |
| 114 | </tr> |
| 115 | </table> |
| 116 | |
| 117 | </div> |
| 118 | |
| 119 | <div class="wpallexport-overlay"></div> |
| 120 |