PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 3.2.2
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v3.2.2
4.1.1 3.9.5 3.9.6 4.0.0 4.0.1 4.1.0 trunk 2.12 2.13 2.14 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9 3.7.0 3.7.1 3.7.2 3.7.3 3.7.3-beta-1.0 3.7.4 3.7.4-beta-1.0 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4
wp-all-import / views / admin / import / confirm.php
wp-all-import / views / admin / import Last commit date
options 11 years ago template 11 years ago confirm.php 11 years ago element.php 11 years ago error.php 11 years ago evaluate.php 11 years ago evaluate_variations.php 11 years ago index.php 11 years ago options.php 11 years ago preview.php 11 years ago preview_images.php 11 years ago preview_prices.php 11 years ago preview_taxonomies.php 11 years ago process-complete.php 11 years ago process.php 11 years ago tag.php 11 years ago template.php 11 years ago warning.php 11 years ago
confirm.php
312 lines
1 <?php $is_new_import = ($isWizard or $import->imported + $import->skipped == $import->count or $import->imported + $import->skipped == 0 or $import->options['is_import_specified'] or $import->triggered); ?>
2
3 <h2 class="wpallimport-wp-notices"></h2>
4
5 <div class="wpallimport-wrapper wpallimport-step-5">
6
7 <div class="wpallimport-wrapper">
8 <div class="wpallimport-header">
9 <div class="wpallimport-logo"></div>
10 <div class="wpallimport-title">
11 <p><?php _e('WP All Import', 'pmxi_plugin'); ?></p>
12 <h2><?php _e('Import XML / CSV', 'pmxi_plugin'); ?></h2>
13 </div>
14 <div class="wpallimport-links">
15 <a href="http://www.wpallimport.com/support/" target="_blank"><?php _e('Support', 'pmxi_plugin'); ?></a> | <a href="http://www.wpallimport.com/documentation/" target="_blank"><?php _e('Documentation', 'pmxi_plugin'); ?></a>
16 </div>
17 </div>
18 <div class="clear"></div>
19 </div>
20
21 <div class="ajax-console">
22 <?php if ($this->errors->get_error_codes()): ?>
23 <?php $this->error() ?>
24 <?php endif ?>
25 <?php if ($this->warnings->get_error_codes()): ?>
26 <?php $this->warning() ?>
27 <?php endif ?>
28 </div>
29
30 <?php $custom_type = get_post_type_object( PMXI_Plugin::$session->custom_type ); ?>
31
32 <div class="wpallimport-content-section" style="padding: 30px; overflow: hidden;">
33 <div class="wpallimport-ready-to-go">
34
35 <?php if ($is_new_import):?>
36 <h3><?php _e('Your file is all set up!', 'pmxi_plugin'); ?></h3>
37 <?php else: ?>
38 <h3><?php _e('This import did not finish successfuly last time it was run.', 'pmxi_plugin'); ?></h3>
39 <?php endif; ?>
40
41 <?php if ($is_new_import):?>
42 <h4><?php _e('Check the settings below, then click the green button to run the import.', 'pmxi_plugin'); ?></h4>
43 <?php else: ?>
44 <h4><?php _e('You can attempt to continue where it left off.', 'pmxi_plugin'); ?></h4>
45 <?php endif; ?>
46
47 </div>
48 <?php if ($is_new_import):?>
49 <form class="confirm <?php echo ! $isWizard ? 'edit' : '' ?>" method="post" style="float:right;">
50 <?php wp_nonce_field('confirm', '_wpnonce_confirm') ?>
51 <input type="hidden" name="is_confirmed" value="1" />
52 <input type="submit" class="rad10" value="<?php _e('Confirm & Run Import', 'pmxi_plugin') ?>" />
53 </form>
54 <?php else: ?>
55 <form class="confirm <?php echo ! $isWizard ? 'edit' : '' ?>" method="post" style="float: right;">
56 <?php wp_nonce_field('confirm', '_wpnonce_confirm') ?>
57 <input type="hidden" name="is_confirmed" value="1" />
58 <!--input type="hidden" name="is_continue" value="1" /-->
59 <div class="input wpallimport-is-continue">
60 <div class="input">
61 <input type="radio" name="is_continue" value="yes" checked="checked" id="is_continue_yes"/>
62 <label for="is_continue_yes"><?php _e('Continue from the last run', 'pmxi_plugin'); ?></label>
63 </div>
64 <div class="input">
65 <input type="radio" name="is_continue" value="no" id="is_continue_no"/>
66 <label for="is_continue_no"><?php _e('Run from the beginning', 'pmxi_plugin'); ?></label>
67 </div>
68 </div>
69 <input type="submit" class="rad10" value="<?php _e('Continue Import', 'pmxi_plugin') ?>" style="margin-left: 0px; float: right;"/>
70 <!--div class="input" style="margin-top:20px;">
71 <a href="<?php echo add_query_arg(array('id' => $import->id, 'action' => 'update', 'continue' => 'no'), $this->baseUrl); ?>" id="entire_run"><?php _e('Run entire import from the beginning', 'pmxi_plugin'); ?></a>
72 </div-->
73 </form>
74 <?php endif; ?>
75 </div>
76
77 <div class="clear"></div>
78
79 <table class="wpallimport-layout confirm">
80 <tr>
81 <td class="left">
82
83 <?php if ( $is_new_import ):?>
84
85 <?php $max_execution_time = ini_get('max_execution_time');?>
86
87 <div class="wpallimport-section">
88 <div class="wpallimport-content-section">
89 <div class="wpallimport-collapsed-header" style="padding-left: 30px;">
90 <h3 style="color: #425e99;"><?php _e('Import Summary', 'pmxi_plugin'); ?></h3>
91 </div>
92 <div class="wpallimport-collapsed-content" style="padding: 15px 25px 25px;">
93
94 <!-- Warnings -->
95 <?php if ($max_execution_time != -1): ?>
96 <p><?php printf(__('Your max_execution_time is %s seconds', 'pmxi_plugin'), $max_execution_time); ?></p>
97 <?php endif;?>
98
99 <!-- General -->
100 <?php
101 $path = $source['path'];
102 $import_type = (!empty($source['type'])) ? $source['type'] : $import['type'];
103 if ( in_array($import_type, array('upload'))):
104 $path_parts = pathinfo($source['path']);
105 if ( ! empty($path_parts['dirname'])){
106 $path_all_parts = explode('/', $path_parts['dirname']);
107 $dirname = array_pop($path_all_parts);
108 if ( pmxi_isValidMd5($dirname)){
109 $path = str_replace($dirname, preg_replace('%^(.{3}).*(.{3})$%', '$1***$2', $dirname), str_replace('temp/', '', $source['path']));
110 }
111 }
112 endif;
113 ?>
114 <p><?php printf(__('WP All Import will import the file <span style="color:#40acad;">%s</span>, which is <span style="color:#000; font-weight:bold;">%s</span>', 'pmxi_plugin'), $path, (isset($locfilePath)) ? human_filesize(filesize($locfilePath)) : __('undefined', 'pmxi_plugin')); ?></p>
115
116 <?php if ( strpos($xpath, '[') !== false){ ?>
117 <p><?php printf(__('WP All Import will process the records matching the XPath expression: <span style="color:#46ba69; font-weight:bold;">%s</span>', 'pmxi_plugin'), $xpath); ?></p>
118 <?php } elseif ($post['delimiter']) { ?>
119 <p><?php printf(__('WP All Import will process <span style="color:#46ba69; font-weight:bold;">%s</span> rows in your file', 'pmxi_plugin'), $count); ?></p>
120 <?php } else { ?>
121 <p><?php printf(__('WP All Import will process all %s <span style="color:#46ba69; font-weight:bold;">&lt;%s&gt;</span> records in your file', 'pmxi_plugin'), $count, $source['root_element']); ?></p>
122 <?php } ?>
123
124 <?php if ( $post['is_import_specified']): ?>
125 <p><?php printf(__('WP All Import will process only specified records: %s', 'pmxi_plugin'), $post['import_specified']); ?></p>
126 <?php endif;?>
127
128 <!-- Record Matching -->
129 <?php $custom_type = get_post_type_object( $post['custom_type'] ); ?>
130
131 <?php if ( "new" == $post['wizard_type']): ?>
132
133 <p><?php printf(__('Your unique key is <span style="color:#000; font-weight:bold;">%s</span>', 'pmxi_plugin'), $post['unique_key']); ?></p>
134
135 <?php if ( ! $isWizard ): ?>
136
137 <p><?php printf(__('%ss previously imported by this import (ID: %s) with the same unique key will be updated.', 'pmxi_plugin'), $custom_type->labels->singular_name, $import->id); ?></p>
138
139 <?php if ( $post['is_delete_missing'] and ! $post['is_update_missing_cf'] and ! $post['set_missing_to_draft']): ?>
140 <p><?php printf(__('%ss previously imported by this import (ID: %s) that aren\'t present for this run of the import will be deleted.', 'pmxi_plugin'), $custom_type->labels->singular_name, $import->id); ?></p>
141 <?php endif; ?>
142
143 <?php if ( $post['is_delete_missing'] and $post['set_missing_to_draft']): ?>
144 <p><?php printf(__('%ss previously imported by this import (ID: %s) that aren\'t present for this run of the import will be set to draft.', 'pmxi_plugin'), $custom_type->labels->singular_name, $import->id); ?></p>
145 <?php endif; ?>
146
147 <?php if ( $post['create_new_records']): ?>
148 <p><?php printf(__('Records with unique keys that don\'t match any unique keys from %ss created by previous runs of this import (ID: %s) will be created.', 'pmxi_plugin'), $custom_type->labels->singular_name, $import->id); ?></p>
149 <?php endif; ?>
150
151 <?php endif; ?>
152
153 <?php else: ?>
154
155 <?php
156 $criteria = '';
157 if ( 'title' == $post['duplicate_indicator']) $criteria = 'has the same Title';
158 if ( 'content' == $post['duplicate_indicator']) $criteria = 'has the same Content';
159 if ( 'custom field' == $post['duplicate_indicator']) $criteria = 'has Custom Field named "'. $post['custom_duplicate_name'] .'" with value = ' . $post['custom_duplicate_value'];
160 ?>
161 <p><?php printf(__('WP All Import will merge data into existing %ss, matching the following criteria: %s', 'pmxi_plugin'), $custom_type->labels->singular_name, $criteria); ?></p>
162
163 <?php if ( "no" == $post['is_keep_former_posts'] and "yes" == $post['update_all_data']){ ?>
164 <p><?php _e('Existing data will be updated with the data specified in this import.', 'pmxi_plugin'); ?></p>
165 <?php } elseif ("no" == $post['is_keep_former_posts'] and "no" == $post['update_all_data']){?>
166 <div>
167 <p><?php printf(__('Next %s data will be updated, <strong>all other data will be left alone</strong>', 'pmxi_plugin'), $custom_type->labels->singular_name); ?></p>
168 <ul style="padding-left: 35px;">
169 <?php if ( $post['is_update_status']): ?>
170 <li> <?php _e('status', 'pmxi_plugin'); ?></li>
171 <?php endif; ?>
172 <?php if ( $post['is_update_title']): ?>
173 <li> <?php _e('title', 'pmxi_plugin'); ?></li>
174 <?php endif; ?>
175 <?php if ( $post['is_update_slug']): ?>
176 <li> <?php _e('slug', 'pmxi_plugin'); ?></li>
177 <?php endif; ?>
178 <?php if ( $post['is_update_content']): ?>
179 <li> <?php _e('content', 'pmxi_plugin'); ?></li>
180 <?php endif; ?>
181 <?php if ( $post['is_update_excerpt']): ?>
182 <li> <?php _e('excerpt', 'pmxi_plugin'); ?></li>
183 <?php endif; ?>
184 <?php if ( $post['is_update_dates']): ?>
185 <li> <?php _e('dates', 'pmxi_plugin'); ?></li>
186 <?php endif; ?>
187 <?php if ( $post['is_update_menu_order']): ?>
188 <li> <?php _e('menu order', 'pmxi_plugin'); ?></li>
189 <?php endif; ?>
190 <?php if ( $post['is_update_parent']): ?>
191 <li> <?php _e('parent post', 'pmxi_plugin'); ?></li>
192 <?php endif; ?>
193 <?php if ( $post['is_update_attachments']): ?>
194 <li> <?php _e('attachments', 'pmxi_plugin'); ?></li>
195 <?php endif; ?>
196 <?php if ( ! empty($post['is_update_acf'])): ?>
197 <li>
198 <?php
199 switch($post['update_acf_logic']){
200 case 'full_update':
201 _e('all advanced custom fields', 'pmxi_plugin');
202 break;
203 case 'mapped':
204 _e('only ACF presented in import options', 'pmxi_plugin');
205 break;
206 case 'only':
207 printf(__('only these ACF : %s', 'pmxi_plugin'), $post['acf_only_list']);
208 break;
209 case 'all_except':
210 printf(__('all ACF except these: %s', 'pmxi_plugin'), $post['acf_except_list']);
211 break;
212 } ?>
213 </li>
214 <?php endif; ?>
215 <?php if ( ! empty($post['is_update_images'])): ?>
216 <li>
217 <?php
218 switch($post['update_images_logic']){
219 case 'full_update':
220 _e('old images will be updated with new', 'pmxi_plugin');
221 break;
222 case 'add_new':
223 _e('only new images will be added', 'pmxi_plugin');
224 break;
225 } ?>
226 </li>
227 <?php endif; ?>
228 <?php if ( ! empty($post['is_update_custom_fields'])): ?>
229 <li>
230 <?php
231 switch($post['update_custom_fields_logic']){
232 case 'full_update':
233 _e('all custom fields', 'pmxi_plugin');
234 break;
235 case 'only':
236 printf(__('only these custom fields : %s', 'pmxi_plugin'), $post['custom_fields_only_list']);
237 break;
238 case 'all_except':
239 printf(__('all cusom fields except these: %s', 'pmxi_plugin'), $post['custom_fields_except_list']);
240 break;
241 } ?>
242 </li>
243 <?php endif; ?>
244 <?php if ( ! empty($post['is_update_categories'])): ?>
245 <li>
246 <?php
247 switch($post['update_categories_logic']){
248 case 'full_update':
249 _e('remove existing taxonomies, add new taxonomies', 'pmxi_plugin');
250 break;
251 case 'add_new':
252 _e('only add new', 'pmxi_plugin');
253 break;
254 case 'only':
255 printf(__('update only these taxonomies: %s , leave the rest alone', 'pmxi_plugin'), $post['taxonomies_only_list']);
256 break;
257 case 'all_except':
258 printf(__('leave these taxonomies: %s alone, update all others', 'pmxi_plugin'), $post['taxonomies_except_list']);
259 break;
260 } ?>
261 </li>
262 <?php endif; ?>
263 </ul>
264 </div>
265 <?php } ?>
266 <?php if ( $post['create_new_records']): ?>
267 <p><?php printf(__('New %ss will be created from records that don\'t match the above criteria.', 'pmxi_plugin'), $custom_type->labels->singular_name); ?></p>
268 <?php endif; ?>
269 <?php endif; ?>
270
271 <!-- Import Performance -->
272 <?php if ( "default" == $post['import_processing']): ?>
273 <p><?php _e('High-Speed, Small File Processing enabled. Your import will fail if it takes longer than your server\'s max_execution_time.', 'pmxi_plugin'); ?></p>
274 <?php else: ?>
275 <p><?php printf(__('Piece By Piece Processing enabled. %s records will be processed each iteration. If it takes longer than your server\'s max_execution_time to process %s records, your import will fail.', 'pmxi_plugin'), $post['records_per_request'], $post['records_per_request']); ?></p>
276 <?php endif; ?>
277
278 <?php if ($post['chuncking'] and "default" != $post['import_processing']):?>
279 <p><?php printf(__('Your file will be split into %s records chunks before processing.', 'pmxi_plugin'), PMXI_Plugin::getInstance()->getOption('large_feed_limit')); ?></p>
280 <?php endif; ?>
281
282 <?php if ($post['is_fast_mode']):?>
283 <p><?php _e('do_action calls will be disabled in wp_insert_post and wp_insert_attachment during the import.', 'pmxi_plugin'); ?></p>
284 <?php endif; ?>
285
286 </div>
287 </div>
288 </div>
289
290 <?php endif; ?>
291
292 </td>
293 </tr>
294 </table>
295 <?php if ($is_new_import):?>
296 <form class="confirm <?php echo ! $isWizard ? 'edit' : '' ?>" method="post">
297 <?php wp_nonce_field('confirm', '_wpnonce_confirm') ?>
298 <input type="hidden" name="is_confirmed" value="1" />
299 <input type="submit" class="rad10" value="<?php _e('Confirm & Run Import', 'pmxi_plugin') ?>" />
300 <p>
301 <?php if ($isWizard): ?>
302 <a href="<?php echo apply_filters('pmxi_options_back_link', add_query_arg('action', 'options', $this->baseUrl), $isWizard); ?>"><?php _e('or go back to Step 4', 'pmxi_plugin') ?></a>
303 <?php else:?>
304 <a href="<?php echo apply_filters('pmxi_options_back_link', remove_query_arg('id', remove_query_arg('action', $this->baseUrl)), $isWizard); ?>"><?php _e('or go back to Manage Imports', 'pmxi_plugin') ?></a>
305 <?php endif; ?>
306 </p>
307 </form>
308 <?php endif; ?>
309
310 <a href="http://soflyy.com/" target="_blank" class="wpallimport-created-by"><?php _e('Created by', 'pmxi_plugin'); ?> <span></span></a>
311
312 </div>