index.php
49 lines
| 1 | <form class="settings" method="post" action="<?php echo $this->baseUrl ?>"> |
| 2 | |
| 3 | <h2><?php _e('WP All Import Settings', 'pmxi_plugin') ?></h2> |
| 4 | <hr /> |
| 5 | <?php if ($this->errors->get_error_codes()): ?> |
| 6 | <?php $this->error() ?> |
| 7 | <?php endif ?> |
| 8 | |
| 9 | <h3><?php _e('Saved Templates', 'pmxi_plugin') ?></h3> |
| 10 | <?php $templates = new PMXI_Template_List(); $templates->getBy()->convertRecords() ?> |
| 11 | <?php if ($templates->total()): ?> |
| 12 | <table> |
| 13 | <?php foreach ($templates as $t): ?> |
| 14 | <tr> |
| 15 | <td><input id="template-<?php echo $t->id ?>" type="checkbox" name="templates[]" value="<?php echo $t->id ?>" /></td> |
| 16 | <td><label for="template-<?php echo $t->id ?>"><?php echo $t->name ?></label></td> |
| 17 | </tr> |
| 18 | <?php endforeach ?> |
| 19 | </table> |
| 20 | <p class="submit-buttons"> |
| 21 | <?php wp_nonce_field('delete-templates', '_wpnonce_delete-templates') ?> |
| 22 | <input type="hidden" name="is_templates_submitted" value="1" /> |
| 23 | <input type="submit" class="button-primary" value="<?php _e('Delete Selected', 'pmxi_plugin') ?>" /> |
| 24 | </p> |
| 25 | <?php else: ?> |
| 26 | <em><?php _e('There are no templates saved', 'pmxi_plugin') ?></em> |
| 27 | <?php endif ?> |
| 28 | </form> |
| 29 | <br /> |
| 30 | |
| 31 | <form name="settings" method="post" action="<?php echo $this->baseUrl ?>"> |
| 32 | <h3><?php _e('History', 'pmxi_plugin') ?></h3> |
| 33 | <div><?php printf(__('Store maximum of %s of the most recent files imported. 0 = unlimited', 'pmxi_plugin'), '<input class="small-text" type="text" name="history_file_count" value="' . esc_attr($post['history_file_count']) . '" />') ?></div> |
| 34 | <div><?php printf(__('Store imported file history for a maximum of %s of days. 0 = unlimited', 'pmxi_plugin'), '<input class="small-text" type="text" name="history_file_age" value="' . esc_attr($post['history_file_age']) . '" />') ?></div> |
| 35 | <h3><?php _e('Your server setting', 'pmxi_plugin') ?></h3> |
| 36 | <div><?php printf(__('upload_max_filesize %s', 'pmxi_plugin'), ini_get('upload_max_filesize')) ?></div> |
| 37 | <div><?php printf(__('post_max_size %s', 'pmxi_plugin'), ini_get('post_max_size')) ?></div> |
| 38 | <div><?php printf(__('max_execution_time %s', 'pmxi_plugin'), ini_get('max_execution_time')) ?></div> |
| 39 | <div><?php printf(__('max_input_time %s', 'pmxi_plugin'), ini_get('max_input_time')) ?></div> |
| 40 | <h3><?php _e('XML parsing filters', 'pmxi_plugin') ?></h3> |
| 41 | |
| 42 | <div><?php printf(__('Filter XML contains HTML entities %s', 'pmxi_plugin'), '<input type="radio" name="html_entities" value="1" '.((!empty($post['html_entities'])) ? 'checked="checked"' : '').' /> Yes <input type="radio" name="html_entities" value="0" '.((empty($post['html_entities'])) ? 'checked="checked"' : '').' /> No') ?></div> |
| 43 | <p class="submit-buttons"> |
| 44 | <?php wp_nonce_field('edit-settings', '_wpnonce_edit-settings') ?> |
| 45 | <input type="hidden" name="is_settings_submitted" value="1" /> |
| 46 | <input type="submit" class="button-primary" value="Save Settings" /> |
| 47 | </p> |
| 48 | |
| 49 | </form> |