[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php
   2  /**
   3  * @version        $Id: toolbar.content.html.php 19173 2010-10-21 03:00:28Z ian $
   4  * @package        Joomla
   5  * @subpackage    Content
   6  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7  * @license        GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // no direct access
  16  defined( '_JEXEC' ) or die( 'Restricted access' );
  17  
  18  /**
  19  * @package        Joomla
  20  * @subpackage    Content
  21  */
  22  class TOOLBAR_content
  23  {
  24  	function _EDIT($edit)
  25      {
  26          $cid = JRequest::getVar( 'cid', array(0), '', 'array' );
  27          $cid = intval($cid[0]);
  28  
  29          $text = ( $edit ? JText::_( 'Edit' ) : JText::_( 'New' ) );
  30  
  31          JToolBarHelper::title( JText::_( 'Article' ).': <small><small>[ '. $text.' ]</small></small>', 'addedit.png' );
  32          JToolBarHelper::preview( 'index.php?option=com_content&id='.$cid.'&tmpl=component', true );
  33          JToolBarHelper::save();
  34          JToolBarHelper::apply();
  35          if ( $edit ) {
  36              // for existing articles the button is renamed `close`
  37              JToolBarHelper::cancel( 'cancel', 'Close' );
  38          } else {
  39              JToolBarHelper::cancel();
  40          }
  41          JToolBarHelper::help( 'screen.content.edit' );
  42      }
  43  /*
  44      function _ARCHIVE()
  45      {
  46          JToolBarHelper::title( JText::_( 'Archive Manager' ), 'addedit.png' );
  47          JToolBarHelper::unarchiveList();
  48          JToolBarHelper::custom( 'remove', 'delete.png', 'delete_f2.png', 'Trash', false );
  49          JToolBarHelper::help( 'screen.content.archive' );
  50      }
  51  */
  52  	function _MOVE()
  53      {
  54          JToolBarHelper::title( JText::_( 'Move Articles' ), 'move_f2.png' );
  55          JToolBarHelper::custom( 'movesectsave', 'save.png', 'save_f2.png', 'Save', false );
  56          JToolBarHelper::cancel();
  57      }
  58  
  59  	function _COPY()
  60      {
  61          JToolBarHelper::title( JText::_( 'Copy Articles' ), 'copy_f2.png' );
  62          JToolBarHelper::custom( 'copysave', 'save.png', 'save_f2.png', 'Save', false );
  63          JToolBarHelper::cancel();
  64      }
  65  
  66  	function _DEFAULT()
  67      {
  68          global $filter_state;
  69  
  70          JToolBarHelper::title( JText::_( 'Article Manager' ), 'article.png' );
  71          if ($filter_state == 'A' || $filter_state == NULL) {
  72              JToolBarHelper::unarchiveList();
  73          }
  74          if ($filter_state != 'A') {
  75              JToolBarHelper::archiveList();
  76          }
  77          JToolBarHelper::publishList();
  78          JToolBarHelper::unpublishList();
  79          JToolBarHelper::customX( 'movesect', 'move.png', 'move_f2.png', 'Move' );
  80          JToolBarHelper::customX( 'copy', 'copy.png', 'copy_f2.png', 'Copy' );
  81          JToolBarHelper::trash();
  82          JToolBarHelper::editListX();
  83          JToolBarHelper::addNewX();
  84          JToolBarHelper::preferences('com_content', '550');
  85          JToolBarHelper::help( 'screen.content' );
  86      }
  87  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1