<?php
/**
 * @version    $Id$
 * @package    IT_Theme_Framework
 * @author     InnoThemes Team <support@innothemes.com>
 * @copyright  Copyright (C) 2012 InnoThemes.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.innothemes.com
 */
?>
<p>
	<?php _e( 'There are several stages involved in the process. Please be patient.', IT_THEME_TEXTDOMAIN ); ?>
</p>
<ul id="it-install-sample-data-processes">
	<li id="it-install-sample-data-download-package">
		<span class="it-title"><?php _e( 'Download sample data package.', IT_THEME_TEXTDOMAIN ); ?></span>
		<i class="jsn-icon16 jsn-icon-loading"></i>
		<span class="it-status alert alert-error hide"></span>
	</li>
	<li id="it-install-sample-data-upload-package" class="hide">
		<span class="it-title"><?php _e( 'Upload sample data package.', IT_THEME_TEXTDOMAIN ); ?></span>
		<i class="jsn-icon16 jsn-icon-loading"></i>
		<span class="it-status alert alert-error hide"></span>
	</li>
	<li id="it-install-sample-data-required-plugins" class="hide"></li>
	<li id="it-install-sample-data-optional-plugins" class="hide"></li>
	<li id="it-install-sample-data-import-data" class="hide">
		<span class="it-title"><?php _e( 'Install sample data.', IT_THEME_TEXTDOMAIN ); ?></span>
		<i class="jsn-icon16 jsn-icon-loading"></i>
	</li>
</ul>

<div id="it-install-sample-data-manually" class="hide">
	<form action="<?php echo get_admin_url(); ?>?it-gadget=sample-data&action=upload" enctype="multipart/form-data" method="post" target="it-upload-sample-data">
		<ol>
			<li>
				<?php _e( 'Please download sample data package manually', IT_THEME_TEXTDOMAIN ); ?>
				<a href="<?php echo esc_url( $data ); ?>" class="btn btn-sm"><?php _e( 'Download File', IT_THEME_TEXTDOMAIN ); ?></a>
			</li>
			<li>
				<?php _e( 'Select the downloaded sample data package to install', IT_THEME_TEXTDOMAIN ); ?>
				<input name="package" type="file" value="" />
				<br />
				<span class="it-status alert alert-error hide"><?php _e( 'Please select the downloaded sample data package.', IT_THEME_TEXTDOMAIN ); ?></span>
			</li>
		</ol>
	</form>
	<iframe src="about:blank" class="hide" id="it-upload-sample-data" name="it-upload-sample-data"></iframe>
</div>

<div id="it-install-sample-data-success-message" class="it-success-message hide">
	<h3>
		<?php _e( 'Sample data is successfully installed', IT_THEME_TEXTDOMAIN ); ?>
	</h3>
	<p>
		<?php
		printf(
			__( 'Congratulations, your website now looks the same as %s live demo website.', IT_THEME_TEXTDOMAIN ),
			IT_THEME_NAME
		);
		?>
	</p>

	<div class="it-status alert alert-error hide">
		<h4>
			<?php _e( 'Attention!', IT_THEME_TEXTDOMAIN ); ?>
		</h4>
		<p>
			<?php _e( 'Sample data for following plugins could NOT be installed:', IT_THEME_TEXTDOMAIN ); ?>
		</p>

		<div class="it-status-message"></div>
	</div>
</div>

<div id="it-install-sample-data-failure-message" class="it-failure-message hide">
	<h3>
		<?php _e( 'Sample data is not successfully installed', IT_THEME_TEXTDOMAIN ); ?>
	</h3>

	<div class="it-status alert alert-error">
		<div class="it-status-message"><?php _e( 'Please fix any problem with your internet connection then try again.', IT_THEME_TEXTDOMAIN ); ?></div>
	</div>
</div>

<div id="it-install-sample-data-toolbar" class="it-toolbar">
	<hr />

	<button class="btn btn-primary btn-finish-install hide"><?php _e( 'Finish', IT_THEME_TEXTDOMAIN ); ?></button>
	<button class="btn btn-primary btn-confirm-install hide"><?php _e( 'Continue', IT_THEME_TEXTDOMAIN ); ?></button>
	<button class="btn btn-default btn-cancel-install"><?php _e( 'Cancel', IT_THEME_TEXTDOMAIN ); ?></button>
</div>
