__('Main Menu', 'elessi-theme'), 'vetical-menu' => __('Vertical Menu', 'elessi-theme'), 'vetical-float-menu' => __('Vertical Float Menu', 'elessi-theme'), 'topbar-menu' => __('Top Menu - Only show level 1', 'elessi-theme') ) ); /** * Set Theme Options */ if (!did_action('nasa_set_options')) { do_action('nasa_set_options'); } /** * Register Font family */ require ELESSI_THEME_PATH . '/cores/nasa-register-fonts.php'; /** * Libraries of theme */ require ELESSI_THEME_PATH . '/cores/nasa-custom-wc-ajax.php'; require ELESSI_THEME_PATH . '/cores/nasa-dynamic-style.php'; require ELESSI_THEME_PATH . '/cores/nasa-widget-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-options.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-woo-functions.php'; require ELESSI_THEME_PATH . '/cores/nasa-woo-actions.php'; require ELESSI_THEME_PATH . '/cores/nasa-shop-ajax.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-headers.php'; require ELESSI_THEME_PATH . '/cores/nasa-theme-footers.php'; require ELESSI_THEME_PATH . '/cores/nasa-yith-wcwl-ext.php'; require ELESSI_THEME_PATH . '/cores/nasa-wishlist.php'; /** * Dokan support */ if (defined('NASA_WOO_ACTIVED') && NASA_WOO_ACTIVED && defined('NASA_DOKAN_ACTIVED') && NASA_DOKAN_ACTIVED) { require ELESSI_THEME_PATH . '/cores/nasa-dokan-functions.php'; } /** * Outdate functions */ require ELESSI_THEME_PATH . '/cores/nasa-outdate-functions.php'; /** * Includes widgets */ require ELESSI_THEME_PATH . '/widgets/wg-nasa-recent-posts.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-categories.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-multi-categories.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-alphabet.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-brands.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-price.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-price-list.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-variations.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-tag-cloud.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-status.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-product-filter-multi-tags.php'; require ELESSI_THEME_PATH . '/widgets/wg-nasa-reset-filter.php'; } endif; /** * Languages */ add_action('after_setup_theme', 'elessi_load_textdomain'); if (!function_exists('elessi_load_textdomain')) : function elessi_load_textdomain() { /** * Load Text Domain - "elessi-theme" */ $locale = apply_filters('theme_locale', determine_locale(), 'elessi-theme'); $mofile = sprintf('%1$s-%2$s.mo', 'elessi-theme', $locale); $df_mofile = $locale . '.mo'; // /wp-content/languages/themes/elessi-theme-{locale}.mo => Support Languages Locate $mofile1 = WP_LANG_DIR . '/themes/' . $mofile; // /wp-content/languages/loco/themes/elessi-theme-{locale}.mo => Support Loco Locate $mofile2 = WP_LANG_DIR . '/loco/themes/' . $mofile; // /wp-content/languages/themes/elessi-theme/elessi-theme-{locale}.mo => Support Languages/themes/elessi-theme Locate $mofile3 = WP_LANG_DIR . '/themes/elessi-theme/' . $mofile; // /wp-content/themes/elessi-theme/languages/elessi-theme-{locale}.mo => Support Language Author Locate $mofile4 = ELESSI_THEME_PATH . '/languages/' . $mofile; $mofile5 = ELESSI_THEME_PATH . '/languages/' . $df_mofile; unload_textdomain('elessi-theme', true); /** * Load textdomain */ if (file_exists($mofile1)) { load_textdomain('elessi-theme', $mofile1); } elseif (file_exists($mofile2)) { load_textdomain('elessi-theme', $mofile2); } elseif (file_exists($mofile3)) { load_textdomain('elessi-theme', $mofile3); } elseif (file_exists($mofile4)) { load_textdomain('elessi-theme', $mofile4); } elseif (file_exists($mofile5)) { load_textdomain('elessi-theme', $mofile5); } else { /** * Default template */ load_theme_textdomain('elessi-theme', ELESSI_THEME_PATH . '/languages'); } } endif;