Files
mataba/shop/xshop-theme/functions.php
T

31 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* XShop Theme Bootstrap
*
* Thin loader – no business logic here. Each module exposes `xshop_*` setup functions.
*
* @package XShop
*/
declare(strict_types=1);
defined('ABSPATH') || exit;
define('XSHOP_VERSION', '1.0.0');
define('XSHOP_THEME_DIR', get_template_directory());
define('XSHOP_THEME_URI', get_template_directory_uri());
// Load order matters: helpers first.
require_once XSHOP_THEME_DIR . '/inc/helpers/sanitize.php';
require_once XSHOP_THEME_DIR . '/inc/helpers/template.php';
require_once XSHOP_THEME_DIR . '/inc/setup/theme-support.php';
require_once XSHOP_THEME_DIR . '/inc/setup/menus.php';
require_once XSHOP_THEME_DIR . '/inc/setup/sidebars.php';
require_once XSHOP_THEME_DIR . '/inc/setup/body-classes.php';
require_once XSHOP_THEME_DIR . '/inc/setup/assets.php';
require_once XSHOP_THEME_DIR . '/inc/woocommerce/setup.php';
require_once XSHOP_THEME_DIR . '/inc/compatibility/gutenberg.php';
require_once XSHOP_THEME_DIR . '/inc/compatibility/elementor.php';
require_once XSHOP_THEME_DIR . '/inc/customization/options.php';
require_once XSHOP_THEME_DIR . '/inc/performance/loader.php';