_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
_nested_template.php
80 lines
| 1 | <?php $custom_type = get_post_type_object( $post_type ); ?> |
| 2 | <?php |
| 3 | |
| 4 | $l10n = array( |
| 5 | 'queue_limit_exceeded' => 'You have attempted to queue too many files.', |
| 6 | 'file_exceeds_size_limit' => 'This file exceeds the maximum upload size for this site.', |
| 7 | 'zero_byte_file' => 'This file is empty. Please try another.', |
| 8 | 'invalid_filetype' => 'This file type is not allowed. Please try another.', |
| 9 | 'default_error' => 'An error occurred in the upload. Please try again later.', |
| 10 | 'missing_upload_url' => 'There was a configuration error. Please contact the server administrator.', |
| 11 | 'upload_limit_exceeded' => 'You may only upload 1 file.', |
| 12 | 'http_error' => 'HTTP error.', |
| 13 | 'upload_failed' => 'Upload failed.', |
| 14 | 'io_error' => 'IO error.', |
| 15 | 'security_error' => 'Security error.', |
| 16 | 'file_cancelled' => 'File canceled.', |
| 17 | 'upload_stopped' => 'Upload stopped.', |
| 18 | 'dismiss' => 'Dismiss', |
| 19 | 'crunching' => 'Crunching…', |
| 20 | 'deleted' => 'moved to the trash.', |
| 21 | 'error_uploading' => 'has failed to upload due to an error', |
| 22 | 'cancel_upload' => 'Cancel upload', |
| 23 | 'dismiss' => 'Dismiss' |
| 24 | ); |
| 25 | |
| 26 | ?> |
| 27 | <script type="text/javascript"> |
| 28 | var plugin_url = '<?php echo PMXI_ROOT_URL; ?>'; |
| 29 | var swfuploadL10n = <?php echo json_encode($l10n); ?>; |
| 30 | </script> |
| 31 | |
| 32 | <div class="wpallimport-collapsed closed nested_options wpallimport-section"> |
| 33 | <div class="wpallimport-content-section"> |
| 34 | <div class="wpallimport-collapsed-header"> |
| 35 | <h3><?php _e('Nested XML/CSV files','pmxi_plugin');?></h3> |
| 36 | </div> |
| 37 | <div class="wpallimport-collapsed-content"> |
| 38 | <table class="form-table" style="max-width:none;"> |
| 39 | <tr> |
| 40 | <td> |
| 41 | <div class="nested_files"> |
| 42 | <ul> |
| 43 | <?php if ( ! empty($post['nested_files'])): ?> |
| 44 | <?php |
| 45 | $nested_files = json_decode($post['nested_files'], true); |
| 46 | foreach ($nested_files as $key => $file) { |
| 47 | ?> |
| 48 | <li rel="<?php echo $key;?>"><?php echo $file;?> <a href="javascript:void(0);" class="unmerge"><?php _e('remove', 'pmxi_plugin'); ?></a></li> |
| 49 | <?php |
| 50 | }?> |
| 51 | <?php endif; ?> |
| 52 | </ul> |
| 53 | <input type="hidden" value="<?php echo esc_attr($post['nested_files']); ?>" name="nested_files"/> |
| 54 | </div> |
| 55 | <div class="nested_xml"> |
| 56 | <div class="input" style="margin-left:15px;"> |
| 57 | <input type="hidden" name="nested_local_path"/> |
| 58 | <input type="hidden" name="nested_source_path"/> |
| 59 | <input type="hidden" name="nested_root_element"/> |
| 60 | <div class="nested_msgs"></div> |
| 61 | </div> |
| 62 | </div> |
| 63 | <div class="clear"></div> |
| 64 | <div class="add_nested_file"> |
| 65 | |
| 66 | <div class="msgs"></div> |
| 67 | |
| 68 | <div class="file-type-options"> |
| 69 | <label><?php _e('Specify the URL of the nested file to use.', 'pmxi_plugin'); ?></label> |
| 70 | <input type="text" class="regular-text" name="nested_url" value="" style="width:100%; line-height:20px;" placeholder="http(s)://"/> |
| 71 | </div> |
| 72 | |
| 73 | <a rel="parse" href="javascript:void(0);" class="parse"><?php _e('Add', 'pmxi_plugin'); ?></a> |
| 74 | </div> |
| 75 | </td> |
| 76 | </tr> |
| 77 | </table> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |