PHP | Working Example - Extend LeftAndMain to create a custom backendtheme
<?php
/**
* Custom admin layout
*/
/* _config.php
<?php
LeftAndMain::add_extension('LeftAndMain','MyLeftAndMain');
LeftAndMain::require_javascript("admintheme/javascript/jquery.my.js");
*/
class MyLeftAndMain extends LeftAndMainDecorator {
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/blue/css/layout.css');
Requirements::css('admintheme/blue/tree/tree.css');
}
}
17/07/2012 6:05pm
PHP | Solution - Jean
02
/**
03
* Custom admin layout
04
*/
05
06
/* _config.php
07
08
09
LeftAndMain::add_extension('LeftAndMain','MyLeftAndMain');
10
LeftAndMain::require_javascript("admintheme/javascript/jquery.my.js");
11
12
*/
13
14
class MyLeftAndMain extends LeftAndMainDecorator {
15
16
function init() {
17
parent::init();
18
CMSMenu::remove_menu_item('Help');
19
CMSMenu::remove_menu_item('CommentAdmin');
20
21
Requirements::block(CMS_DIR . '/css/layout.css');
22
Requirements::block(THIRDPARTY_DIR . '/tree/tree.css');
23
Requirements::css('admintheme/blue/css/layout.css');
24
Requirements::css('admintheme/blue/tree/tree.css');
25
26
}
27
}
<a href="http://www.google.fr">Google</a> http://www.google.fr