[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_content/ -> toolbar.content.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Content
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  class TOOLBAR_content {
  18  	function _EDIT() {
  19          global $id;
  20          
  21          mosMenuBar::startTable();
  22          mosMenuBar::preview( 'contentwindow', true );
  23          mosMenuBar::spacer();
  24          mosMenuBar::media_manager();
  25          mosMenuBar::spacer();
  26          mosMenuBar::save();
  27          mosMenuBar::spacer();
  28          mosMenuBar::apply();
  29          mosMenuBar::spacer();
  30          if ( $id ) {
  31              // for existing content items the button is renamed `close`
  32              mosMenuBar::cancel( 'cancel', T_('Close') );
  33          } else {
  34              mosMenuBar::cancel();
  35          }
  36          mosMenuBar::spacer();
  37          if ($GLOBALS['task'] == 'new') {
  38              mosMenuBar::help( 'new' );
  39          } else {
  40              mosMenuBar::help( 'edit' );
  41          }
  42          mosMenuBar::endTable();
  43      }
  44  
  45  	function _ARCHIVE() {
  46          mosMenuBar::startTable();
  47          mosMenuBar::unarchiveList();
  48          mosMenuBar::spacer();
  49          mosMenuBar::custom( 'remove', 'delete.png', 'delete_f2.png', T_('Trash'), false );
  50          mosMenuBar::spacer();
  51          mosMenuBar::help( 'archive' );
  52          mosMenuBar::endTable();
  53      }
  54  
  55  	function _MOVE() {
  56          mosMenuBar::startTable();
  57          mosMenuBar::custom( 'movesectsave', 'save.png', 'save_f2.png', T_('Save'), false );
  58          mosMenuBar::spacer();
  59          mosMenuBar::cancel();
  60          mosMenuBar::spacer();
  61          mosMenuBar::help( 'move' );
  62          mosMenuBar::endTable();
  63      }
  64  
  65  	function _COPY() {
  66          mosMenuBar::startTable();
  67          mosMenuBar::custom( 'copysave', 'save.png', 'save_f2.png', T_('Save'), false );
  68          mosMenuBar::spacer();
  69          mosMenuBar::cancel();
  70          mosMenuBar::spacer();
  71          mosMenuBar::help( 'copy' );
  72          mosMenuBar::endTable();
  73      }
  74  
  75  	function _DEFAULT() {
  76          mosMenuBar::startTable();
  77          mosMenuBar::addNewX();
  78          mosMenuBar::spacer();
  79          mosMenuBar::editListX( 'editA' );
  80          mosMenuBar::spacer();
  81          mosMenuBar::publishList();
  82          mosMenuBar::spacer();
  83          mosMenuBar::unpublishList();
  84          mosMenuBar::spacer();
  85          mosMenuBar::customX( 'movesect', 'move.png', 'move_f2.png', T_('Move') );
  86          mosMenuBar::spacer();
  87          mosMenuBar::customX( 'copy', 'copy.png', 'copy_f2.png', T_('Copy') );
  88          mosMenuBar::spacer();
  89          mosMenuBar::archiveList();
  90          mosMenuBar::spacer();
  91          mosMenuBar::trash();
  92          mosMenuBar::spacer();
  93          mosMenuBar::help( 'manager' );
  94          mosMenuBar::endTable();
  95      }
  96  }
  97  ?>