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 / template.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
template.php
191 lines
1 <h2 class="wpallimport-wp-notices"></h2>
2
3 <form class="wpallimport-template <?php echo ! $this->isWizard ? 'edit' : '' ?> wpallimport-step-3" method="post">
4
5 <div class="wpallimport-wrapper">
6 <div class="wpallimport-header">
7 <div class="wpallimport-logo"></div>
8 <div class="wpallimport-title">
9 <p><?php _e('WP All Import', 'pmxi_plugin'); ?></p>
10 <h2><?php _e('Import XML / CSV', 'pmxi_plugin'); ?></h2>
11 </div>
12 <div class="wpallimport-links">
13 <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>
14 </div>
15 </div>
16 <div class="clear"></div>
17 </div>
18
19 <?php $visible_sections = apply_filters('pmxi_visible_template_sections', array('caption', 'main', 'taxonomies', 'cf', 'featured', 'other', 'nested'), $post['custom_type']); ?>
20
21 <table class="wpallimport-layout">
22 <tr>
23 <td class="left">
24
25 <?php do_action('pmxi_template_header', $this->isWizard, $post); ?>
26
27 <?php if ($this->errors->get_error_codes()): ?>
28 <?php $this->error() ?>
29 <?php endif ?>
30 <?php if ($this->warnings->get_error_codes()): ?>
31 <?php $this->warning() ?>
32 <?php endif ?>
33
34 <?php $post_type = $post['custom_type'];?>
35
36 <?php if ( in_array('caption', $visible_sections) ): ?>
37
38 <div class="wpallimport-collapsed wpallimport-section">
39 <div class="wpallimport-content-section" style="overflow: hidden; padding-bottom: 0;">
40 <div class="wpallimport-collapsed-header" style="margin-bottom: 15px;">
41 <h3><?php _e('Title & Content', 'pmxi_plugin'); ?></h3>
42 </div>
43 <div class="wpallimport-collapsed-content" style="padding: 0;">
44
45 <div style="padding: 15px 25px 65px;">
46 <div id="titlediv" style="margin-bottom:20px;">
47 <div id="titlewrap">
48 <input id="wpallimport-title" class="widefat" type="text" name="title" value="<?php echo esc_attr($post['title']) ?>" placeholder="<?php _e('Drag & drop any element on the right to set the title.', 'pmxi_plugin'); ?>"/>
49 </div>
50 </div>
51
52 <div id="poststuff" style="margin-top:-25px;">
53 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
54
55 <?php wp_editor($post['content'], 'content', array(
56 'teeny' => true,
57 'editor_class' => 'wpallimport-plugin-editor',
58 'media_buttons' => false,
59 'editor_height' => 200));
60 ?>
61
62 </div>
63 </div>
64
65 <?php if ($post_type != 'page'):?>
66 <div class="template_input">
67 <input type="text" name="post_excerpt" style="width:100%; line-height: 25px;" value="<?php echo esc_attr($post['post_excerpt']) ?>" placeholder="<?php echo ($post_type == 'product' and class_exists('PMWI_Plugin')) ? __('WooCommerce Short Description', 'pmxi_plugin') : __('Excerpt', 'pmxi_plugin'); ?>"/>
68 </div>
69 <?php endif; ?>
70
71 <a class="preview" href="javascript:void(0);" rel="preview"><?php _e('Preview', 'pmxi_plugin'); ?></a>
72 </div>
73
74 <div class="wpallimport-collapsed closed wpallimport-section">
75 <div class="wpallimport-content-section rad0" style="margin:0; border-top:1px solid #ddd; border-bottom: none; border-right: none; border-left: none; background: #f1f2f2;">
76 <div class="wpallimport-collapsed-header">
77 <h3 style="color:#40acad;"><?php _e('Advanced Options','pmxi_plugin');?></h3>
78 </div>
79 <div class="wpallimport-collapsed-content" style="padding: 0;">
80 <div class="wpallimport-collapsed-content-inner">
81 <div class="input pmxi_option">
82 <input type="hidden" name="is_keep_linebreaks" value="0" />
83 <input type="checkbox" id="is_keep_linebreaks" name="is_keep_linebreaks" class="fix_checkbox" value="1" <?php echo $post['is_keep_linebreaks'] ? 'checked="checked"' : '' ?> />
84 <label for="is_keep_linebreaks"><?php _e('Keep line breaks from file', 'pmxi_plugin') ?></label>
85 </div>
86 <div class="input pmxi_option">
87 <input type="hidden" name="is_leave_html" value="0" />
88 <input type="checkbox" id="is_leave_html" name="is_leave_html" class="fix_checkbox" value="1" <?php echo $post['is_leave_html'] ? 'checked="checked"' : '' ?> style="position:relative;"/>
89 <label for="is_leave_html"><?php _e('Decode HTML entities with <b>html_entity_decode</b>', 'pmxi_plugin') ?></label>
90 <a class="wpallimport-help" href="#help" style="position:relative; top:1px;" original-title="If HTML code is showing up in your posts, use this option. You can also use <br /><br /><i>[html_entity_decode({my/xpath})]</i><br /><br /> or <br /><br /><i>[htmlentities({my/xpath})]</i><br /><br /> to decode or encode HTML in your file.">?</a>
91 </div>
92 </div>
93 </div>
94 </div>
95 </div>
96 </div>
97 </div>
98 </div>
99
100 <?php endif; ?>
101
102 <input type="hidden" name="custom_type" value="<?php echo $post['custom_type']; ?>"/>
103 <input type="hidden" name="type" value="<?php echo ($post['custom_type'] == 'page') ? 'page' : 'post'; ?>"/>
104
105 <?php
106
107 if ( in_array('main', $visible_sections) ) do_action('pmxi_extend_options_main', $post_type);
108
109 if ( in_array('featured', $visible_sections) ) {
110 include( 'template/_featured_template.php' );
111 do_action('pmxi_extend_options_featured', $post_type);
112 }
113
114 if ( in_array('cf', $visible_sections) ){
115 include( 'template/_custom_fields_template.php' );
116 do_action('pmxi_extend_options_custom_fields', $post_type);
117 }
118
119 if ( in_array('taxonomies', $visible_sections) ) {
120 include( 'template/_taxonomies_template.php' );
121 do_action('pmxi_extend_options_taxonomies', $post_type);
122 }
123
124 if ( in_array('other', $visible_sections) ){
125 include( 'template/_other_template.php' );
126 do_action('pmxi_extend_options_other', $post_type);
127 }
128
129 /*if ( in_array('nested', $visible_sections) ){
130 include( 'template/_nested_template.php' );
131 do_action('pmxi_extend_options_nested', $post_type);
132 }*/
133
134 ?>
135
136 <hr>
137
138 <div class="input wpallimport-section" style="padding-bottom: 8px; padding-left: 8px;">
139
140 <p style="margin: 11px; float: left;">
141 <input type="checkbox" id="save_template_as" name="save_template_as" class="switcher-horizontal fix_checkbox" value="1" <?php echo ( ! empty($post['save_template_as'])) ? 'checked="checked"' : '' ?> />
142 <label for="save_template_as"><?php _e('Save settings as a template','pmxi_plugin');?></label>
143 </p>
144 <div class="switcher-target-save_template_as" style="float: left;">
145 <input type="text" name="name" placeholder="<?php _e('Template name...', 'pmxi_plugin') ?>" style="vertical-align:middle; line-height: 26px;" value="<?php echo esc_attr($post['name']) ?>" />
146 </div>
147 <?php $templates = new PMXI_Template_List(); ?>
148 <div class="load-template">
149 <select name="load_template" id="load_template" style="padding:2px; width: auto; height: 40px;">
150 <option value=""><?php _e('Load Template...', 'pmxi_plugin') ?></option>
151 <?php foreach ($templates->getBy()->convertRecords() as $t): ?>
152 <option value="<?php echo $t->id ?>"><?php echo $t->name ?></option>
153 <?php endforeach ?>
154 </select>
155 </div>
156
157 </div>
158
159 <hr>
160
161 <div class="wpallimport-submit-buttons">
162
163 <div style="text-align:center; width:100%;">
164 <?php wp_nonce_field('template', '_wpnonce_template'); ?>
165 <input type="hidden" name="is_submitted" value="1" />
166
167 <?php if ($this->isWizard):?>
168 <a href="<?php echo add_query_arg('action', 'element', $this->baseUrl) ?>" class="back rad3" style="float:none;"><?php _e('Back to Step 2', 'pmxi_plugin') ?></a>
169 <?php else: ?>
170 <a href="<?php echo remove_query_arg('id', remove_query_arg('action', $this->baseUrl)); ?>" class="back rad3" style="float:none;"><?php _e('Back to Manage Imports', 'pmxi_plugin') ?></a>
171 <?php endif; ?>
172 <input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e( ($this->isWizard) ? 'Continue to Step 4' : 'Update Template', 'pmxi_plugin') ?>" />
173 </div>
174
175 </div>
176
177 <a href="http://soflyy.com/" target="_blank" class="wpallimport-created-by"><?php _e('Created by', 'pmxi_plugin'); ?> <span></span></a>
178
179 </td>
180 <?php if ($this->isWizard or $this->isTemplateEdit): ?>
181 <td class="right template-sidebar">
182 <div style="position:relative;">
183 <?php $this->tag( false ); ?>
184 </div>
185 </td>
186 <?php endif ?>
187 </tr>
188 </table>
189
190 </form>
191