<?php
/**
 * Basic theme functions and definitions.
 *
 * This theme uses PHP namespaces. It makes sure that we have no conflicts with
 * WordPress core and plugins.
 *
 * @see http://php.net/manual/en/language.namespaces.php
 *
 * @package MadeByAura\Prime
 * @author  MadeByAura.com
 */

namespace MadeByAura\Prime;

defined( 'ABSPATH' ) || die();

// Auto-load theme classes and third-party packages using Composer.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
	require_once __DIR__ . '/vendor/autoload.php';
} else {
	exit(
		wp_kses_post(
			sprintf(
				'Run %3$s%1$s%4$s at %3$s%2$s%4$s to generate autoload files and try again.',
				'composer install',
				__DIR__,
				'<code style="background-color: yellow;">',
				'</code>'
			)
		)
	);
}

// Bootstrap.
Bootstrap::init();
