Ejemplo n.º 1
0
" style="vertical-align:middle; line-height: 26px;" value="<?php 
echo esc_attr($post['name']);
?>
" />		
					</div>				
					<?php 
$templates = new PMXI_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_import_plugin');
?>
</option>
							<?php 
foreach ($templates->getBy()->convertRecords() as $t) {
    ?>
								<option value="<?php 
    echo $t->id;
    ?>
"><?php 
    echo $t->name;
    ?>
</option>
							<?php 
}
?>
						</select>
					</div>
					
				</div>
Ejemplo n.º 2
0
if ($this->errors->get_error_codes()) {
    ?>
			<?php 
    $this->error();
    ?>
		<?php 
}
?>
		
		<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 
Ejemplo n.º 3
0
		<div class="wpallimport-logo"></div>
		<div class="wpallimport-title">
			<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>