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 / _other_template.php
wp-all-import / views / admin / import / template Last commit date
_custom_fields_template.php 11 years ago _featured_template.php 11 years ago _nested_template.php 11 years ago _other_template.php 11 years ago _taxonomies_template.php 11 years ago
_other_template.php
167 lines
1 <?php $custom_type = get_post_type_object( $post_type ); ?>
2 <div class="wpallimport-collapsed closed wpallimport-section ">
3 <div class="wpallimport-content-section ">
4 <div class="wpallimport-collapsed-header">
5 <h3><?php printf(__('Other %s Options','pmxi_plugin'), $custom_type->labels->singular_name);?></h3>
6 </div>
7 <div class="wpallimport-collapsed-content" style="padding: 0;">
8 <div class="wpallimport-collapsed-content-inner">
9 <table class="form-table" style="max-width:none;">
10 <tr>
11 <td>
12 <input type="hidden" name="encoding" value="<?php echo ($isWizard) ? PMXI_Plugin::$session->encoding : $post['encoding']; ?>"/>
13 <input type="hidden" name="delimiter" value="<?php echo ($isWizard) ? PMXI_Plugin::$session->is_csv : $post['delimiter']; ?>"/>
14
15 <?php $is_support_post_format = ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) ? true : false; ?>
16
17 <h4><?php _e('Post Status', 'pmxi_plugin') ?></h4>
18 <div class="input">
19 <input type="radio" id="status_publish" name="status" value="publish" <?php echo 'publish' == $post['status'] ? 'checked="checked"' : '' ?> class="switcher"/>
20 <label for="status_publish"><?php _e('Published', 'pmxi_plugin') ?></label>
21 </div>
22 <div class="input">
23 <input type="radio" id="status_draft" name="status" value="draft" <?php echo 'draft' == $post['status'] ? 'checked="checked"' : '' ?> class="switcher"/>
24 <label for="status_draft"><?php _e('Draft', 'pmxi_plugin') ?></label>
25 </div>
26 <div class="input fleft" style="position:relative;width:220px; margin-bottom:15px;">
27 <input type="radio" id="status_xpath" class="switcher" name="status" value="xpath" <?php echo 'xpath' == $post['status'] ? 'checked="checked"': '' ?>/>
28 <label for="status_xpath"><?php _e('Set with XPath', 'pmxi_plugin' )?></label> <br>
29 <div class="switcher-target-status_xpath">
30 <div class="input">
31 &nbsp;<input type="text" class="smaller-text" name="status_xpath" style="width:190px;" value="<?php echo esc_attr($post['status_xpath']) ?>"/>
32 <a href="#help" class="wpallimport-help" title="<?php _e('The value of presented XPath should be one of the following: (\'publish\', \'draft\', \'trash\').', 'pmxi_plugin') ?>" style="position:relative; top:13px; float: right;">?</a>
33 </div>
34 </div>
35 </div>
36 <div class="clear"></div>
37 </td>
38 </tr>
39 <tr>
40 <td>
41 <h4><?php _e('Post Dates', 'pmxi_plugin') ?><a href="#help" class="wpallimport-help" style="position:relative; top: 1px;" title="<?php _e('Use any format supported by the PHP <b>strtotime</b> function. That means pretty much any human-readable date will work.', 'pmxi_plugin') ?>">?</a></h4>
42 <div class="input">
43 <input type="radio" id="date_type_specific" class="switcher" name="date_type" value="specific" <?php echo 'random' != $post['date_type'] ? 'checked="checked"' : '' ?> />
44 <label for="date_type_specific">
45 <?php _e('As specified', 'pmxi_plugin') ?>
46 </label>
47 <div class="switcher-target-date_type_specific" style="vertical-align:middle; margin-top: 5px; margin-bottom: 10px;">
48 <input type="text" class="datepicker" name="date" value="<?php echo esc_attr($post['date']) ?>"/>
49 </div>
50 </div>
51 <div class="input">
52 <input type="radio" id="date_type_random" class="switcher" name="date_type" value="random" <?php echo 'random' == $post['date_type'] ? 'checked="checked"' : '' ?> />
53 <label for="date_type_random">
54 <?php _e('Random dates', 'pmxi_plugin') ?><a href="#help" class="wpallimport-help" style="position:relative; top:0;" title="<?php _e('Posts will be randomly assigned dates in this range. WordPress ensures posts with dates in the future will not appear until their date has been reached.', 'pmxi_plugin') ?>">?</a>
55 </label>
56 <div class="switcher-target-date_type_random" style="vertical-align:middle; margin-top:5px;">
57 <input type="text" class="datepicker" name="date_start" value="<?php echo esc_attr($post['date_start']) ?>" />
58 <?php _e('and', 'pmxi_plugin') ?>
59 <input type="text" class="datepicker" name="date_end" value="<?php echo esc_attr($post['date_end']) ?>" />
60 </div>
61 </div>
62 </td>
63 </tr>
64 <tr>
65 <td>
66 <h4><?php _e('Discussion', 'pmxi_plugin'); ?></h4>
67 <div class="input">
68 <input type="hidden" name="comment_status" value="closed" />
69 <input type="checkbox" id="comment_status" name="comment_status" value="open" <?php echo 'open' == $post['comment_status'] ? 'checked="checked"' : '' ?> />
70 <label for="comment_status"><?php _e('Allow Comments', 'pmxi_plugin') ?></label>
71 </div>
72 <div class="input">
73 <input type="hidden" name="ping_status" value="closed" />
74 <input type="checkbox" id="ping_status" name="ping_status" value="open" <?php echo 'open' == $post['ping_status'] ? 'checked="checked"' : '' ?> />
75 <label for="ping_status"><?php _e('Allow Trackbacks and Pingbacks', 'pmxi_plugin') ?></label>
76 </div>
77 </td>
78 </tr>
79 <tr>
80 <td>
81 <h4><?php _e('Post Slug', 'pmxi_plugin') ?></h4>
82 <div>
83 <input type="text" name="post_slug" style="width:100%;" value="<?php echo esc_attr($post['post_slug']); ?>" />
84 </div>
85 </td>
86 </tr>
87 <tr>
88 <td>
89 <h4><?php _e('Post Author', 'pmxi_plugin') ?></h4>
90 <div>
91 <input type="text" name="author" value="<?php echo esc_attr($post['author']) ?>"/> <a href="#help" class="wpallimport-help" style="position: relative; top: -2px;" title="<?php _e('Assign the post to an existing user account by specifying the user ID, username, or e-mail address.', 'pmxi_plugin') ?>">?</a>
92 </div>
93 </td>
94 </tr>
95 <tr>
96 <td>
97 <h4 style="float:left;"><?php _e('Download & Import Attachments', 'pmxi_plugin') ?></h4>
98 <span class="separated_by" style="position:relative; top:15px; margin-right:0px;"><?php _e('Separated by','pmxi_plugin');?></span>
99 <div>
100 <input type="text" name="attachments" style="width:93%;" value="<?php echo esc_attr($post['attachments']) ?>" />
101 <input type="text" class="small" name="atch_delim" value="<?php echo esc_attr($post['atch_delim']) ?>" style="width:5%; text-align:center; float:right;"/>
102 </div>
103 </td>
104 </tr>
105 <?php if ($is_support_post_format):?>
106 <tr>
107 <td>
108 <h4><?php _e('Post Format', 'pmxi_plugin') ?></h4>
109 <div>
110 <?php $post_formats = get_theme_support( 'post-formats' ); ?>
111
112 <div class="input">
113 <input type="radio" id="post_format_<?php echo "standart_" . $post_type; ?>" name="post_format" value="0" <?php echo (empty($post['post_format']) or ( empty($post_formats) )) ? 'checked="checked"' : '' ?> />
114 <label for="post_format_<?php echo "standart_" . $post_type; ?>"><?php _e( "Standard", 'pmxi_plugin') ?></label>
115 </div>
116
117 <?php
118 if ( ! empty($post_formats[0]) ){
119 foreach ($post_formats[0] as $post_format) {
120 ?>
121 <div class="input">
122 <input type="radio" id="post_format_<?php echo $post_format . "_" . $entry; ?>" name="post_format" value="<?php echo $post_format; ?>" <?php echo $post_format == $post['post_format'] ? 'checked="checked"' : '' ?> />
123 <label for="post_format_<?php echo $post_format . "_" . $entry; ?>"><?php _e( ucfirst($post_format), 'pmxi_plugin') ?></label>
124 </div>
125 <?php
126 }
127 }
128 ?>
129 </div>
130 </td>
131 </tr>
132 <?php endif; ?>
133
134 <?php if ( 'page' == $post_type ):?>
135 <tr>
136 <td>
137 <h4><?php _e('Page Template', 'pmxi_plugin') ?></h4>
138 <div class="input">
139 <select name="page_template" id="page_template">
140 <option value='default'><?php _e('Default', 'pmxi_plugin') ?></option>
141 <?php page_template_dropdown($post['page_template']); ?>
142 </select>
143 </div>
144 </td>
145 </tr>
146 <tr>
147 <td>
148 <h4><?php _e('Page Parent', 'pmxi_plugin') ?></h4>
149 <div class="input">
150 <?php wp_dropdown_pages(array('post_type' => 'page', 'selected' => $post['parent'], 'name' => 'parent', 'show_option_none' => __('(no parent)', 'pmxi_plugin'), 'sort_column'=> 'menu_order, post_title',)) ?>
151 </div>
152 </td>
153 </tr>
154 <tr>
155 <td>
156 <h4><?php _e('Page Order', 'pmxi_plugin') ?></h4>
157 <div class="input">
158 <input type="text" class="" name="order" value="<?php echo esc_attr($post['order']) ?>" />
159 </div>
160 </td>
161 </tr>
162 <?php endif; ?>
163 </table>
164 </div>
165 </div>
166 </div>
167 </div>