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 / _featured_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
_featured_template.php
154 lines
1 <div class="wpallimport-collapsed closed wpallimport-section wpallimport-featured-images">
2 <div class="wpallimport-content-section" style="padding-bottom: 0;">
3 <div class="wpallimport-collapsed-header" style="margin-bottom: 15px;">
4 <h3><?php _e('Images','pmxi_plugin');?></h3>
5 </div>
6 <div class="wpallimport-collapsed-content" style="padding: 0;">
7 <div class="wpallimport-collapsed-content-inner">
8 <?php if ($post_type != "product" or ! class_exists('PMWI_Plugin')):?>
9
10 <div class="wpallimport-free-edition-notice" style="text-align:center; margin-top:-15px; margin-bottom: 40px;">
11 <a href="http://www.wpallimport.com/upgrade-to-pro/?utm_source=free-plugin&utm_medium=in-plugin&utm_campaign=images" target="_blank" class="upgrade_link"><?php _e('Upgrade to the professional edition of WP All Import to import images.', 'pmxi_plugin');?></a>
12 </div>
13
14 <?php endif; ?>
15
16 <table class="form-table" style="max-width:none;">
17 <tr>
18 <td colspan="3">
19 <div class="input">
20 <div class="input">
21 <input type="radio" name="download_images" value="yes" class="switcher" id="download_images_yes" <?php echo ("yes" == $post['download_images']) ? 'checked="checked"' : '';?>/>
22 <label for="download_images_yes"><?php _e('Download image(s) hosted elsewhere'); ?></label>
23 <a href="#help" class="wpallimport-help" title="<?php _e('http:// or https://', 'pmxi_plugin') ?>" style="position: relative; top: -2px;">?</a>
24 </div>
25 <div class="switcher-target-download_images_yes" style="padding-left:27px;">
26 <label for="download_featured_delim"><?php _e('Enter image URL one per line, or separate them with a ', 'pmxi_plugin');?></label>
27 <input type="text" class="small" id="download_featured_delim" name="download_featured_delim" value="<?php echo esc_attr($post['download_featured_delim']) ?>" style="width:5%; text-align:center;" />
28 <textarea name="download_featured_image" class="newline rad4" style="clear: both; display:block;" placeholder=""><?php echo esc_attr($post['download_featured_image']) ?></textarea>
29 </div>
30 <div class="input">
31 <?php $wp_uploads = wp_upload_dir(); ?>
32 <input type="radio" name="download_images" value="no" class="switcher" id="download_images_no" <?php echo ("yes" != $post['download_images']) ? 'checked="checked"' : '';?>/>
33 <label for="download_images_no"><?php printf(__('Use image(s) currently uploaded in %s/wpallimport/files/', 'pmxi_plugin'), $wp_uploads['basedir']); ?></label>
34 </div>
35 <div class="switcher-target-download_images_no" style="padding-left:27px;">
36 <label for="featured_delim"><?php _e('Enter image filenames one per line, or separate them with a ', 'pmxi_plugin');?></label>
37 <input type="text" class="small" id="featured_delim" name="featured_delim" value="<?php echo esc_attr($post['featured_delim']) ?>" style="width:5%; text-align:center;"/>
38 <textarea name="featured_image" class="newline rad4" style="clear: both; display:block; "><?php echo esc_attr($post['featured_image']) ?></textarea>
39 </div>
40 <a class="preview_images" href="javascript:void(0);" rel="preview_images"><?php _e('Preview & Test', 'pmxi_plugin'); ?></a>
41 </div>
42 <h4><?php _e('Featured Image', 'pmxi_plugin'); ?></h4>
43 <div class="input" style="margin:3px 0px;">
44 <input type="hidden" name="is_featured" value="0" />
45 <input type="checkbox" id="is_featured" name="is_featured" value="1" <?php echo $post['is_featured'] ? 'checked="checked"' : '' ?> class="fix_checkbox" />
46 <label for="is_featured"><?php _e('Set the first image to the Featured Image (_thumbnail_id)','pmxi_plugin');?> </label>
47 </div>
48 <h4><?php _e('Other', 'pmxi_plugin'); ?></h4>
49 <div class="input">
50 <input type="hidden" name="create_draft" value="no" />
51 <input type="checkbox" id="create_draft" name="create_draft" value="yes" <?php echo 'yes' == $post['create_draft'] ? 'checked="checked"' : '' ?> class="fix_checkbox"/>
52 <label for="create_draft"><?php _e('If no images are downloaded successfully, create entry as Draft.', 'pmxi_plugin') ?></label>
53 </div>
54 </td>
55 </tr>
56 </table>
57 </div>
58
59 <div class="wpallimport-collapsed closed wpallimport-section">
60 <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;">
61 <div class="wpallimport-collapsed-header">
62 <h3 style="color:#40acad;"><?php _e('SEO & Advanced Options','pmxi_plugin');?></h3>
63 </div>
64 <div class="wpallimport-collapsed-content" style="padding: 0;">
65 <div class="wpallimport-collapsed-content-inner">
66 <hr>
67 <table class="form-table" style="max-width:none;">
68 <tr>
69 <td colspan="3">
70 <h4><?php _e('Meta Data', 'pmxi_plugin'); ?></h4>
71 <div class="input">
72 <input type="hidden" name="set_image_meta_title" value="0" />
73 <input type="checkbox" id="set_image_meta_title" name="set_image_meta_title" value="1" <?php echo $post['set_image_meta_title'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
74 <label for="set_image_meta_title"><?php _e('Set Title(s)','pmxi_plugin');?></label>
75 <div class="switcher-target-set_image_meta_title" style="padding-left:23px;">
76 <label for="image_meta_title_delim"><?php _e('Enter one per line, or separate them with a ', 'pmxi_plugin');?></label>
77 <input type="text" class="small" id="image_meta_title_delim" name="image_meta_title_delim" value="<?php echo esc_attr($post['image_meta_title_delim']) ?>" style="width:5%; text-align:center;" />
78 <p style="margin-bottom:5px;"><?php _e('The first title will be linked to the first image, the second title will be linked to the second image, ...', 'pmxi_plugin');?></p>
79 <textarea name="image_meta_title" class="newline rad4"><?php echo esc_attr($post['image_meta_title']) ?></textarea>
80 </div>
81 </div>
82 <div class="input">
83 <input type="hidden" name="set_image_meta_caption" value="0" />
84 <input type="checkbox" id="set_image_meta_caption" name="set_image_meta_caption" value="1" <?php echo $post['set_image_meta_caption'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
85 <label for="set_image_meta_caption"><?php _e('Set Caption(s)','pmxi_plugin');?></label>
86 <div class="switcher-target-set_image_meta_caption" style="padding-left:23px;">
87 <label for="image_meta_caption_delim"><?php _e('Enter one per line, or separate them with a ', 'pmxi_plugin');?></label>
88 <input type="text" class="small" id="image_meta_caption_delim" name="image_meta_caption_delim" value="<?php echo esc_attr($post['image_meta_caption_delim']) ?>" style="width:5%; text-align:center;"/>
89 <p style="margin-bottom:5px;"><?php _e('The first caption will be linked to the first image, the second caption will be linked to the second image, ...', 'pmxi_plugin');?></p>
90 <textarea name="image_meta_caption" class="newline rad4"><?php echo esc_attr($post['image_meta_caption']) ?></textarea>
91 </div>
92 </div>
93 <div class="input">
94 <input type="hidden" name="set_image_meta_alt" value="0" />
95 <input type="checkbox" id="set_image_meta_alt" name="set_image_meta_alt" value="1" <?php echo $post['set_image_meta_alt'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
96 <label for="set_image_meta_alt"><?php _e('Set Alt Text(s)','pmxi_plugin');?></label>
97 <div class="switcher-target-set_image_meta_alt" style="padding-left:23px;">
98 <label for="image_meta_alt_delim"><?php _e('Enter one per line, or separate them with a ', 'pmxi_plugin');?></label>
99 <input type="text" class="small" id="image_meta_alt_delim" name="image_meta_alt_delim" value="<?php echo esc_attr($post['image_meta_alt_delim']) ?>" style="width:5%; text-align:center;"/>
100 <p style="margin-bottom:5px;"><?php _e('The first alt text will be linked to the first image, the second alt text will be linked to the second image, ...', 'pmxi_plugin');?></p>
101 <textarea name="image_meta_alt" class="newline rad4"><?php echo esc_attr($post['image_meta_alt']) ?></textarea>
102 </div>
103 </div>
104 <div class="input">
105 <input type="hidden" name="set_image_meta_description" value="0" />
106 <input type="checkbox" id="set_image_meta_description" name="set_image_meta_description" value="1" <?php echo $post['set_image_meta_description'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
107 <label for="set_image_meta_description"><?php _e('Set Description(s)','pmxi_plugin');?></label>
108 <div class="switcher-target-set_image_meta_description" style="padding-left:23px;">
109 <label for="image_meta_description_delim"><?php _e('Enter one per line, or separate them with a ', 'pmxi_plugin');?></label>
110 <input type="text" class="small" id="image_meta_description_delim" name="image_meta_description_delim" value="<?php echo esc_attr($post['image_meta_description_delim']) ?>" style="width:5%; text-align:center;"/>
111 <p style="margin-bottom:5px;"><?php _e('The first description will be linked to the first image, the second description will be linked to the second image, ...', 'pmxi_plugin');?></p>
112 <textarea name="image_meta_description" class="newline rad4"><?php echo esc_attr($post['image_meta_description']) ?></textarea>
113 </div>
114 </div>
115
116 <h4><?php _e('Files', 'pmxi_plugin'); ?></h4>
117 <div id="advanced_options_files">
118 <p style="font-style:italic; display:none;"><?php _e('These options only available if Download image(s) hosted elsewhere is selected above.', 'pmxi_plugin'); ?></p>
119 <div class="input" style="margin:3px 0px;">
120 <input type="hidden" name="auto_rename_images" value="0" />
121 <input type="checkbox" id="auto_rename_images" name="auto_rename_images" value="1" <?php echo $post['auto_rename_images'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
122 <label for="auto_rename_images"><?php _e('Change image file names to','pmxi_plugin');?> </label>
123 <div class="input switcher-target-auto_rename_images" style="padding-left:23px;">
124 <input type="text" id="auto_rename_images_suffix" name="auto_rename_images_suffix" value="<?php echo esc_attr($post['auto_rename_images_suffix']) ?>" style="width:480px;"/>
125 <p class="note"><?php _e('Multiple image will have numbers appended, i.e. image-name-1.jpg, image-name-2.jpg '); ?></p>
126 </div>
127 </div>
128 <div class="input" style="margin:3px 0px;">
129 <input type="hidden" name="auto_set_extension" value="0" />
130 <input type="checkbox" id="auto_set_extension" name="auto_set_extension" value="1" <?php echo $post['auto_set_extension'] ? 'checked="checked"' : '' ?> class="switcher fix_checkbox"/>
131 <label for="auto_set_extension"><?php _e('Change image file extensions','pmxi_plugin');?> </label>
132 <div class="input switcher-target-auto_set_extension" style="padding-left:23px;">
133 <input type="text" id="new_extension" name="new_extension" value="<?php echo esc_attr($post['new_extension']) ?>" placeholder="jpg" style="width:480px;"/>
134 </div>
135 </div>
136 </div>
137 </td>
138 </tr>
139 </table>
140 </div>
141 </div>
142 </div>
143 </div>
144 </div>
145 </div>
146 </div>
147 <div id="images_hints" style="display:none;">
148 <ul>
149 <li><?php _e('WP All Import will automatically ignore elements with blank image URLs/filenames.', 'pmxi_plugin'); ?></li>
150 <li><?php _e('WP All Import must download the images to your server. You can\'t have images in a Gallery that are referenced by external URL. That\'s just how WordPress works.', 'pmxi_plugin'); ?></li>
151 <li><?php printf(__('Importing a variable number of images can be done using a <a href="%s" target="_blank">FOREACH LOOP</a>', 'pmxi_plugin'), 'http://www.wpallimport.com/documentation/step-3/template-syntax/'); ?></li>
152 <li><?php printf(__('For more information check out our <a href="%s" target="_blank">comprehensive documentation</a>', 'pmxi_plugin'), 'http://www.wpallimport.com/documentation/'); ?></li>
153 </ul>
154 </div>