element.php
14 years ago
element_after.php
14 years ago
error.php
14 years ago
evaluate.php
14 years ago
index.php
14 years ago
options.php
14 years ago
preview.php
14 years ago
process-complete.php
14 years ago
process.php
14 years ago
tag.php
14 years ago
template.php
14 years ago
template.php
82 lines
| 1 | <form class="template <?php echo ! $this->isWizard ? 'edit' : '' ?>" method="post"> |
| 2 | <table class="layout"> |
| 3 | <tr> |
| 4 | <td class="left"> |
| 5 | <h2> |
| 6 | <?php $templates = new PMXI_Template_List() ?> |
| 7 | <span class="load-template"> |
| 8 | <select name="load_template"> |
| 9 | <option value=""><?php _e('Load Template...', 'pmxi_plugin') ?></option> |
| 10 | <?php foreach ($templates->getBy()->convertRecords() as $t): ?> |
| 11 | <option value="<?php echo $t->id ?>"><?php echo $t->name ?></option> |
| 12 | <?php endforeach ?> |
| 13 | </select><a href="#help" class="help" title="<?php _e('Select a <b>Template</b> from the dropdown and it will be preloaded', 'pmxi_plugin') ?>">?</a> |
| 14 | </span> |
| 15 | <?php if ($this->isWizard): ?> |
| 16 | <?php _e('Import XML/CSV - Step 3: Template Designer', 'pmxi_plugin') ?><br/><span class="taglines"><?php _e('arrange your data and design your posts', 'pmxi_plugin') ?></span> |
| 17 | <?php else: ?> |
| 18 | <?php _e('Edit Import Template', 'pmxi_plugin') ?> |
| 19 | <?php endif ?> |
| 20 | </h2> |
| 21 | <hr/> |
| 22 | |
| 23 | <?php if ($this->errors->get_error_codes()): ?> |
| 24 | <?php $this->error() ?> |
| 25 | <?php endif ?> |
| 26 | |
| 27 | <h3>Post Title</h3> |
| 28 | <div style="width:100%"> |
| 29 | <input id="title" class="widefat" type="text" name="title" value="<?php echo esc_attr($post['title']) ?>" /> |
| 30 | </div> |
| 31 | |
| 32 | <h3> |
| 33 | <span class="header-option"> |
| 34 | <input type="hidden" name="is_keep_linebreaks" value="0" /> |
| 35 | <input type="checkbox" id="is_keep_linebreaks" name="is_keep_linebreaks" value="1" <?php echo $post['is_keep_linebreaks'] ? 'checked="checked"' : '' ?> /> |
| 36 | <label for="is_keep_linebreaks"><?php _e('Keep line breaks from XML', 'pmxi_plugin') ?></label> |
| 37 | </span> |
| 38 | Post Content |
| 39 | </h3> |
| 40 | <div id="poststuff"> |
| 41 | <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> |
| 42 | |
| 43 | <?php the_editor($post['content']) ?> |
| 44 | <table id="post-status-info" cellspacing="0"> |
| 45 | <tbody> |
| 46 | <tr> |
| 47 | <td id="wp-word-count"></td> |
| 48 | <td class="autosave-info"> |
| 49 | <span id="autosave"> </span> |
| 50 | </td> |
| 51 | </tr> |
| 52 | </tbody> |
| 53 | </table> |
| 54 | </div> |
| 55 | </div> |
| 56 | <p> |
| 57 | <?php wp_nonce_field('template', '_wpnonce_template') ?> |
| 58 | <input type="hidden" name="is_submitted" value="1" /> |
| 59 | <?php if ($this->isWizard): ?> |
| 60 | <a href="<?php echo add_query_arg('action', 'element', $this->baseUrl) ?>" class="button back"><?php _e('Back', 'pmxi_plugin') ?></a> |
| 61 | |
| 62 | <input type="submit" class="button-primary" value="<?php _e('Continue', 'pmxi_plugin') ?> >>" /> |
| 63 | <input type="text" name="name" title="<?php _e('Save Template As...', 'pmxi_plugin') ?>" style="vertical-align:middle" value="<?php echo esc_attr($post['name']) ?>" /> |
| 64 | |
| 65 | <a href="#preview" class="button preview" title="<?php _e('Preview Post', 'pmxi_plugin') ?>"><?php _e('Preview', 'pmxi_plugin') ?></a> |
| 66 | <?php else: ?> |
| 67 | <input type="submit" class="button-primary" value="<?php _e('Edit', 'pmxi_plugin') ?>" /> |
| 68 | <input type="text" name="name" title="<?php _e('Save Template As...', 'pmxi_plugin') ?>" style="vertical-align:middle" value="<?php echo esc_attr($post['name']) ?>" /> |
| 69 | <?php endif ?> |
| 70 | </p> |
| 71 | </td> |
| 72 | <?php if ($this->isWizard or $this->isTemplateEdit): ?> |
| 73 | <td class="right"> |
| 74 | <p><?php _e('Drag & Drop opening tag of an element for inserting corresponding XPath into template or title.', 'pmxi_plugin') ?></p> |
| 75 | <p><?php _e('<a href="http://www.wpallimport.com/template-syntax/" target="_blank">Template Syntax Documentation</a>', 'pmxi_plugin') ?> - includes information on looping and shortcodes.</p> |
| 76 | <?php $this->tag() ?> |
| 77 | </td> |
| 78 | <?php endif ?> |
| 79 | </tr> |
| 80 | </table> |
| 81 | </form> |
| 82 |