Example #1
0
        function meta_box_import()
        {
            $form = new ITForm();
            ?>
	<?php 
            $form->start_form(array(), 'import_data');
            ?>
		<p><?php 
            _e('Importing a Builder export file allows you to apply/add some or all of the export data to the site. Importing the data also also adds the uploaded export file to the list of Site Exports for use later.', 'it-l10n-Builder-Cohen');
            ?>
</p>
		<hr />
		
		<p><?php 
            printf(__('Select export file to import:', 'it-l10n-Builder-Cohen'));
            ?>
</p>
		<ul class="no-bullets">
			<li><?php 
            $form->add_file_upload('import_file');
            ?>
</li>
		</ul>
		<br />
		
		<p>
			<?php 
            $form->add_submit('import', array('value' => 'Import', 'class' => 'button-secondary'));
            ?>
		</p>
		
		<?php 
            $form->add_hidden_no_save('action', 'import');
            ?>
		<?php 
            $form->add_hidden_no_save('editor_tab', $this->_parent->_active_tab);
            ?>
	<?php 
            $form->end_form();
        }