Beispiel #1
0
 /**
  * Return the core plugin directory name.
  * Default name if any luck.
  *
  * @return string
  */
 function themosis_plugin_directory_name()
 {
     return class_exists('THFWK_Themosis') ? THFWK_Themosis::getDirName() : 'themosis-framework';
 }
Beispiel #2
0
             */
            // Framework paths.
            $paths = apply_filters('themosis_framework_paths', []);
            // Plugin base path.
            $paths['plugin'] = __DIR__ . DS;
            // Framework base path.
            $paths['sys'] = __DIR__ . DS . 'src' . DS . 'Themosis' . DS;
            // Storage path.
            $paths['storage'] = THEMOSIS_STORAGE;
            // Register globally the paths
            themosis_set_paths($paths);
            // Bootstrap the framework
            require_once themosis_path('plugin') . 'bootstrap' . DS . 'start.php';
        }
        /**
         * Returns the directory name.
         *
         * @return string
         */
        public static function getDirName()
        {
            return static::$dirName;
        }
    }
}
/**
 * Load the main class.
 *
 */
$GLOBALS['THFWK_Themosis'] = THFWK_Themosis::getInstance();