[ Index ]

PHP Cross Reference of Mambo 4.6.5

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

title

Body

[close]

/administrator/components/com_templates/ -> toolbar.templates.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Templates
   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_templates {
  21  	function _DEFAULT($client) {
  22          mosMenuBar::startTable();
  23          if ($client=="admin") {
  24              mosMenuBar::custom('publish', 'publish.png', 'publish_f2.png', T_('Default'), true);
  25              mosMenuBar::spacer();
  26              $client = '.'.$client;
  27          } else {
  28              mosMenuBar::makeDefault();
  29              mosMenuBar::spacer();
  30              mosMenuBar::assign();
  31              mosMenuBar::spacer();
  32          }
  33          
  34          mosMenuBar::addNew();
  35          mosMenuBar::spacer();
  36          mosMenuBar::editHtmlX( 'edit_source' );
  37          mosMenuBar::spacer();
  38          mosMenuBar::editCssX( 'edit_css' );
  39          mosMenuBar::spacer();
  40          mosMenuBar::deleteList();
  41          mosMenuBar::spacer();
  42          mosMenuBar::help( 'manager' . $client );
  43          mosMenuBar::endTable();
  44      }
  45   	function _VIEW(){
  46          mosMenuBar::startTable();
  47          mosMenuBar::back();
  48          mosMenuBar::endTable();
  49      }
  50  
  51  	function _EDIT_SOURCE(){
  52          mosMenuBar::startTable();
  53          mosMenuBar::save( 'save_source' );
  54          mosMenuBar::spacer();
  55          mosMenuBar::cancel();
  56          mosMenuBar::spacer();
  57          mosMenuBar::help( 'edit-html' );
  58          mosMenuBar::endTable();
  59      }
  60  
  61  	function _EDIT_CSS(){
  62          mosMenuBar::startTable();
  63          mosMenuBar::save( 'save_css' );
  64          mosMenuBar::spacer();
  65          mosMenuBar::cancel();
  66          mosMenuBar::spacer();
  67          mosMenuBar::help( 'edit-css' );
  68          mosMenuBar::endTable();
  69      }
  70  
  71  	function _ASSIGN(){
  72          mosMenuBar::startTable();
  73          mosMenuBar::save( 'save_assign', T_('Save') );
  74          mosMenuBar::spacer();
  75          mosMenuBar::cancel();
  76          mosMenuBar::spacer();
  77          mosMenuBar::help( 'assign' );
  78          mosMenuBar::endTable();
  79      }
  80  
  81  	function _POSITIONS(){
  82          mosMenuBar::startTable();
  83          mosMenuBar::save( 'save_positions' );
  84          mosMenuBar::spacer();
  85          mosMenuBar::cancel();
  86          mosMenuBar::spacer();
  87          mosMenuBar::help( 'module-positions' );
  88          mosMenuBar::endTable();
  89      }
  90  }
  91  ?>