<?php
/*
 * Disallow direct access
 */
if( !defined( 'ABSPATH' ) ) {
    die( 'Forbidden.' );
}


/**
 * Edify functions and definitions
 */

 define( 'EDIFY_THEME', true );

if ( ! defined( 'EDIFY_VERSION' ) ) {
	// Replace the version number of the theme on each release.
	define( 'EDIFY_VERSION', '1.0.10' );
}

// shorthand contants for theme assets url
// ------------------------------------------------------------------------
define('EDIFY_THEME_URI', get_template_directory_uri());
define('EDIFY_THEME_ASSETS', get_template_directory_uri().'/assets');

define('EDIFY_IMG', EDIFY_THEME_ASSETS . '/images');
define('EDIFY_CSS', EDIFY_THEME_ASSETS . '/css');

define('EDIFY_PLUGINS', EDIFY_THEME_ASSETS . '/vendors');
define('EDIFY_JS',EDIFY_THEME_ASSETS . '/js');

define('EDIFY_THEME_DIR', get_template_directory());

define('EDIFY_INC',EDIFY_THEME_DIR . '/inc');
define('EDIFY_CORE',EDIFY_THEME_DIR . '/core');


/**
 * Core Setup
 */

 require EDIFY_CORE . '/setup.php';


/**
 * Sidebars Setup
 */

 require EDIFY_CORE . '/sidebars.php';

 /**
 * Main Scripts
 */

require EDIFY_CORE . '/scripts.php';

/**
 * default Customizer additions.
 */
require EDIFY_INC . '/customizer.php';
/**
 * Implement the Custom Header feature.
 */
require EDIFY_INC . '/custom-header.php';

/**
 * Custom template tags for this theme.
 */
require EDIFY_INC . '/template-tags.php';

/**
 * Plugin Activation
 */
require EDIFY_INC . '/tgm-plugin/plugin-active.php';

/**
 * Functions which enhance the theme by hooking into WordPress.
 */
require EDIFY_INC . '/template-functions.php';
require EDIFY_INC . '/edify-functions.php';
require EDIFY_INC . '/theme-style.php';

/**
 * Customizer Function
 */

if(class_exists('kirki') ){
	require EDIFY_CORE . '/customizer/options.php';
}


/**
 * Header Footer
 */
require EDIFY_INC . '/header-footer.php';



