/*----------------------------------------------------*/
 // Trigger framework default configuration.
 /*----------------------------------------------------*/
 Themosis\Configuration\Configuration::make();
 /*----------------------------------------------------*/
 // Application constants.
 /*----------------------------------------------------*/
 Themosis\Configuration\Constant::load();
 /*----------------------------------------------------*/
 // Application page templates.
 /*----------------------------------------------------*/
 Themosis\Configuration\Template::init();
 /*----------------------------------------------------*/
 // Application image sizes.
 /*----------------------------------------------------*/
 Themosis\Configuration\Images::install();
 /*----------------------------------------------------*/
 // Parse application files and include them.
 // Extends the 'functions.php' file by loading
 // files located under the 'admin' folder.
 /*----------------------------------------------------*/
 Themosis\Core\AdminLoader::add();
 Themosis\Core\WidgetLoader::add();
 /*----------------------------------------------------*/
 // Application widgets.
 /*----------------------------------------------------*/
 Themosis\Core\WidgetLoader::load();
 /*----------------------------------------------------*/
 // Application global JS object.
 /*----------------------------------------------------*/
 Themosis\Ajax\Ajax::set();
Exemple #2
0
// Theme constants.
/*----------------------------------------------------*/
$constants = Themosis\Facades\Config::get('constants');
$constant = new Themosis\Configuration\Constant($constants);
$constant->make();
/*----------------------------------------------------*/
// Theme page templates.
/*----------------------------------------------------*/
$templates = Themosis\Facades\Config::get('templates');
$tpl = new Themosis\Configuration\Template($templates);
$tpl->make();
/*----------------------------------------------------*/
// Theme image sizes.
/*----------------------------------------------------*/
$sizes = Themosis\Facades\Config::get('images');
$images = new Themosis\Configuration\Images($sizes);
$images->make();
/*----------------------------------------------------*/
// Theme menus.
/*----------------------------------------------------*/
$menus = Themosis\Facades\Config::get('menus');
new Themosis\Configuration\Menu($menus);
/*----------------------------------------------------*/
// Theme sidebars.
/*----------------------------------------------------*/
$bars = Themosis\Facades\Config::get('sidebars');
new Themosis\Configuration\Sidebar($bars);
/*----------------------------------------------------*/
// Theme supports.
/*----------------------------------------------------*/
$supports = Themosis\Facades\Config::get('supports');