- md5
- 22a443c0f4434ca832251e9c37cf8c78
- sha1
- ccd8296f127d016efdc961dd21d2db64aa8c89cf
- sha256
- 5b318932794c3fc4b030b5a01dd7bcbba03aba0398918180bdc3b9f0a073688c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
<?php
/**
* @version $Id: toolbar.modules.html.php 108 2005-09-16 17:39:25Z 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.
*/
/**
* @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();
}
}
?>
The same content is in 6 releases, Joomla 1.0.3 to 1.0.10. See them all, or every version of this file.