| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: toolbar.templates.html.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Templates 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 Templates 21 */ 22 class TOOLBAR_templates 23 { 24 function _DEFAULT(&$client) 25 { 26 JToolBarHelper::title( JText::_( 'Template Manager' ), 'thememanager' ); 27 28 if ($client->id == '1') { 29 JToolBarHelper::makeDefault('publish'); 30 } else { 31 JToolBarHelper::makeDefault(); 32 } 33 JToolBarHelper::editListX( 'edit', 'Edit' ); 34 //JToolBarHelper::addNew(); 35 JToolBarHelper::help( 'screen.templates' ); 36 } 37 function _VIEW(&$client){ 38 39 JToolBarHelper::title( JText::_( 'Template Manager' ), 'thememanager' ); 40 JToolBarHelper::back(); 41 } 42 43 function _EDIT_SOURCE(&$client){ 44 45 JToolBarHelper::title( JText::_( 'Template HTML Editor' ), 'thememanager' ); 46 JToolBarHelper::save( 'save_source' ); 47 JToolBarHelper::apply( 'apply_source' ); 48 JToolBarHelper::cancel('edit'); 49 JToolBarHelper::help( 'screen.templates' ); 50 } 51 52 function _EDIT(&$client){ 53 JToolBarHelper::title( JText::_( 'Template' ) . ': <small><small>[ '. JText::_( 'Edit' ) .' ]</small></small>', 'thememanager' ); 54 JToolBarHelper::custom('preview', 'preview.png', 'preview_f2.png', 'Preview', false, false); 55 JToolBarHelper::custom( 'edit_source', 'html.png', 'html_f2.png', 'Edit HTML', false, false ); 56 JToolBarHelper::custom( 'choose_css', 'css.png', 'css_f2.png', 'Edit CSS', false, false ); 57 JToolBarHelper::save( 'save' ); 58 JToolBarHelper::apply(); 59 JToolBarHelper::cancel( 'cancel', 'Close' ); 60 JToolBarHelper::help( 'screen.templates' ); 61 } 62 63 function _CHOOSE_CSS(&$client){ 64 JToolBarHelper::title( JText::_( 'Template CSS Editor' ), 'thememanager' ); 65 JToolBarHelper::custom( 'edit_css', 'edit.png', 'edit_f2.png', 'Edit', true ); 66 JToolBarHelper::cancel('edit'); 67 JToolBarHelper::help( 'screen.templates' ); 68 } 69 70 function _EDIT_CSS(&$client){ 71 JToolBarHelper::title( JText::_( 'Template Manager' ), 'thememanager' ); 72 JToolBarHelper::save( 'save_css' ); 73 JToolBarHelper::apply( 'apply_css'); 74 JToolBarHelper::cancel('choose_css'); 75 JToolBarHelper::help( 'screen.templates' ); 76 } 77 }
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 |