Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## config
- Object::add_extension('Member', 'Customer');
- LeftAndMain::add_extension('CMSMain', 'CMSMainExtension');
- ## extension code
- <?php
- class CMSMainExtension extends CMSMain {
- function __construct() {
- parent::__construct();
- Requirements::clear('jsparty/calendar/calendar.js');
- Requirements::clear('jsparty/calendar/calendar-setup.js');
- Requirements::javascript('jsparty/schedule-calendar/calendar.js');
- Requirements::javascript('jsparty/schedule-calendar/calendar-setup-cms.js');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment