<?php if ($this->errors->get_error_codes()) { ?> <?php $this->error(); ?> <?php } ?> <h3><?php _e('Import/Export Templates', 'wp_all_export_plugin'); ?> </h3> <?php $templates = new PMXE_Template_List(); $templates->getBy()->convertRecords(); ?> <?php wp_nonce_field('delete-templates', '_wpnonce_delete-templates'); ?> <?php if ($templates->total()) { ?> <table> <?php foreach ($templates as $t) { ?> <tr> <td>
<label for="save_template_as"><?php _e('Save settings as a template', 'wp_all_export_plugin'); ?> </label> </p> <div class="switcher-target-save_template_as" style="float: left; overflow: hidden;"> <input type="text" name="name" placeholder="<?php _e('Template name...', 'wp_all_export_plugin'); ?> " style="vertical-align:middle; line-height: 26px;" value="<?php echo esc_attr($post['name']); ?> " /> </div> <?php $templates = new PMXE_Template_List(); ?> <div class="load-template"> <select name="load_template" id="load_template" style="padding:2px; width: auto; height: 40px;"> <option value=""><?php _e('Load Template...', 'wp_all_export_plugin'); ?> </option> <?php foreach ($templates->getBy()->convertRecords() as $t) { ?> <?php // When creating a new export you should be able to select existing saved export templates that were created for the same post type. if ($t->options['cpt'] != $post['cpt']) { continue; }