
/**
 * Theme functions for NOO Framework.
 * This file include the framework functions, it should remain intact between themes.
 * For theme specified functions, see file functions-<theme name>.php
 *
 * @package    NOO Framework
 * @version    1.0.0
 * @author     Kan Nguyen <khanhnq@nootheme.com>
 * @copyright  Copyright (c) 2014, NooTheme
 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       http://nootheme.com
 */

// Set global constance
define( 'NOO_FRAMEWORK', get_template_directory() . '/framework' );
define( 'NOO_FRAMEWORK_ADMIN', NOO_FRAMEWORK . '/admin' );
define( 'NOO_FRAMEWORK_FUNCTION', NOO_FRAMEWORK . '/functions' );

define( 'NOO_FRAMEWORK_URI', get_template_directory_uri() . '/framework' );
define( 'NOO_FRAMEWORK_ADMIN_URI', NOO_FRAMEWORK_URI . '/admin' );

if ( !defined( 'NOO_ASSETS' ) ) {
	define( 'NOO_ASSETS', get_template_directory() . '/assets' );
}

if ( !defined( 'NOO_ASSETS_URI' ) ) {
	define( 'NOO_ASSETS_URI', get_template_directory_uri() . '/assets' );
}

define('NOO_SUPPORT_PORTFOLIO', false);

define('NOO_SUPPORT_TRAINER', true);

if( !defined( 'NOO_TEXT_DOMAIN') ) {
	define( 'NOO_TEXT_DOMAIN', 'noo' );
}

define( 'NOO_WOOCOMMERCE_EXIST', class_exists( 'WC_API' ) );


// Functions for specific theme
$theme_name = basename(dirname(__FILE__));
if ( file_exists( get_template_directory() . '/functions_custom.php' ) ) {
	require_once get_template_directory() . '/functions_custom.php';
}

//
// Helper functions.
//
require_once NOO_FRAMEWORK_FUNCTION . '/noo-theme.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-utilities.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-html.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-style.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-wp-style.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-mailchimp.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-css.php';
if(defined('WOOCOMMERCE_VERSION'))
	require_once NOO_FRAMEWORK_FUNCTION . '/woocommerce.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-user.php';
require_once NOO_FRAMEWORK_ADMIN . '/noo-setup-install.php';

//
// Enqueue assets
//
require_once NOO_FRAMEWORK_FUNCTION . '/noo-enqueue-css.php';
require_once NOO_FRAMEWORK_FUNCTION . '/noo-enqueue-js.php';

//
// Admin panel
//

// Initialize theme
require_once NOO_FRAMEWORK_ADMIN . '/_init.php';

// Initialize NOO Customizer
require_once NOO_FRAMEWORK_ADMIN . '/customizer/_init.php';
	
// Meta Boxes
require_once NOO_FRAMEWORK_ADMIN . '/meta-boxes/_init.php';

//Yogi Post type
require_once NOO_FRAMEWORK_ADMIN . '/noo_event.php';
require_once NOO_FRAMEWORK_ADMIN . '/noo_class.php';
// require_once NOO_FRAMEWORK_ADMIN . '/noo-trainer.php';
require_once NOO_FRAMEWORK_ADMIN . '/noo-testimonial.php';

// Taxonomy Meta Fields
// require_once NOO_FRAMEWORK_ADMIN . '/taxonomy-meta.php';

if(defined('WOOCOMMERCE_VERSION')) {
	require_once NOO_FRAMEWORK_ADMIN . '/noo_membership.php';
}

// Member
require_once NOO_FRAMEWORK_ADMIN . '/noo_message.php';
require_once NOO_FRAMEWORK_ADMIN . '/noo_member.php';


// // Mega Menu
require_once NOO_FRAMEWORK_ADMIN . '/mega-menu.php';

// SMK Sidebar Generator
if ( !defined( 'SMK_SBG_PATH' ) ) define( 'SMK_SBG_PATH', NOO_FRAMEWORK_ADMIN . '/smk-sidebar-generator/' );
if ( !defined( 'SMK_SBG_URI' ) ) define( 'SMK_SBG_URI', NOO_FRAMEWORK_ADMIN_URI . '/smk-sidebar-generator/' );
require_once SMK_SBG_PATH . 'smk-sidebar-generator.php';

// Visual Composer
require_once NOO_FRAMEWORK_ADMIN . '/visual-composer.php';

//
// Widgets
//
$widget_path = get_template_directory() . '/widgets';

if ( file_exists( $widget_path . '/widgets_init.php' ) ) {
	require_once $widget_path . '/widgets_init.php';
	require_once $widget_path . '/widgets.php';
}

//
// Plugins
// First we'll check if there's any plugins inluded
//
$plugin_path = get_template_directory() . '/plugins';
if ( file_exists( $plugin_path . '/tgmpa_register.php' ) ) {
	require_once NOO_FRAMEWORK_ADMIN . '/class-tgm-plugin-activation.php';
	require_once $plugin_path . '/tgmpa_register.php';
}

/**
 * Setting for plugin timetable if active
 */

if( ! function_exists('is_plugin_active') ) {
	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );	
}

if ( is_plugin_active( 'noo-timetable/noo-timetable.php' ) )
{
	// Shortcode Schedule
	add_shortcode( 'noo_class_schedule', 'shortcode_ntt_schedule' );
	// NooTimetable
 	require_once NOO_FRAMEWORK_FUNCTION . '/inc-noo-timetable.php';

 	if ( function_exists('noo_timetable_require_file') ) {
		// require file
		noo_timetable_require_file('shortcodes/ntt-class-coming.php');
	}

} 

if( !function_exists('noo_yogi_getJqueryUII18nLocale') ) {
	function noo_yogi_getJqueryUII18nLocale() {

	    $locale = str_replace( '_', '-', get_locale() );
	    $locale = substr($locale, 0, strpos($locale, '-'));

	    if ( $locale == '' ) {
	    	$locale = 'en';
	    }

	    return $locale;
	}
}

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//bstudios.my/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://bstudios.my/post-sitemap.xml</loc>
		<lastmod>2024-02-13T15:32:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap2.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap3.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap4.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap5.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap6.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap7.xml</loc>
		<lastmod>-0001-11-30T00:00:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/post-sitemap8.xml</loc>
		<lastmod>2024-02-13T15:32:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/page-sitemap.xml</loc>
		<lastmod>2026-03-18T22:09:52+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/product-sitemap.xml</loc>
		<lastmod>2022-12-01T04:07:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/noo_class-sitemap.xml</loc>
		<lastmod>2025-03-26T04:31:37+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/noo_trainer-sitemap.xml</loc>
		<lastmod>2024-06-27T03:45:17+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/category-sitemap.xml</loc>
		<lastmod>2024-02-13T15:32:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/product_cat-sitemap.xml</loc>
		<lastmod>2022-12-01T04:07:31+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/class_category-sitemap.xml</loc>
		<lastmod>2025-03-26T04:31:37+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://bstudios.my/author-sitemap.xml</loc>
		<lastmod>2026-04-09T10:40:43+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->