<?php
/**
 * The template to display Admin notices
 *
 * @package WordPress
 * @subpackage JACK_WELL
 * @since JACK_WELL 1.0.1
 */
 
$jack_well_theme_obj = wp_get_theme();
?>
<div class="update-nag" id="jack_well_admin_notice">
	<h3 class="jack_well_notice_title"><?php
		// Translators: Add theme name and version to the 'Welcome' message
		echo esc_html(sprintf(__('Welcome to %1$s v.%2$s', 'jack-well'),
				$jack_well_theme_obj->name . (JACK_WELL_THEME_FREE ? ' ' . __('Free', 'jack-well') : ''),
				$jack_well_theme_obj->version
				));
	?></h3>
	<?php
	if (!jack_well_exists_trx_addons()) {
		?><p><?php echo wp_kses_data(__('Attention! Plugin "ThemeREX Addons is required! Please, install and activate it!', 'jack-well')); ?></p><?php
	}
	?><p>
		<a href="<?php echo esc_url(admin_url().'themes.php?page=jack_well_about'); ?>" class="button button-primary"><i class="dashicons dashicons-nametag"></i> <?php
			// Translators: Add theme name
			echo esc_html(sprintf(__('About %s', 'jack-well'), $jack_well_theme_obj->name));
		?></a>
		<?php
		if (jack_well_get_value_gp('page')!='tgmpa-install-plugins') {
			?>
			<a href="<?php echo esc_url(admin_url().'themes.php?page=tgmpa-install-plugins'); ?>" class="button button-primary"><i class="dashicons dashicons-admin-plugins"></i> <?php esc_html_e('Install plugins', 'jack-well'); ?></a>
			<?php
		}
		if (function_exists('jack_well_exists_trx_addons') && jack_well_exists_trx_addons() && class_exists('trx_addons_demo_data_importer')) {
			?>
			<a href="<?php echo esc_url(admin_url().'themes.php?page=trx_importer'); ?>" class="button button-primary"><i class="dashicons dashicons-download"></i> <?php esc_html_e('One Click Demo Data', 'jack-well'); ?></a>
			<?php
		}
		?>
        <a href="<?php echo esc_url(admin_url().'customize.php'); ?>" class="button button-primary"><i class="dashicons dashicons-admin-appearance"></i> <?php esc_html_e('Theme Customizer', 'jack-well'); ?></a>
		<span> <?php esc_html_e('or', 'jack-well'); ?> </span>
        <a href="<?php echo esc_url(admin_url().'themes.php?page=theme_options'); ?>" class="button button-primary"><i class="dashicons dashicons-admin-appearance"></i> <?php esc_html_e('Theme Options', 'jack-well'); ?></a>
        <a href="#" class="button jack_well_hide_notice"><i class="dashicons dashicons-dismiss"></i> <?php esc_html_e('Hide Notice', 'jack-well'); ?></a>
	</p>
</div>