[ Index ]

PHP Cross Reference of Mambo 4.6.5

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

title

Body

[close]

/administrator/components/com_newsfeeds/ -> toolbar.newsfeeds.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Newsfeeds
   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  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  class TOOLBAR_newsfeeds  {
  21  	function _DEFAULT() {
  22          mosMenuBar::startTable();
  23          mosMenuBar::publishList();
  24          mosMenuBar::spacer();
  25          mosMenuBar::unpublishList();
  26          mosMenuBar::spacer();
  27          mosMenuBar::addNewX();
  28          mosMenuBar::spacer();
  29          mosMenuBar::editListX();
  30          mosMenuBar::spacer();
  31          mosMenuBar::deleteList();
  32          mosMenuBar::spacer();
  33          mosMenuBar::help( 'manager' );
  34          mosMenuBar::endTable();
  35      }
  36  
  37  	function _NEW() {
  38          mosMenuBar::startTable();
  39          mosMenuBar::save();
  40          mosMenuBar::spacer();
  41          mosMenuBar::cancel();
  42          mosMenuBar::spacer();
  43          mosMenuBar::help( 'new' );
  44          mosMenuBar::endTable();
  45      }
  46  
  47  	function _EDIT() {
  48          global $id;
  49          
  50          mosMenuBar::startTable();
  51          mosMenuBar::save();
  52          mosMenuBar::spacer();
  53          if ( $id ) {
  54              // for existing content items the button is renamed `close`
  55              mosMenuBar::cancel( 'cancel', T_('Close') );
  56          } else {
  57              mosMenuBar::cancel();
  58          }
  59          mosMenuBar::spacer();
  60          mosMenuBar::help( 'edit' );
  61          mosMenuBar::endTable();
  62      }
  63  }
  64  ?>