static function _DEFAULT_PLUGIN_MENU() { global $_CB_framework; CBtoolmenuBar::startTable(); CBtoolmenuBar::linkAction('cancel', $_CB_framework->backendUrl('index.php?option=com_comprofiler&view=showPlugins'), 'Close'); CBtoolmenuBar::endTable(); }
public function getPluginBEToolbar( $function, $user, $plugin ) { if ( strstr( $function, 'auto' ) ) { switch ( $function ) { case 'auto_new': case 'auto_edit': case 'auto_save': CBtoolmenuBar::startTable(); CBtoolmenuBar::save( 'savePlugin', CBTxt::T( 'Save' ) ); CBtoolmenuBar::apply( 'applyPlugin', CBTxt::T( 'Apply' ) ); CBtoolmenuBar::linkAction( 'cancel', cbgjClass::getPluginURL( array( 'plugin', 'auto' ) ), CBTxt::T( 'Cancel' ) ); CBtoolmenuBar::endTable(); break; case 'auto_show': case 'auto': default: CBtoolmenuBar::startTable(); cbgjMenu::getDefaults( 'plugin', $function, $user, $plugin ); CBtoolmenuBar::spacer( '50px' ); CBtoolmenuBar::linkAction( 'publish', "javascript:cbDoListTask( this, 'editPlugin', 'action', 'plugin.auto_publish', 'id' )", CBTxt::T( 'Publish' ) ); CBtoolmenuBar::linkAction( 'unpublish', "javascript:cbDoListTask( this, 'editPlugin', 'action', 'plugin.auto_unpublish', 'id' )", CBTxt::T( 'Unpublish' ) ); CBtoolmenuBar::linkAction( 'copy', "javascript:cbDoListTask( this, 'editPlugin', 'action', 'plugin.auto_copy', 'id' )", CBTxt::T( 'Copy' ) ); CBtoolmenuBar::linkAction( 'delete', "javascript:cbDoListTask( this, 'editPlugin', 'action', 'plugin.auto_delete', 'id' )", CBTxt::T( 'Delete' ) ); CBtoolmenuBar::linkAction( 'edit', "javascript:cbDoListTask( this, 'editPlugin', 'action', 'plugin.auto_edit', 'id' )", CBTxt::T( 'Edit' ) ); CBtoolmenuBar::linkAction( 'new', cbgjClass::getPluginURL( array( 'plugin', 'auto_new' ) ), CBTxt::T( 'New' ) ); CBtoolmenuBar::back( CBTxt::T( 'Back' ), cbgjClass::getPluginURL() ); CBtoolmenuBar::endTable(); break; } } }
/** * render backend menus menu */ static public function showMenus( $function, $user, $plugin ) { CBtoolmenuBar::startTable(); cbgjMenu::getDefaults( 'menus', $function, $user, $plugin ); CBtoolmenuBar::spacer( '50px' ); CBtoolmenuBar::save( 'savePlugin', CBTxt::T( 'Save' ) ); CBtoolmenuBar::linkAction( 'cancel', cbgjClass::getPluginURL(), CBTxt::T( 'Cancel' ) ); CBtoolmenuBar::endTable(); }
/** * displays "media manager" toolbar button * * @param string $directory * @param string $alt */ static function media_manager($directory = null, $alt = null) { global $_CB_framework; if (!$alt) { $alt = 'Upload'; } $template = CBtoolmenuBar::getTemplate(); $image = cbMenuBarBase::ImageCheckAdmin('upload.png', '/administrator/images/', NULL, NULL, CBTxt::T('Upload Image'), 'uploadPic'); $onClickJs = "popupWindow( '" . $_CB_framework->backendUrl("index.php?pop=uploadimage.php&directory={$directory}&t={$template}", true, 'component') . "','win1',350,100,'no' );"; CBtoolmenuBar::_output($onClickJs, $image, $alt); }
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(); }
/** * displays "edit" toolbar button * * @param string $task * @param string $alt */ public static function editListNoSelect($task = 'edit', $alt = 'Edit') { CBtoolmenuBar::addToToolBar($task, $alt, 'Edit', 'edit'); }
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(); }