예제 #1
0
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 class="selectit" for="template-<?php 
예제 #2
0
" 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;
    }
    ?>
								<option value="<?php 
    echo $t->id;
    ?>
"><?php 
    echo $t->name;
    ?>
</option>
							<?php