Source for file toolbar.weblinks.html.php

Documentation is available at toolbar.weblinks.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Weblinks
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13.     function _EDIT($task{
  14.         global $id;
  15.         
  16.         mosMenuBar::startTable();
  17.         mosMenuBar::save();
  18.         mosMenuBar::spacer();
  19.         if $id {
  20.             // for existing content items the button is renamed `close`
  21.             mosMenuBar::cancel'cancel'T_('Close') );
  22.         else {
  23.             mosMenuBar::cancel();
  24.         }
  25.         mosMenuBar::spacer();
  26.         if ($task == 'new' mosMenuBar::help'new' );
  27.         else mosMenuBar::help'edit' );
  28.         mosMenuBar::endTable();
  29.     }
  30.     function _DEFAULT({
  31.         mosMenuBar::startTable();
  32.         mosMenuBar::spacer();
  33.         mosMenuBar::publishList();
  34.         mosMenuBar::spacer();
  35.         mosMenuBar::unpublishList();
  36.         mosMenuBar::spacer();
  37.         mosMenuBar::addNewX();
  38.         mosMenuBar::spacer();
  39.         mosMenuBar::editListX();
  40.         mosMenuBar::spacer();
  41.         mosMenuBar::deleteList();
  42.         mosMenuBar::spacer();
  43.         mosMenuBar::help'manager' );
  44.         mosMenuBar::endTable();
  45.     }
  46. }
  47. ?>

Documentation generated on Mon, 05 May 2008 16:23:51 +0400 by phpDocumentor 1.4.0