| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: toolbar.categories.html.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Categories 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 /** 16 * @package Joomla 17 * @subpackage Categories 18 */ 19 class TOOLBAR_categories { 20 /** 21 * Draws the menu for Editing an existing category 22 * @param int The published state (to display the inverse button) 23 */ 24 function _EDIT($edit) 25 { 26 $cid = JRequest::getVar( 'cid', array(0), '', 'array' ); 27 $section = JRequest::getCmd( 'section' ); 28 29 $text = ( $edit ? JText::_( 'Edit' ) : JText::_( 'New' ) ); 30 31 JToolBarHelper::title( JText::_( 'Category' ) .': <small><small>[ '. $text.' ]</small></small>', 'categories.png' ); 32 JToolBarHelper::save(); 33 JToolBarHelper::apply(); 34 if ($edit) { 35 // for existing articles the button is renamed `close` 36 JToolBarHelper::cancel( 'cancel', 'Close' ); 37 } else { 38 JToolBarHelper::cancel(); 39 } 40 JToolBarHelper::help( 'screen.' . substr( $section, 4 ) . '.categories.edit' ); 41 } 42 43 /** 44 * Draws the menu for Moving existing categories 45 * @param int The published state (to display the inverse button) 46 */ 47 function _MOVE() { 48 49 JToolBarHelper::title( JText::_( 'Category' ) .': <small><small>[ '. JText::_( 'Move' ).' ]</small></small>', 'categories.png' ); 50 JToolBarHelper::save( 'movesave' ); 51 JToolBarHelper::cancel(); 52 } 53 54 /** 55 * Draws the menu for Copying existing categories 56 * @param int The published state (to display the inverse button) 57 */ 58 function _COPY() { 59 JToolBarHelper::title( JText::_( 'Category' ) .': <small><small>[ '. JText::_( 'Copy' ).' ]</small></small>', 'categories.png' ); 60 61 JToolBarHelper::save( 'copysave' ); 62 JToolBarHelper::cancel(); 63 } 64 65 /** 66 * Draws the menu for Editing an existing category 67 */ 68 function _DEFAULT() 69 { 70 $section = JRequest::getCmd( 'section' ); 71 72 JToolBarHelper::title( JText::_( 'Category Manager' ) .': <small><small>[ '. JText::_(JString::substr($section, 4)).' ]</small></small>', 'categories.png' ); 73 JToolBarHelper::publishList(); 74 JToolBarHelper::unpublishList(); 75 76 if ( $section == 'com_content' || ( $section > 0 ) ) { 77 JToolBarHelper::customX( 'moveselect', 'move.png', 'move_f2.png', 'Move', true ); 78 JToolBarHelper::customX( 'copyselect', 'copy.png', 'copy_f2.png', 'Copy', true ); 79 } 80 JToolBarHelper::deleteList(); 81 JToolBarHelper::editListX(); 82 JToolBarHelper::addNewX(); 83 JToolBarHelper::help( 'screen.' . substr( $section, 4 ) . '.categories' ); 84 } 85 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |