<?php

//define constants
define( 'SELECT_ROOT', get_template_directory_uri() );
define( 'SELECT_ROOT_DIR', get_template_directory() );
define( 'SELECT_ASSETS_ROOT', SELECT_ROOT . '/assets' );
define( 'SELECT_ASSETS_ROOT_DIR', SELECT_ROOT_DIR . '/assets' );
define( 'SELECT_FRAMEWORK_ROOT', SELECT_ROOT . '/framework' );
define( 'SELECT_FRAMEWORK_ROOT_DIR', SELECT_ROOT_DIR . '/framework' );
define( 'SELECT_FRAMEWORK_ADMIN_ASSETS_ROOT', SELECT_ROOT . '/framework/admin/assets' );
define( 'SELECT_FRAMEWORK_ICONS_ROOT', SELECT_ROOT . '/framework/lib/icons-pack' );
define( 'SELECT_FRAMEWORK_ICONS_ROOT_DIR', SELECT_ROOT_DIR . '/framework/lib/icons-pack' );
define( 'SELECT_FRAMEWORK_MODULES_ROOT', SELECT_ROOT . '/framework/modules' );
define( 'SELECT_FRAMEWORK_MODULES_ROOT_DIR', SELECT_ROOT_DIR . '/framework/modules' );
define( 'SELECT_FRAMEWORK_HEADER_ROOT', SELECT_ROOT . '/framework/modules/header' );
define( 'SELECT_FRAMEWORK_HEADER_ROOT_DIR', SELECT_ROOT_DIR . '/framework/modules/header' );
define( 'SELECT_FRAMEWORK_HEADER_TYPES_ROOT', SELECT_ROOT . '/framework/modules/header/types' );
define( 'SELECT_FRAMEWORK_HEADER_TYPES_ROOT_DIR', SELECT_ROOT_DIR . '/framework/modules/header/types' );
define( 'SELECT_FRAMEWORK_SEARCH_ROOT', SELECT_ROOT . '/framework/modules/search' );
define( 'SELECT_FRAMEWORK_SEARCH_ROOT_DIR', SELECT_ROOT_DIR . '/framework/modules/search' );
define( 'SELECT_THEME_ENV', 'false' );
define( 'SELECT_PROFILE_SLUG', 'select' );
define( 'SELECT_OPTIONS_SLUG', 'cevian_select_theme_menu');

//include necessary files
include_once SELECT_ROOT_DIR . '/framework/qodef-framework.php';
include_once SELECT_ROOT_DIR . '/includes/nav-menu/qodef-menu.php';
require_once SELECT_ROOT_DIR . '/includes/plugins/class-tgm-plugin-activation.php';
include_once SELECT_ROOT_DIR . '/includes/plugins/plugins-activation.php';
include_once SELECT_ROOT_DIR . '/assets/custom-styles/general-custom-styles.php';
include_once SELECT_ROOT_DIR . '/assets/custom-styles/general-custom-styles-responsive.php';

if ( file_exists( SELECT_ROOT_DIR . '/export' ) ) {
	include_once SELECT_ROOT_DIR . '/export/export.php';
}

if ( ! is_admin() ) {
	include_once SELECT_ROOT_DIR . '/includes/qodef-body-class-functions.php';
	include_once SELECT_ROOT_DIR . '/includes/qodef-loading-spinners.php';
}