- md5
- 551c988aa89e18188a08b98915177f57
- sha1
- 4e118ba93f42d256ac2b9c38a9c47154d96ec8a6
- sha256
- 2e34e80863db0c0a519c0e5c4909b76b6f28e1619ce9c13cf286486214ee1d52
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
<?php
/**
* @version $Id: toolbar.modules.html.php 10002 2008-02-08 10:56:57Z willebil $
* @package Joomla
* @subpackage Modules
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.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();
}
}
?>
The same content is in 2 releases, Joomla 1.0.14 to 1.0.15. See them all, or every version of this file.