/** * * @author Gaviasthemes Team * @copyright Copyright (C) 2022 Gaviasthemes. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * */ define('CONULT_THEME_DIR', get_template_directory()); define('CONULT_THEME_URL', get_template_directory_uri()); // Include list of files of theme. require_once(CONULT_THEME_DIR . '/includes/functions.php'); require_once(CONULT_THEME_DIR . '/includes/template.php'); require_once(CONULT_THEME_DIR . '/includes/hook.php'); require_once(CONULT_THEME_DIR . '/includes/comment.php'); require_once(CONULT_THEME_DIR . '/includes/metaboxes.php'); require_once(CONULT_THEME_DIR . '/includes/customize.php'); require_once(CONULT_THEME_DIR . '/includes/menu.php'); require_once(CONULT_THEME_DIR . '/includes/elementor/hooks.php'); //Load Woocommerce plugin if(class_exists('WooCommerce')){ add_theme_support('woocommerce'); require_once(CONULT_THEME_DIR . '/includes/woocommerce/functions.php'); require_once(CONULT_THEME_DIR . '/includes/woocommerce/hooks.php'); } // Load Redux - Theme options framework if(class_exists('Redux')){ require(CONULT_THEME_DIR . '/includes/options/init.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-general.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-header.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-footer.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-styling.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-page.php'); require_once(CONULT_THEME_DIR . '/includes/options/opts-portfolio.php'); if(class_exists('WooCommerce')){ require_once(CONULT_THEME_DIR . '/includes/options/opts-woo.php'); } } // TGM plugin activation if (is_admin()) { require_once(CONULT_THEME_DIR . '/includes/tgmpa/class-tgm-plugin-activation.php'); require(CONULT_THEME_DIR . '/includes/tgmpa/config.php'); } load_theme_textdomain('conult', get_template_directory() . '/languages'); //-------- Register sidebar default in theme ----------- //------------------------------------------------------ function conult_widgets_init() { register_sidebar(array( 'name' => esc_html__('Default Sidebar', 'conult'), 'id' => 'default_sidebar', 'description' => esc_html__('Appears in the Default Sidebar section of the site.', 'conult'), 'before_widget' => '', 'before_title' => '