- md5
- 60918307b1fa706944a6c600678c8c75
- sha1
- 20f9ecc57b5e64a13bbc58a66d28ad51e61b9a97
- sha256
- 3e65fcb6786956bf32aecea3a5e38a79d3f8125aa351d666437dbe4bc2b586eb
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
<?php
/**
* @version $Id: toolbar.menus.html.php 4557 2006-08-18 18:11:33Z stingrey $
* @package Joomla
* @subpackage Menus
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Menus
*/
class TOOLBAR_menus {
/**
* Draws the menu for a New top menu item
*/
function _NEW() {
mosMenuBar::startTable();
mosMenuBar::customX( 'edit', 'next.png', 'next_f2.png', 'Next', true );
mosMenuBar::spacer();
mosMenuBar::cancel();
mosMenuBar::spacer();
mosMenuBar::help( 'screen.menus.new' );
mosMenuBar::endTable();
}
/**
* Draws the menu to Move Menut Items
*/
function _MOVEMENU() {
mosMenuBar::startTable();
mosMenuBar::custom( 'movemenusave', 'move.png', 'move_f2.png', 'Move', false );
mosMenuBar::spacer();
mosMenuBar::cancel( 'cancelmovemenu' );
mosMenuBar::spacer();
mosMenuBar::help( 'screen.menus.move' );
mosMenuBar::endTable();
}
/**
* Draws the menu to Move Menut Items
*/
function _COPYMENU() {
mosMenuBar::startTable();
mosMenuBar::custom( 'copymenusave', 'copy.png', 'copy_f2.png', 'Copy', false );
mosMenuBar::spacer();
mosMenuBar::cancel( 'cancelcopymenu' );
mosMenuBar::spacer();
mosMenuBar::help( 'screen.menus.copy' );
mosMenuBar::endTable();
}
/**
* Draws the menu to edit a menu item
*/
function _EDIT() {
global $id;
if ( !$id ) {
$cid = josGetArrayInts( 'cid' );
$id = $cid[0];
}
$menutype = strval( mosGetParam( $_REQUEST, 'menutype', 'mainmenu' ) );
mosMenuBar::startTable();
if ( !$id ) {
$link = 'index2.php?option=com_menus&menutype='. $menutype .'&task=new&hidemainmenu=1';
mosMenuBar::back( 'Back', $link );
mosMenuBar::spacer();
}
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
if ( $id ) {
// for existing content items the button is renamed `close`
mosMenuBar::cancel( 'cancel', 'Close' );
} else {
mosMenuBar::cancel();
}
mosMenuBar::spacer();
mosMenuBar::help( 'screen.menus.edit' );
mosMenuBar::endTable();
}
function _DEFAULT() {
mosMenuBar::startTable();
mosMenuBar::publishList();
mosMenuBar::spacer();
mosMenuBar::unpublishList();
mosMenuBar::spacer();
mosMenuBar::customX( 'movemenu', 'move.png', 'move_f2.png', 'Move', true );
mosMenuBar::spacer();
mosMenuBar::customX( 'copymenu', 'copy.png', 'copy_f2.png', 'Copy', true );
mosMenuBar::spacer();
mosMenuBar::trash();
mosMenuBar::spacer();
mosMenuBar::editListX();
mosMenuBar::spacer();
mosMenuBar::addNewX();
mosMenuBar::spacer();
mosMenuBar::help( 'screen.menus' );
mosMenuBar::endTable();
}
}
?>
No other release has this exact content. See every version of this file.