

/**
 *
 * Sets up theme defaults and registers support for various WordPress features.
 *
 */

if ( ! defined( 'HILLSTAR_THEME_REQUIRED_PHP_VERSION' ) ) {
	define( 'HILLSTAR_THEME_REQUIRED_PHP_VERSION', '5.6.0' );
}

add_action( 'after_switch_theme', 'hillstar_check_php_version' );

function hillstar_check_php_version() {
	// Compare versions.
	if ( version_compare( phpversion(), HILLSTAR_THEME_REQUIRED_PHP_VERSION, '<' ) ) :
		// Theme not activated info message.
		add_action( 'admin_notices', 'hillstar_php_version_notice' );

		// Switch back to previous theme.
		switch_theme( get_option( 'theme_switched' ) );

		return false;
	endif;
}

function hillstar_php_version_notice() {
	?>
    <div class="notice notice-alt notice-error notice-large">
        <h4>Hillstar theme activation failed!</h4>
        <p>
			You need to update your PHP version to use the  <strong>Hillstar</strong>.            <br/>
			Current php version is: <strong>7.4.33</strong> and the mininum required version is <strong>HILLSTAR_THEME_REQUIRED_PHP_VERSION</strong>
        </p>
    </div>
	<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://optionsandideas.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://optionsandideas.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-posts-post-2.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-posts-post-3.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-posts-post-4.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://optionsandideas.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
