<?php

if ( !function_exists( 'xs_view_updater' ) ) {
	
	function xs_view_updater() { ?>
		
		<div id="xs-importer" class="wrap">
		
			<div class="icon32" id="icon-options-general"><br></div>
            <h2><?php _e( 'Theme Demo Importer' , 'xs' ); ?></h2>
            
            <div class="updated xs_import_message hidden"><p></p></div>
			
            <?php
			$klass = 'import_btn';
			if(function_exists('wordpress_importer_init')){
			echo '<div class="error"><p>Please deactivate WordPress Importer Plugin to use this feature.</p></div>';
			$klass = '';
			} ;?>
<br/>            
            <div class="xml">
                <label class="xs-choose-demo-img" for="demo_one">
                    <img src="<?php echo get_template_directory_uri(); ?>/theme-assets/img/demo-preview.png" />                    
                </label>
            </div>
            
            <div class="clear"></div>
            
            <div class="xs-import-options">
            
            <table class="form-table">
            	<tbody>                    
                    <tr valign="top">
                    	
                        <th scope="row">
							<?php _e('Important Notes:' , 'xs'); ?>
                        </th>
                      	
                        <td>
                            <ol>
                                <li><?php _e('We recommend to run this importer on a clean WordPress installation.' , 'xs'); ?></li>
                                <li><?php _e('To reset your installation we can recommend this plugin here:' , 'xs'); ?> <a href="http://wordpress.org/plugins/wordpress-database-reset/">Wordpress Database Reset</a></li>
                                <li><?php _e('The Demo Importer will not import the images we have used in our live demos, due to copyright / license reasons' , 'xs'); ?></li>
                                <li><?php _e('Do not run the importer multiple times one after another, it will result in double content.' , 'xs'); ?></li>
                            </ol>
                        </td>                       
                    
                    </tr>  
                                        
            	</tbody>
            </table>
            
            </div>
            
            <div class="clear"></div>
            
            <div class="xs-import-bar">
                <button class="button button-primary" id="xs_<?php echo $klass; ?>" ><?php _e( 'Import' , 'xs' ); ?></button>
                
            </div>
		
		</div>
		
	<?php }
	
}		 ?>