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
element.php
210 lines
| 1 | |
| 2 | <h2 class="wpallimport-wp-notices"></h2> |
| 3 | |
| 4 | <form class="wpallimport-choose-elements no-enter-submit wpallimport-step-2 wpallimport-wrapper" method="post"> |
| 5 | <div class="wpallimport-header"> |
| 6 | <div class="wpallimport-logo"></div> |
| 7 | <div class="wpallimport-title"> |
| 8 | <p><?php _e('WP All Import', 'pmxi_plugin'); ?></p> |
| 9 | <h2><?php _e('Import XML / CSV', 'pmxi_plugin'); ?></h2> |
| 10 | </div> |
| 11 | <div class="wpallimport-links"> |
| 12 | <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> |
| 13 | </div> |
| 14 | </div> |
| 15 | <div class="clear"></div> |
| 16 | <?php $custom_type = get_post_type_object( PMXI_Plugin::$session->custom_type ); ?> |
| 17 | <div class="wpallimport-content-section wpallimport-console"> |
| 18 | <div class="ajax-console"> |
| 19 | <?php if ($this->errors->get_error_codes()): ?> |
| 20 | <?php $this->error() ?> |
| 21 | <?php endif ?> |
| 22 | </div> |
| 23 | <input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e('Continue to Step 3', 'pmxi_plugin'); ?>" style="position:absolute; top:45px; right:10px;"/> |
| 24 | </div> |
| 25 | |
| 26 | <div class="wpallimport-content-section wpallimport-elements-preloader"> |
| 27 | <div class="preload" style="height: 80px; margin-top: 25px;"></div> |
| 28 | </div> |
| 29 | |
| 30 | <div class="wpallimport-content-section" style="padding-bottom:0; max-height: 600px; overflow:scroll; width: 100%;"> |
| 31 | |
| 32 | <table class="wpallimport-layout" style="width:100%;"> |
| 33 | <tr> |
| 34 | <?php if ( ! $is_csv): ?> |
| 35 | <td class="left" style="width: 25%; min-width: unset; border-right: 1px solid #ddd;"> |
| 36 | <h3 class="txt_center"><?php _e('What element are you looking for?', 'pmxi_plugin'); ?></h3> |
| 37 | <?php |
| 38 | if ( ! empty($elements_cloud) and ! $is_csv ){ |
| 39 | foreach ($elements_cloud as $tag => $count){ |
| 40 | ?> |
| 41 | <a href="javascript:void(0);" rel="<?php echo $tag;?>" class="wpallimport-change-root-element <?php if (PMXI_Plugin::$session->source['root_element'] == $tag) echo 'selected';?>"> |
| 42 | <span class="tag_name"><?php echo strtolower($tag); ?></span> |
| 43 | <span class="tag_count"><?php echo $count; ?></span> |
| 44 | </a> |
| 45 | <?php |
| 46 | } |
| 47 | } |
| 48 | ?> |
| 49 | </td> |
| 50 | <?php endif; ?> |
| 51 | <td class="right" <?php if ( ! $is_csv){?>style="width:75%; padding:0;"<?php } else {?>style="width:100%; padding:0;"<?php }?>> |
| 52 | <div class="action_buttons"> |
| 53 | <table style="width:100%;"> |
| 54 | <tr> |
| 55 | <td> |
| 56 | <a href="javascript:void(0);" id="prev_element" class="wpallimport-go-to"> </a> |
| 57 | </td> |
| 58 | <td class="txt_center"> |
| 59 | |
| 60 | <p class="wpallimport-root-element"> |
| 61 | <?php echo PMXI_Plugin::$session->source['root_element'];?> |
| 62 | </p> |
| 63 | <input type="text" id="goto_element" value="1"/> |
| 64 | <span class="wpallimport-elements-information"> |
| 65 | <?php printf(__('of <span class="wpallimport-elements-count-info">%s</span>','pmxi_plugin'), PMXI_Plugin::$session->count);?> |
| 66 | </span> |
| 67 | |
| 68 | </td> |
| 69 | <td> |
| 70 | <a href="javascript:void(0);" id="next_element" class="wpallimport-go-to"> </a> |
| 71 | </td> |
| 72 | </tr> |
| 73 | </table> |
| 74 | </div> |
| 75 | <fieldset class="widefat" style="background:fafafa;"> |
| 76 | |
| 77 | <div class="input"> |
| 78 | |
| 79 | <?php if ($is_csv !== false): ?> |
| 80 | |
| 81 | <div class="wpallimport-set-csv-delimiter"> |
| 82 | <label> |
| 83 | <?php _e("Set delimiter for CSV fields:", "pmxi_plugin"); ?> |
| 84 | </label> |
| 85 | <input type="text" name="delimiter" value="<?php echo $is_csv;?>"/> |
| 86 | <input type="button" name="apply_delimiter" class="rad4" value="<?php _e('Apply', 'pmxi_plugin'); ?>"/> |
| 87 | </div> |
| 88 | |
| 89 | <?php else: ?> |
| 90 | |
| 91 | <input type="hidden" value="" name="delimiter"/> |
| 92 | |
| 93 | <?php endif; ?> |
| 94 | |
| 95 | </div> |
| 96 | |
| 97 | <div class="wpallimport-xml"> |
| 98 | <?php //$this->render_xml_element($dom->documentElement) ?> |
| 99 | </div> |
| 100 | </fieldset> |
| 101 | <div class="import_information"> |
| 102 | <?php if (PMXI_Plugin::$session->wizard_type == 'new') :?> |
| 103 | <h3> |
| 104 | <?php printf(__('Each <span><<span class="root_element">%s</span>></span> element will be imported into a <span>New %s</span>'), PMXI_Plugin::$session->source['root_element'], $custom_type->labels->singular_name); ?> |
| 105 | </h3> |
| 106 | <?php else: ?> |
| 107 | <h3> |
| 108 | <?php printf(__('Data in <span><<span class="root_element">%s</span>></span> elements will be imported to <span>%s</span>'), PMXI_Plugin::$session->source['root_element'], $custom_type->labels->name); ?> |
| 109 | </h3> |
| 110 | <?php endif; ?> |
| 111 | </div> |
| 112 | </td> |
| 113 | </tr> |
| 114 | </table> |
| 115 | </div> |
| 116 | |
| 117 | <div class="wpallimport-collapsed closed"> |
| 118 | <div class="wpallimport-content-section"> |
| 119 | <div class="wpallimport-collapsed-header"> |
| 120 | <h3><?php _e('Add Filtering Options', 'pmxi_plugin'); ?></h3> |
| 121 | </div> |
| 122 | <div class="wpallimport-collapsed-content"> |
| 123 | <div> |
| 124 | <div class="rule_inputs"> |
| 125 | <table style="width:100%;"> |
| 126 | <tr> |
| 127 | <th><?php _e('Element', 'pmxi_plugin'); ?></th> |
| 128 | <th><?php _e('Rule', 'pmxi_plugin'); ?></th> |
| 129 | <th><?php _e('Value', 'pmxi_plugin'); ?></th> |
| 130 | <th> </th> |
| 131 | </tr> |
| 132 | <tr> |
| 133 | <td style="width:25%;"> |
| 134 | <select id="pmxi_xml_element"> |
| 135 | <option value=""><?php _e('Select Element', 'pmxi_plugin'); ?></option> |
| 136 | <?php PMXI_Render::render_xml_elements_for_filtring($elements->item(0)); ?> |
| 137 | </select> |
| 138 | </td> |
| 139 | <td style="width:25%;"> |
| 140 | <select id="pmxi_rule"> |
| 141 | <option value=""><?php _e('Select Rule', 'pmxi_plugin'); ?></option> |
| 142 | <option value="equals"><?php _e('equals', 'pmxi_plugin'); ?></option> |
| 143 | <option value="not_equals"><?php _e('not equals', 'pmxi_plugin'); ?></option> |
| 144 | <option value="greater"><?php _e('greater than', 'pmxi_plugin');?></option> |
| 145 | <option value="equals_or_greater"><?php _e('equals or greater than', 'pmxi_plugin'); ?></option> |
| 146 | <option value="less"><?php _e('less than', 'pmxi_plugin'); ?></option> |
| 147 | <option value="equals_or_less"><?php _e('equals or less than', 'pmxi_plugin'); ?></option> |
| 148 | <option value="contains"><?php _e('contains', 'pmxi_plugin'); ?></option> |
| 149 | <option value="not_contains"><?php _e('not contains', 'pmxi_plugin'); ?></option> |
| 150 | <option value="is_empty"><?php _e('is empty', 'pmxi_plugin'); ?></option> |
| 151 | <option value="is_not_empty"><?php _e('is not empty', 'pmxi_plugin'); ?></option> |
| 152 | </select> |
| 153 | </td> |
| 154 | <td style="width:25%;"> |
| 155 | <input id="pmxi_value" type="text" placeholder="value" value=""/> |
| 156 | </td> |
| 157 | <td style="width:15%;"> |
| 158 | <a id="pmxi_add_rule" href="javascript:void(0);"><?php _e('Add Rule', 'pmxi_plugin');?></a> |
| 159 | </td> |
| 160 | </tr> |
| 161 | </table> |
| 162 | </div> |
| 163 | </div> |
| 164 | <div class="clear"></div> |
| 165 | <table class="xpath_filtering"> |
| 166 | <tr> |
| 167 | <td style="width:5%; font-weight:bold; color: #000;"><?php _e('XPath','pmxi_plugin');?></td> |
| 168 | <td style="width:95%;"> |
| 169 | <input type="text" name="xpath" value="<?php echo esc_attr($post['xpath']) ?>" style="max-width:none;" /> |
| 170 | <input type="hidden" id="root_element" name="root_element" value="<?php echo PMXI_Plugin::$session->source['root_element']; ?>"/> |
| 171 | </td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </div> |
| 175 | </div> |
| 176 | <div id="wpallimport-filters" class="wpallimport-collapsed-content" style="padding:0;"> |
| 177 | <table style="width: 100%; font-weight: bold; padding: 20px;"> |
| 178 | <tr> |
| 179 | <td style="width: 30%; padding-left: 30px;"><?php _e('Element', 'pmxi_plugin'); ?></td> |
| 180 | <td style="width:20%;"><?php _e('Rule', 'pmxi_plugin'); ?></td> |
| 181 | <td style="width:20%;"><?php _e('Value', 'pmxi_plugin'); ?></td> |
| 182 | <td style="width:25%;"><?php _e('Condition', 'pmxi_plugin'); ?></td> |
| 183 | </tr> |
| 184 | </table> |
| 185 | <div class="wpallimport-content-section"> |
| 186 | <fieldset id="filtering_rules"> |
| 187 | <p style="margin:20px 0 5px; text-align:center;"><?php _e('No filtering options. Add filtering options to only import records matching some specified criteria.', 'pmxi_plugin');?></p> |
| 188 | <ol class="filtering_rules"> |
| 189 | |
| 190 | </ol> |
| 191 | <div class="clear"></div> |
| 192 | <a href="javascript:void(0);" id="apply_filters" style="display:none;"><?php _e('Apply Filters To XPath', 'pmxi_plugin');?></a> |
| 193 | </fieldset> |
| 194 | </div> |
| 195 | </div> |
| 196 | </div> |
| 197 | |
| 198 | <hr> |
| 199 | |
| 200 | <p class="wpallimport-submit-buttons" style="text-align:center;"> |
| 201 | <a href="<?php echo $this->baseUrl ?>" class="back rad3"><?php _e('Back to Step 1','pmxi_plugin');?></a> |
| 202 | |
| 203 | <input type="hidden" name="is_submitted" value="1" /> |
| 204 | <?php wp_nonce_field('choose-elements', '_wpnonce_choose-elements') ?> |
| 205 | <input type="submit" class="button button-primary button-hero wpallimport-large-button" value="<?php _e('Continue to Step 3', 'pmxi_plugin'); ?>" /> |
| 206 | </p> |
| 207 | |
| 208 | <a href="http://soflyy.com/" target="_blank" class="wpallimport-created-by"><?php _e('Created by', 'pmxi_plugin'); ?> <span></span></a> |
| 209 | |
| 210 | </form> |