예제 #1
0
파일: init.php 프로젝트: patrickcurl/monks
 /**
  * Unique access to instance of YITH_Tab_Manager class
  *
  * @return YITH_Tab_Manager|YITH_Tab_Manager_Premium
  * @since 1.0.0
  */
 function YITH_Tab_Manager()
 {
     // Load required classes and functions
     require_once YWTM_INC . 'functions.yith-tab-manager.php';
     require_once YWTM_INC . 'class.yith-woocommerce-tab-manager.php';
     if (defined('YWTM_PREMIUM') && file_exists(YWTM_INC . 'class.yith-woocommerce-tab-manager-premium.php')) {
         require_once YWTM_INC . 'class.yith-woocommerce-tab-manager-premium.php';
         return YITH_WC_Tab_Manager_Premium::get_instance();
     }
     return YITH_WC_Tab_Manager::get_instance();
 }
예제 #2
0
파일: init.php 프로젝트: yarwalker/ecobyt
 /**
  * Unique access to instance of YITH_Tab_Manager class
  *
  * @return YITH_Tab_Manager
  * @since 1.0.5
  */
 function YITH_Tab_Manager_Init()
 {
     /* Load YWTM text domain */
     load_plugin_textdomain('yith-woocommerce-tab-manager', false, dirname(plugin_basename(__FILE__)) . '/languages/');
     // Load required classes and functions
     require_once YWTM_INC . 'functions.yith-tab-manager.php';
     require_once YWTM_INC . 'class.yith-woocommerce-tab-manager.php';
     global $YIT_Tab_Manager;
     $YIT_Tab_Manager = YITH_WC_Tab_Manager::get_instance();
 }