/**
 * Hestia functions and definitions
 *
 * @package Hestia
 * @since   Hestia 1.0
 */

define( 'HESTIA_VERSION', '3.0.23' );
define( 'HESTIA_VENDOR_VERSION', '1.0.2' );
define( 'HESTIA_PHP_INCLUDE', trailingslashit( get_template_directory() ) . 'inc/' );
define( 'HESTIA_CORE_DIR', HESTIA_PHP_INCLUDE . 'core/' );

if ( ! defined( 'HESTIA_DEBUG' ) ) {
	define( 'HESTIA_DEBUG', false );
}

// Load hooks
require_once( HESTIA_PHP_INCLUDE . 'hooks/hooks.php' );

// Load Helper Globally Scoped Functions
require_once( HESTIA_PHP_INCLUDE . 'helpers/sanitize-functions.php' );
require_once( HESTIA_PHP_INCLUDE . 'helpers/layout-functions.php' );

if ( class_exists( 'WooCommerce', false ) ) {
	require_once( HESTIA_PHP_INCLUDE . 'compatibility/woocommerce/functions.php' );
}

if ( function_exists( 'max_mega_menu_is_enabled' ) ) {
	require_once( HESTIA_PHP_INCLUDE . 'compatibility/max-mega-menu/functions.php' );
}

// Load starter content
require_once( HESTIA_PHP_INCLUDE . 'compatibility/class-hestia-starter-content.php' );


/**
 * Adds notice for PHP < 5.3.29 hosts.
 */
function hestia_no_support_5_3() {
	$message = __( 'Hey, we\'ve noticed that you\'re running an outdated version of PHP which is no longer supported. Make sure your site is fast and secure, by upgrading PHP to the latest version.', 'hestia' );

	printf( '<div class="error"><p>%1$s</p></div>', esc_html( $message ) );
}


if ( version_compare( PHP_VERSION, '5.3.29' ) < 0 ) {
	/**
	 * Add notice for PHP upgrade.
	 */
	add_filter( 'template_include', '__return_null', 99 );
	switch_theme( WP_DEFAULT_THEME );
	unset( $_GET['activated'] );
	add_action( 'admin_notices', 'hestia_no_support_5_3' );

	return;
}

/**
 * Begins execution of the theme core.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function hestia_run() {

	require_once HESTIA_CORE_DIR . 'class-hestia-autoloader.php';
	$autoloader = new Hestia_Autoloader();

	spl_autoload_register( array( $autoloader, 'loader' ) );

	new Hestia_Core();

	$vendor_file = trailingslashit( get_template_directory() ) . 'vendor/composer/autoload_files.php';
	if ( is_readable( $vendor_file ) ) {
		$files = require_once $vendor_file;
		foreach ( $files as $file ) {
			if ( is_readable( $file ) ) {
				include_once $file;
			}
		}
	}
	add_filter( 'themeisle_sdk_products', 'hestia_load_sdk' );

	if ( class_exists( 'Ti_White_Label', false ) ) {
		Ti_White_Label::instance( get_template_directory() . '/style.css' );
	}
}

/**
 * Loads products array.
 *
 * @param array $products All products.
 *
 * @return array Products array.
 */
function hestia_load_sdk( $products ) {
	$products[] = get_template_directory() . '/style.css';

	return $products;
}

require_once( HESTIA_CORE_DIR . 'class-hestia-autoloader.php' );

/**
 * The start of the app.
 *
 * @since   1.0.0
 */
hestia_run();

/**
 * Append theme name to the upgrade link
 * If the active theme is child theme of Hestia
 *
 * @param string $link - Current link.
 *
 * @return string $link - New upgrade link.
 * @package hestia
 * @since   1.1.75
 */
function hestia_upgrade_link( $link ) {

	$theme_name = wp_get_theme()->get_stylesheet();

	$hestia_child_themes = array(
		'orfeo',
		'fagri',
		'tiny-hestia',
		'christmas-hestia',
		'jinsy-magazine',
	);

	if ( $theme_name === 'hestia' ) {
		return $link;
	}

	if ( ! in_array( $theme_name, $hestia_child_themes, true ) ) {
		return $link;
	}

	$link = add_query_arg(
		array(
			'theme' => $theme_name,
		),
		$link
	);

	return $link;
}

add_filter( 'hestia_upgrade_link_from_child_theme_filter', 'hestia_upgrade_link' );

/**
 * Check if $no_seconds have passed since theme was activated.
 * Used to perform certain actions, like displaying upsells or add a new recommended action in About Hestia page.
 *
 * @param integer $no_seconds number of seconds.
 *
 * @return bool
 * @since  1.1.45
 * @access public
 */
function hestia_check_passed_time( $no_seconds ) {
	$activation_time = get_option( 'hestia_time_activated' );
	if ( ! empty( $activation_time ) ) {
		$current_time    = time();
		$time_difference = (int) $no_seconds;
		if ( $current_time >= $activation_time + $time_difference ) {
			return true;
		} else {
			return false;
		}
	}

	return true;
}

/**
 * Legacy code function.
 */
function hestia_setup_theme() {
	return;
}

<?xml version="1.0" encoding="UTF-8"?>
<!-- This sitemap was dynamically generated on April 3, 2026 at 6:07 pm by All in One SEO - the original SEO plugin for WordPress. -->

<?xml-stylesheet type="text/xsl" href="https://samplefreebie.com/default.xsl"?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Sample Freebies</title>
		<link><![CDATA[https://samplefreebie.com]]></link>
		<description><![CDATA[Sample Freebies]]></description>
		<lastBuildDate><![CDATA[Wed, 24 Aug 2022 04:58:52 +0000]]></lastBuildDate>
		<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
		<atom:link href="https://samplefreebie.com/sitemap.rss" rel="self" type="application/rss+xml" />
		<ttl><![CDATA[60]]></ttl>

		<item>
			<guid><![CDATA[https://samplefreebie.com/kohls-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/kohls-coupon/]]></link>
			<title>Kohl&#8217;s Coupon</title>
			<pubDate><![CDATA[Wed, 24 Aug 2022 04:58:52 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/2022/06/22/hello-world/]]></guid>
			<link><![CDATA[https://samplefreebie.com/2022/06/22/hello-world/]]></link>
			<title>Hello world!</title>
			<pubDate><![CDATA[Wed, 22 Jun 2022 20:06:16 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/store-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/store-coupon/]]></link>
			<title>Store Coupon</title>
			<pubDate><![CDATA[Wed, 20 Jul 2022 19:45:02 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/pet-freebie/]]></guid>
			<link><![CDATA[https://samplefreebie.com/pet-freebie/]]></link>
			<title>Pet Freebie</title>
			<pubDate><![CDATA[Tue, 28 Jun 2022 00:56:41 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/]]></guid>
			<link><![CDATA[https://samplefreebie.com/]]></link>
			<title>Get Your Freebie</title>
			<pubDate><![CDATA[Tue, 20 Sep 2022 02:16:57 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/grocery-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/grocery-coupon/]]></link>
			<title>Grocery Coupon</title>
			<pubDate><![CDATA[Sat, 23 Jul 2022 14:15:53 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/kate-spade-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/kate-spade-coupon/]]></link>
			<title>Kate Spade Coupon</title>
			<pubDate><![CDATA[Sat, 13 Aug 2022 16:11:07 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/beauty-freebies/]]></guid>
			<link><![CDATA[https://samplefreebie.com/beauty-freebies/]]></link>
			<title>Beauty &#038; Health Freebie</title>
			<pubDate><![CDATA[Sat, 06 Aug 2022 21:15:13 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/victoria-secret-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/victoria-secret-coupon/]]></link>
			<title>Victoria Secret Coupon</title>
			<pubDate><![CDATA[Mon, 17 Oct 2022 05:02:10 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/birthday-freebie/]]></guid>
			<link><![CDATA[https://samplefreebie.com/birthday-freebie/]]></link>
			<title>Birthday Freebie</title>
			<pubDate><![CDATA[Fri, 15 Jul 2022 05:53:15 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/food-freebie/]]></guid>
			<link><![CDATA[https://samplefreebie.com/food-freebie/]]></link>
			<title>Food Freebie</title>
			<pubDate><![CDATA[Fri, 15 Jul 2022 05:04:08 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/dicks-sprting-goods-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/dicks-sprting-goods-coupon/]]></link>
			<title>Dick&#8217;s Sprting Goods Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 03:51:35 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/sephora-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/sephora-coupon/]]></link>
			<title>Sephora Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:14:55 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/walgreens-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/walgreens-coupon/]]></link>
			<title>Walgreens Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:13:23 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/ulta-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/ulta-coupon/]]></link>
			<title>Ulta Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:59 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/target-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/target-coupon/]]></link>
			<title>Target Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:46 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/t-j-maxx-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/t-j-maxx-coupon/]]></link>
			<title>T.J.maxx Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:35 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/party-city-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/party-city-coupon/]]></link>
			<title>Party City Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:21 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/macys-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/macys-coupon/]]></link>
			<title>Macys Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:12 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/kroger-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/kroger-coupon/]]></link>
			<title>Kroger Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:12:04 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/joann-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/joann-coupon/]]></link>
			<title>Joann Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:11:34 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/express-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/express-coupon/]]></link>
			<title>Express Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:11:17 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/cvs-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/cvs-coupon/]]></link>
			<title>CVS Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:11:05 +0000]]></pubDate>
		</item>
					<item>
			<guid><![CDATA[https://samplefreebie.com/buybuybaby-coupon/]]></guid>
			<link><![CDATA[https://samplefreebie.com/buybuybaby-coupon/]]></link>
			<title>buybuyBABY Coupon</title>
			<pubDate><![CDATA[Fri, 12 Aug 2022 02:10:21 +0000]]></pubDate>
		</item>
				</channel>
</rss>
