<?php
/**
 * FlexiBlog functions and definitions.
 *
 * @package FlexiBlog
 */

defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'flexiblog_promo_banner_init' ) ) {
	/**
	 * Load the admin promotional banner.
	 */
	function flexiblog_promo_banner_init() {
		if ( ! is_admin() ) {
			return;
		}

		require_once get_template_directory() . '/promo/class-flexiblog-promo-banner.php';

		new FlexiBlog_Promo_Banner();
	}
}
add_action( 'after_setup_theme', 'flexiblog_promo_banner_init' );
