<?php
$screen = get_current_screen();
if ( ! empty( $screen->base ) && 'appearance_page_gutenify-bold-info' === $screen->base ) {
	return false;
}

$gutenify_is_installed = file_exists( plugin_dir_path( 'gutenify' ) );
$gutenify_is_active = in_array( 'gutenify/gutenify.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );

$show_notice = ! ( $gutenify_is_installed && $gutenify_is_active );

if ( ! $show_notice ) {
	return false;
}
?>
<div class="notice notice-success is-dismissible gutenify-bold-admin-notice">
	<div class="gutenify-bold-admin-notice-wrapper">
		<h2><?php esc_html_e( 'Hey, Thank you for installing ', 'gutenify-bold' ); ?> <?php esc_html_e( 'Gutenify Bold Theme!', 'gutenify-bold' ); ?></h2>
		<p><?php esc_html_e( 'We strongly recommend installing plugin: ', 'gutenify-bold' ); ?> <strong><?php esc_html_e( 'Gutenify', 'gutenify-bold' ); ?></strong></p>
		<p><strong><?php esc_html_e( 'Gutenify', 'gutenify-bold' ); ?></strong> <?php esc_html_e( 'provides multiple template kit and also add advance features to your site.', 'gutenify-bold' ); ?></p>
		<a href="<?php echo esc_url( admin_url( 'themes.php?page=gutenify-bold-info' ) ); ?>" class="gutenify-bold-admin-notice-primary-button"><?php esc_html_e( 'Get Templates', 'gutenify-bold' ); ?></a>
		<a href="<?php echo esc_url( 'https://gutenify.com'); ?>" target="_blank"><?php esc_html_e( 'Learn more about Gutenify', 'gutenify-bold' ); ?></a>
	</div>
</div>
<?php
