static function _DEFAULT_PLUGIN() { CBtoolmenuBar::startTable(); if (CBuser::getMyInstance()->authoriseAction('core.edit.state')) { CBtoolmenuBar::publishList('publishPlugin'); CBtoolmenuBar::spacer(); CBtoolmenuBar::unpublishList('unpublishPlugin'); // CBtoolmenuBar::spacer(); // CBtoolmenuBar:: "addInstall" link ('newPlugin'); /* CBtoolmenuBar::spacer(); if (is_callable(array("CBtoolmenuBar","addNewX"))) { // Mambo 4.5.0 support: CBtoolmenuBar::addNewX('newPlugin'); } else { CBtoolmenuBar::addNew('newPlugin'); } */ CBtoolmenuBar::spacer(); } if (CBuser::getMyInstance()->authoriseAction('core.edit')) { CBtoolmenuBar::editList('editPlugin'); CBtoolmenuBar::spacer(); } if (CBuser::getMyInstance()->authoriseAction('core.admin')) { CBtoolmenuBar::deleteList('', 'deletePlugin'); CBtoolmenuBar::spacer(); } CBtoolmenuBar::endTable(); }
static function _DEFAULT_PLUGIN() { CBtoolmenuBar::startTable(); CBtoolmenuBar::publishList('publishPlugin'); CBtoolmenuBar::spacer(); CBtoolmenuBar::unpublishList('unpublishPlugin'); // CBtoolmenuBar::spacer(); // CBtoolmenuBar:: "addInstall" link ('newPlugin'); /* CBtoolmenuBar::spacer(); if (is_callable(array("CBtoolmenuBar","addNewX"))) { // Mambo 4.5.0 support: CBtoolmenuBar::addNewX('newPlugin'); } else { CBtoolmenuBar::addNew('newPlugin'); } */ CBtoolmenuBar::spacer(); if (is_callable(array("CBtoolmenuBar","editListX"))) { // Mambo 4.5.0 support: CBtoolmenuBar::editListX('editPlugin'); } else { CBtoolmenuBar::editList('editPlugin'); } CBtoolmenuBar::spacer(); CBtoolmenuBar::deleteList('','deletePlugin'); CBtoolmenuBar::spacer(); CBtoolmenuBar::endTable(); }