options
3 days ago
template
1 month ago
confirm.php
1 month ago
element.php
1 month ago
error.php
1 month ago
evaluate.php
1 month ago
evaluate_variations.php
1 month ago
filters.php
1 month ago
full-preview-modal.php
1 month ago
index.php
1 month ago
options.php
1 month ago
preview.php
1 month ago
preview_images.php
1 month ago
preview_prices.php
1 month ago
preview_taxonomies.php
1 month ago
process-complete.php
1 month ago
process.php
1 month ago
tag.php
1 month ago
template.php
1 month ago
warning.php
1 month ago
options.php
144 lines
| 1 | <?php |
| 2 | // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals |
| 3 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 4 | $isWizard = $this->isWizard; |
| 5 | $baseUrl = $this->baseUrl; |
| 6 | ?> |
| 7 | |
| 8 | <input type="hidden" id="selected_post_type" value="<?php echo (!empty($post['custom_type'])) ? esc_attr($post['custom_type']) : '';?>"> |
| 9 | <input type="hidden" id="selected_type" value="<?php echo (!empty($post['type'])) ? esc_attr($post['type']) : '';?>"> |
| 10 | |
| 11 | <div class="wpallimport-step-4"> |
| 12 | |
| 13 | <h2 class="wpallimport-wp-notices"></h2> |
| 14 | |
| 15 | <div class="wpallimport-wrapper"> |
| 16 | <h2 class="wpallimport-wp-notices"></h2> |
| 17 | <div class="wpallimport-header"> |
| 18 | <div class="wpallimport-logo"></div> |
| 19 | <div class="wpallimport-title"> |
| 20 | <h2><?php esc_html_e('Import Settings', 'wp-all-import'); ?></h2> |
| 21 | </div> |
| 22 | <?php echo wp_kses_post( apply_filters('wpallimport_links_block', '') );?> |
| 23 | </div> |
| 24 | <div class="clear"></div> |
| 25 | </div> |
| 26 | |
| 27 | <?php $visible_sections = apply_filters('pmxi_visible_options_sections', array('reimport', 'settings'), $post['custom_type']); ?> |
| 28 | |
| 29 | <table class="wpallimport-layout"> |
| 30 | <tr> |
| 31 | <td class="left"> |
| 32 | |
| 33 | <?php do_action('pmxi_options_header', $isWizard, $post); ?> |
| 34 | |
| 35 | <?php |
| 36 | $is_valid_root_element = true; |
| 37 | $error_codes = $this->warnings->get_error_codes(); |
| 38 | if ( ! empty($error_codes) and is_array($error_codes) and in_array('root-element-validation', $error_codes)) |
| 39 | { |
| 40 | $is_valid_root_element = false; |
| 41 | } |
| 42 | ?> |
| 43 | |
| 44 | <div class="ajax-console"> |
| 45 | <?php if ($this->errors->get_error_codes()): ?> |
| 46 | <?php $this->error() ?> |
| 47 | <?php endif ?> |
| 48 | <?php if ($this->warnings->get_error_codes()): ?> |
| 49 | <?php $this->warning() ?> |
| 50 | <?php endif ?> |
| 51 | |
| 52 | <?php |
| 53 | wp_all_import_template_notifications( $post ); |
| 54 | ?> |
| 55 | </div> |
| 56 | |
| 57 | <div class="rad4 first-step-errors error-no-root-element" <?php if ($is_valid_root_element === false):?>style="display:block;"<?php endif; ?>> |
| 58 | <div class="wpallimport-notify-wrapper"> |
| 59 | <div class="error-headers exclamation"> |
| 60 | <h3><?php esc_html_e('There\'s a problem with your import file', 'wp-all-import');?></h3> |
| 61 | <h4 style="font-size:18px;"><?php esc_html_e("It has changed and is not compatible with this import template.", "wp-all-import"); ?></h4> |
| 62 | </div> |
| 63 | </div> |
| 64 | <a class="button wpallimport-large-button wpallimport-notify-read-more" href="http://www.wpallimport.com/documentation/troubleshooting/problems-with-import-files/#invalid?utm_source=import-plugin-free&utm_medium=error&utm_campaign=import-file-changed" target="_blank"><?php esc_html_e('Read More', 'wp-all-import');?></a> |
| 65 | </div> |
| 66 | |
| 67 | <form class="<?php echo ! $isWizard ? 'edit' : 'options' ?>" method="post" enctype="multipart/form-data" autocomplete="off" <?php echo ! $isWizard ? 'style="overflow:visible;"' : '' ?>> |
| 68 | |
| 69 | <?php $post_type = $post['custom_type']; ?> |
| 70 | |
| 71 | <?php if ( ! $this->isWizard): ?> |
| 72 | |
| 73 | <?php include( 'options/_import_file.php' ); ?> |
| 74 | |
| 75 | <?php endif; ?> |
| 76 | |
| 77 | <div class="options"> |
| 78 | <?php |
| 79 | |
| 80 | if ( in_array('reimport', $visible_sections)) include( 'options/_reimport_template.php' ); |
| 81 | do_action('pmxi_options_tab', $isWizard, $post); |
| 82 | |
| 83 | if(!isset($import)) { |
| 84 | $import = $update_previous; |
| 85 | } |
| 86 | include( 'options/scheduling/_scheduling_ui.php' ); |
| 87 | |
| 88 | if ( in_array('settings', $visible_sections)) include( 'options/_settings_template.php' ); |
| 89 | |
| 90 | include( 'options/_buttons_template.php' ); |
| 91 | |
| 92 | ?> |
| 93 | </div> |
| 94 | |
| 95 | </form> |
| 96 | |
| 97 | <div class="wpallimport-display-columns wpallimport-margin-top-forty"> |
| 98 | <?php echo wp_kses_post( apply_filters('wpallimport_footer', '') ); ?> |
| 99 | </div> |
| 100 | |
| 101 | </td> |
| 102 | <td class="right template-sidebar "> |
| 103 | <div style="position:relative;"> |
| 104 | <?php $this->tag( false ); ?> |
| 105 | </div> |
| 106 | </td> |
| 107 | </tr> |
| 108 | </table> |
| 109 | |
| 110 | </div> |
| 111 | |
| 112 | <div id="record_matching_pointer" style="display:none;"> |
| 113 | |
| 114 | <h3><?php esc_html_e("Record Matching", "wp-all-import");?></h3> |
| 115 | |
| 116 | <p> |
| 117 | <b><?php esc_html_e("Record Matching is how WP All Import matches records in your file with posts that already exist WordPress.","wp-all-import");?></b> |
| 118 | </p> |
| 119 | |
| 120 | <p> |
| 121 | <?php esc_html_e("Record Matching is most commonly used to tell WP All Import how to match up records in your file with posts WP All Import has already created on your site, so that if your file is updated with new data, WP All Import can update your posts accordingly.","wp-all-import");?> |
| 122 | </p> |
| 123 | |
| 124 | <hr /> |
| 125 | |
| 126 | <p><?php esc_html_e("AUTOMATIC RECORD MATCHING","wp-all-import");?></p> |
| 127 | |
| 128 | <p> |
| 129 | <?php esc_html_e("Automatic Record Matching allows WP All Import to update records that were imported or updated during the last run of this same import.","wp-all-import");?> |
| 130 | </p> |
| 131 | |
| 132 | <p> |
| 133 | <?php esc_html_e("Your unique key must be UNIQUE for each record in your feed. Make sure you get it right - you can't change it later. You'll have to re-create your import.","wp-all-import");?> |
| 134 | </p> |
| 135 | |
| 136 | <hr /> |
| 137 | |
| 138 | <p><?php esc_html_e("MANUAL RECORD MATCHING", "wp-all-import");?></p> |
| 139 | |
| 140 | <p> |
| 141 | <?php esc_html_e("Manual record matching allows WP All Import to update any records, even records that were not imported with WP All Import, or are part of a different import.","wp-all-import");?> |
| 142 | </p> |
| 143 | |
| 144 | </div> |