/**
* Theme Functions
*
* @package DTtheme
* @author DesignThemes
* @link http://wedesignthemes.com
*/
define( 'AUDITING_THEME_DIR', get_template_directory() );
define( 'AUDITING_THEME_URI', get_template_directory_uri() );
define( 'AUDITING_CORE_PLUGIN', WP_PLUGIN_DIR.'/designthemes-core-features' );
if (function_exists ('wp_get_theme')) :
$themeData = wp_get_theme();
define( 'AUDITING_THEME_NAME', $themeData->get('Name'));
define( 'AUDITING_THEME_VERSION', $themeData->get('Version'));
endif;
/* ---------------------------------------------------------------------------
* Loads Kirki
* ---------------------------------------------------------------------------*/
require_once( AUDITING_THEME_DIR .'/kirki/index.php' );
/* ---------------------------------------------------------------------------
* Loads Codestar
* ---------------------------------------------------------------------------*/
require_once AUDITING_THEME_DIR .'/cs-framework/cs-framework.php';
define( 'CS_ACTIVE_TAXONOMY', false );
define( 'CS_ACTIVE_SHORTCODE', false );
define( 'CS_ACTIVE_CUSTOMIZE', false );
/* ---------------------------------------------------------------------------
* Create function to get theme options
* --------------------------------------------------------------------------- */
function auditing_cs_get_option($key, $value = '') {
$v = cs_get_option( $key );
if ( !empty( $v ) ) {
return $v;
} else {
return $value;
}
}
/* ---------------------------------------------------------------------------
* Loads Theme Textdomain
* ---------------------------------------------------------------------------*/
define( 'AUDITING_LANG_DIR', AUDITING_THEME_DIR. '/languages' );
load_theme_textdomain( 'auditing', AUDITING_LANG_DIR );
/* ---------------------------------------------------------------------------
* Loads the Admin Panel Style
* ---------------------------------------------------------------------------*/
function auditing_admin_scripts() {
wp_enqueue_style('auditing-admin', AUDITING_THEME_URI .'/cs-framework-override/style.css');
}
add_action( 'admin_enqueue_scripts', 'auditing_admin_scripts' );
/* ---------------------------------------------------------------------------
* Loads Theme Functions
* ---------------------------------------------------------------------------*/
// Functions --------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-functions.php' );
require_once( AUDITING_THEME_DIR .'/framework/utils.php' );
// Header -----------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-head.php' );
// Menu -------------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-menu.php' );
require_once( AUDITING_THEME_DIR .'/framework/register-mega-menu.php' );
// Hooks ------------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-hooks.php' );
// Likes ------------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-likes.php' );
// Widgets ----------------------------------------------------------------------
add_action( 'widgets_init', 'auditing_widgets_init' );
function auditing_widgets_init() {
require_once( AUDITING_THEME_DIR .'/framework/register-widgets.php' );
}
// Plugins ----------------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-plugins.php' );
// WooCommerce ------------------------------------------------------------------
if( function_exists( 'is_woocommerce' ) ){
require_once( AUDITING_THEME_DIR .'/framework/register-woocommerce.php' );
}
// WP Store Locator -------------------------------------------------------------
if( auditing_plugin_active( 'wp-store-locator/wp-store-locator.php' ) ){
require_once( AUDITING_THEME_DIR .'/framework/register-storelocator.php' );
}
// Privacy & Cookies ------------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-privacy.php' );
// Register Gutenberg -----------------------------------------------------------
require_once( AUDITING_THEME_DIR .'/framework/register-gutenberg-editor.php' );
?>
Warning: session_start(): Cannot start session when headers already sent in /home/u716866140/domains/stellax.com/public_html/wp-content/plugins/unyson/framework/includes/hooks.php on line 259