예제 #1
0
파일: start.php 프로젝트: Cezarion/theme
if (Themosis\Facades\Config::get('application.cleanup')) {
    add_action('init', 'themosisThemeCleanup');
}
/*----------------------------------------------------*/
// Theme restriction. Block wp-admin access.
/*----------------------------------------------------*/
$access = Themosis\Facades\Config::get('application.access');
if (!empty($access) && is_array($access)) {
    add_action('init', 'themosisThemeRestrict');
}
/*----------------------------------------------------*/
// 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.
/*----------------------------------------------------*/