08/04/2010 1:19pm

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');

}
}


Post Comment