예제 #1
0
    if ($tagno < PMXI_Plugin::$session->count) {
        ?>
<a href="#next" class="next_element">&nbsp;</a><?php 
    } else {
        ?>
<span class="next_element">&nbsp;</span><?php 
    }
    ?>
				</div>
			</div>
			<div class="clear"></div>
			<div class="wpallimport-xml resetable"> 
				<?php 
    if (!empty($elements->length)) {
        if (PMXI_Plugin::$session->options['delimiter']) {
            PMXI_Render::render_csv_element($elements->item(0), true);
        } else {
            PMXI_Render::render_xml_element($elements->item($elements->length > 1 ? $tagno : 0), true);
        }
    }
    ?>
			
			</div>			
		<?php 
} else {
    ?>
			<div class="error inline below-h2" style="padding:10px; margin-top:45px;">
				<?php 
    printf(__('History file not found. Probably you are using wrong encoding.', 'wp_all_import_plugin'));
    ?>
			
예제 #2
0
if (PMXI_Plugin::getInstance()->getOption('highlight_limit') and $elements->length > PMXI_Plugin::getInstance()->getOption('highlight_limit')) {
    ?>
		<p><?php 
    _e('<strong>Note</strong>: Highlighting is turned off since can be very slow on large sets of elements.', 'wp_all_import_plugin');
    ?>
</p>
	<?php 
}
?>
</div>
<div id="current_xml">
	<?php 
if ($is_csv) {
    ?>
		<?php 
    PMXI_Render::render_csv_element($elements->item(0), false, '//');
    ?>
	<?php 
} else {
    ?>
		<?php 
    PMXI_Render::render_xml_element($elements->item(0), false, '//');
    ?>
	<?php 
}
?>
</div>
<script type="text/javascript">
(function($){	
	var paths = <?php 
echo json_encode($paths);