Ejemplo n.º 1
0
?>
		
		<h3><?php 
_e('Import/Export Templates', 'wp_all_import_plugin');
?>
</h3>
		<?php 
$templates = new PMXI_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 class="selectit" for="template-<?php 
        echo $t->id;
        ?>
"><input id="template-<?php 
        echo $t->id;
        ?>
" type="checkbox" name="templates[]" value="<?php 
        echo $t->id;
Ejemplo n.º 2
0
			<p><?php _e('WP All Import', 'wp_all_import_plugin'); ?></p>
			<h3><?php _e('Settings', 'wp_all_import_plugin'); ?></h3>			
		</div>	
	</div>

	<h2></h2>
	
	<div class="wpallimport-setting-wrapper">
		<?php if ($this->errors->get_error_codes()): ?>
			<?php $this->error() ?>
		<?php endif ?>
		
		<h3><?php _e('Import/Export Templates', 'wp_all_import_plugin') ?></h3>
		<?php $templates = new PMXI_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 class="selectit" for="template-<?php echo $t->id ?>"><input id="template-<?php echo $t->id ?>" type="checkbox" name="templates[]" value="<?php echo $t->id ?>" /> <?php echo $t->name ?></label>
						</td>				
					</tr>
				<?php endforeach ?>
			</table>
			<p class="submit-buttons">				
				<input type="submit" class="button-primary" name="delete_templates" value="<?php _e('Delete Selected', 'wp_all_import_plugin') ?>" />
				<input type="submit" class="button-primary" name="export_templates" value="<?php _e('Export Selected', 'wp_all_import_plugin') ?>" />
			</p>	
		<?php else: ?>
			<em><?php _e('There are no templates saved', 'wp_all_import_plugin') ?></em>