* @package Agama * @since 1.0.0 * @since 1.5.0 Updated the code. */ use Agama\Theme; use Agama\Engine; // Do not allow direct access to the file. if( ! defined( 'ABSPATH' ) ) { exit; } ##################################### # INCLUDE THE AGAMA THEME CLASS FILE ##################################### get_template_part( 'framework/class-agama-theme' ); /** * Agama * * Access to the main "Theme" class instance. * * @since 1.5.0 * @return object */ function Agama() { return Theme::get_instance(); } ############################################ # INCLUDE THE AGAMA THEME ENGINE CLASS FILE ############################################ get_template_part( 'framework/class-agama-engine' ); ############################### # START THE AGAMA THEME ENGINE ############################### Engine::run(); /* Omit closing PHP tag to avoid "Headers already sent" issues. */