- md5
- 0f4b2640c1f131e1ebd49cee2559c4de
- sha1
- 73575c7e5c8b94159505b68e76646ded38b92066
- sha256
- 5f050f15138739f291e8890a4b9c51c279b26a46e505e25fc86e3a1d2d2a88f2
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
<?php
/**
* @version $Id: toolbar.modules.html.php 4677 2006-08-23 16:55:24Z stingrey $
* @package Joomla
* @subpackage Modules
* @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 Modules
*/
class TOOLBAR_modules {
/**
* Draws the menu for a New module
*/
function _NEW() {
mosMenuBar::startTable();
mosMenuBar::preview( 'modulewindow' );
mosMenuBar::spacer();
mosMenuBar::save();
mosMenuBar::spacer();
mosMenuBar::apply();
mosMenuBar::spacer();
mosMenuBar::cancel();
mosMenuBar::spacer();
mosMenuBar::help( 'screen.modules.new' );
mosMenuBar::endTable();
}
/**
* Draws the menu for Editing an existing module
*/
function _EDIT( $cur_template, $publish ) {
global $id;
mosMenuBar::startTable();
?>
<td>
<a class="toolbar" href="#" onClick="if (typeof document.adminForm.content == 'undefined') { alert('You can only preview `new` modules.'); } else { var content = document.adminForm.content.value; content = content.replace('#', ''); var title = document.adminForm.title.value; title = title.replace('#', ''); window.open('popups/modulewindow.php?title=' + title + '&content=' + content + '&t=<?php echo $cur_template; ?>', 'win1', 'status=no,toolbar=no,scrollbars=auto,titlebar=no,menubar=no,resizable=yes,width=200,height=400,directories=no,location=no'); }" >
<img src="images/preview_f2.png" alt="Preview" border="0" name="preview" align="middle">
Preview</a>
</td>
<?php
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.modules.edit' );
mosMenuBar::endTable();
}
function _DEFAULT() {
mosMenuBar::startTable();
mosMenuBar::publishList();
mosMenuBar::spacer();
mosMenuBar::unpublishList();
mosMenuBar::spacer();
mosMenuBar::custom( 'copy', 'copy.png', 'copy_f2.png', 'Copy', true );
mosMenuBar::spacer();
mosMenuBar::deleteList();
mosMenuBar::spacer();
mosMenuBar::editListX();
mosMenuBar::spacer();
mosMenuBar::addNewX();
mosMenuBar::spacer();
mosMenuBar::help( 'screen.modules' );
mosMenuBar::endTable();
}
}
?>
No other release has this exact content. See every version of this file.