
Untitled
By: a guest on
Apr 15th, 2012 | syntax:
None | size: 0.92 KB | hits: 6 | expires: Never
<?php
/**
* Custom admin layout
*/
// add this file to a folder admintheme/code
// create a _config.php in admintheme/
// add this to _config.php
// LeftAndMain::add_extension('LeftAndMain','MyLeftAndMain');
// MyLeftAndMain::set_theme($theme = 'blue');
// optional javascript loading in _config.php
// LeftAndMain::require_javascript("admintheme/javascript/jquery.my.js");
class MyLeftAndMain extends LeftAndMainDecorator {
static $theme = 'blue';
function set_theme($theme = 'blue'){
self::$theme = $theme;
}
function init() {
parent::init();
CMSMenu::remove_menu_item('Help');
CMSMenu::remove_menu_item('CommentAdmin');
Requirements::block(CMS_DIR . '/css/layout.css');
Requirements::block(THIRDPARTY_DIR . '/tree/tree.css');
Requirements::css('admintheme/'.self::$theme.'/css/layout.css');
Requirements::css('admintheme/'.self::$theme.'/tree/tree.css');
}
}