PluginProbe ʕ •ᴥ•ʔ
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / 2.13
WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets v2.13
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 / index.php
wp-all-import / views / admin / import Last commit date
element.php 14 years ago element_after.php 14 years ago error.php 14 years ago evaluate.php 14 years ago index.php 14 years ago options.php 14 years ago preview.php 14 years ago process-complete.php 14 years ago process.php 14 years ago tag.php 14 years ago template.php 14 years ago
index.php
107 lines
1 <table class="layout">
2 <tr>
3 <td class="left">
4 <h2><?php _e('Import XML/CSV - Step 1: Choose Your File', 'pmxi_plugin') ?><br/><span class="taglines"><?php _e('choose which CSV or XML file you want to import', 'pmxi_plugin') ?></span></h2>
5 <hr />
6
7 <?php if ($this->errors->get_error_codes()): ?>
8 <?php $this->error() ?>
9 <?php endif ?>
10
11 <form method="post" class="choose-file no-enter-submit" enctype="multipart/form-data" autocomplete="off">
12 <input type="hidden" name="is_submitted" value="1" />
13 <?php wp_nonce_field('upload-xml', '_wpnonce_upload-xml') ?>
14
15 <div class="file-type-container">
16 <h3>
17 <input type="radio" id="type_upload" name="type" value="upload" <?php echo 'upload' == $post['type'] ? 'checked="checked"' : '' ?> />
18 <label for="type_upload"><?php _e('Upload XML/CSV File From Your Computer', 'pmxi_plugin') ?></label>
19 </h3>
20 <div class="file-type-options">
21 <input type="file" class="regular-text" name="upload" />
22 <div class="note"><strong><?php _e('Warning', 'pmxi_plugin') ?></strong>: <?php printf(__('Your host allows a maximum filesize of <strong>%sB</strong> for uploads', 'pmxi_plugin'), ini_get('upload_max_filesize')) ?></div>
23 </div>
24 </div>
25 <div class="file-type-container">
26 <h3>
27 <input type="radio" id="type_url" name="type" value="url" <?php echo 'url' == $post['type'] ? 'checked="checked"' : '' ?> />
28 <label for="type_url"><?php _e('Get XML/CSV File From URL', 'pmxi_plugin') ?></label>
29 </h3>
30 <div class="file-type-options">
31 <input type="text" class="regular-text" name="url" value="<?php echo esc_attr($post['url']) ?>" />
32 </div>
33 </div>
34 <div class="file-type-container">
35 <h3>
36 <input type="radio" id="type_ftp" name="type" value="ftp" <?php echo 'ftp' == $post['type'] ? 'checked="checked"' : '' ?> />
37 <label for="type_ftp"><?php _e('Get XML/CSV File Via FTP', 'pmxi_plugin') ?>*</label>
38 </h3>
39 <div class="file-type-options">
40 <input type="text" class="regular-text" name="ftp[url]" value="<?php echo esc_attr($post['ftp']['url']) ?>" /><br />
41 <input type="text" name="ftp[user]" title="username" /><strong>:</strong><input type="password" name="ftp[pass]" title="passowrd" />
42 </div>
43 </div>
44 <div class="file-type-container">
45 <h3>
46 <input type="radio" id="type_file" name="type" value="file" <?php echo 'file' == $post['type'] ? 'checked="checked"' : '' ?> />
47 <label for="type_file"><?php _e('Get XML/CSV File On This Server', 'pmxi_plugin') ?>*</label>
48 </h3>
49 <div class="file-type-options">
50 <input type="text" id="__FILE_SOURCE" class="regular-text autocomplete" name="file" value="<?php echo esc_attr($post['file']) ?>" />
51 <?php
52 $local_files = array_merge(
53 PMXI_Helper::safe_glob(PMXI_Plugin::ROOT_DIR . '/upload/*.xml', PMXI_Helper::GLOB_RECURSE),
54 PMXI_Helper::safe_glob(PMXI_Plugin::ROOT_DIR . '/upload/*.gz', PMXI_Helper::GLOB_RECURSE),
55 PMXI_Helper::safe_glob(PMXI_Plugin::ROOT_DIR . '/upload/*.csv', PMXI_Helper::GLOB_RECURSE)
56 );
57 sort($local_files);
58 ?>
59 <script type="text/javascript">
60 __FILE_SOURCE = <?php echo json_encode($local_files) ?>;
61 </script>
62 <div class="note"><?php printf(__('Upload files to <strong>%s</strong> and they will appear in this list', 'pmxi_plugin'), PMXI_Plugin::ROOT_DIR . '/upload/') ?></div>
63 </div>
64 </div>
65 <?php if ($history->count()): ?>
66 <div class="file-type-container">
67 <h3>
68 <input type="radio" id="type_reimport" name="type" value="reimport" <?php echo 'reimport' == $post['type'] ? 'checked="checked"' : '' ?> />
69 <label for="type_reimport"><?php _e('Get Previously Imported XML or CSV', 'pmxi_plugin') ?></label>
70 </h3>
71 <div class="file-type-options">
72 <input type="text" id="__REIMPORT_SOURCE" class="regular-text autocomplete" name="reimport" value="<?php echo esc_attr($post['reimport']) ?>" readonly="readonly" />
73 <?php
74 $reimports = array();
75 foreach ($history as $file) $reimports[] = '#' . $file['id'] . ': ' . $file['name'] . __(' on ', 'pmxi_plugin') . mysql2date('Y/m/d', $file['registered_on']) . ' - ' . preg_replace('%^(\w+://[^:]+:)[^@]+@%', '$1*****@', $file['path']);
76 ?>
77 <script type="text/javascript">
78 __REIMPORT_SOURCE = <?php echo json_encode($reimports) ?>;
79 </script>
80 </div>
81 </div>
82 <?php endif ?>
83
84 <div class="file-type-container">
85 <?php if ($imports->count()): ?>
86 <div class="input">
87 <input type="checkbox" id="is_update_previous" name="is_update_previous" class="switcher" disabled="disabled"/>
88 <label for="is_update_previous"><?php _e('Update Previous Import', 'pmxi_plugin') ?></label>
89 </div>
90 <a href="http://www.wpallimport.com/upgrade-to-pro?from=upi" target="_blank">Upgrade to pro to update previous imports.</a>
91 <?php endif ?>
92 <p class="submit-buttons">
93 <input type="hidden" name="is_submitted" value="1" />
94 <?php wp_nonce_field('choose-file', '_wpnonce_choose-file') ?>
95 <input type="submit" class="button-primary" value="<?php _e('Continue', 'pmxi_plugin') ?> &gt;&gt;" />
96 </p>
97 </div>
98 <br />
99 <table><tr><td class="note"><b>*</b>&nbsp;</td><td class="note"><?php _e('These options support shell wildcard patterns<a href="#help" class="help" title="A shell wildcard pattern is a string used by *nix systems for referencing several files at once. The most common case is using asterisk symbol in the place of any set of characters, e.g. `*.xml` would correspond to any file with `xml` extension.">?</a> which enables linking several XML files to the same import. The option is useful when the exact source path is not known upfront or is going to change, e.g. some content providers submit XML files each time with a new name.<p> CSV files are converted to XML using YQL. YQL is a service hosted by Yahoo. For this to work, WP All Import must be installed on a public-facing server (not localhost) and the /wp-content/uploads/wpallimport/ folder must be accessible to Yahoo over HTTP.</p>', 'pmxi_plugin') ?></td></tr></table>
100 </form>
101 </td>
102 <td class="right">
103 &nbsp;
104 </td>
105 </tr>
106 </table>
107