2003-10-26 09:56:17 +01:00
|
|
|
<?php
|
2006-04-20 19:12:30 +02:00
|
|
|
/**
|
|
|
|
* eGroupWare - Setup
|
|
|
|
* Originaly from the phpGW XSLT API
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package etemplate
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2003-10-26 09:56:17 +01:00
|
|
|
|
2005-11-09 21:50:45 +01:00
|
|
|
$menu_title = $GLOBALS['egw_info']['apps'][$appname]['title'] . ' '. lang('Menu');
|
2003-10-26 09:56:17 +01:00
|
|
|
$file = Array(
|
2005-11-09 21:50:45 +01:00
|
|
|
'eTemplate Editor' => $GLOBALS['egw']->link('/index.php','menuaction=etemplate.editor.edit'),
|
|
|
|
'DB-Tools' => $GLOBALS['egw']->link('/index.php','menuaction=etemplate.db_tools.edit'),
|
2003-10-26 09:56:17 +01:00
|
|
|
);
|
2005-11-09 21:50:45 +01:00
|
|
|
if (@$GLOBALS['egw_info']['user']['apps']['developer_tools'])
|
2003-10-26 11:01:38 +01:00
|
|
|
{
|
|
|
|
$file += array(
|
|
|
|
'_NewLine_', // give a newline
|
2005-11-09 21:50:45 +01:00
|
|
|
'developer_tools' => $GLOBALS['egw']->link('/index.php','menuaction=developer_tools.uilangfile.index'),
|
2003-10-26 11:01:38 +01:00
|
|
|
);
|
2007-11-12 02:05:11 +01:00
|
|
|
}
|
|
|
|
if($GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate')
|
|
|
|
{
|
|
|
|
display_sidebox($appname,$menu_title,$file);
|
|
|
|
}
|
2003-12-09 01:03:41 +01:00
|
|
|
$menu_title = lang('Documentation');
|
2005-11-09 21:50:45 +01:00
|
|
|
$docs = $GLOBALS['egw_info']['server']['webserver_url'].'/etemplate/doc/';
|
2003-12-09 01:03:41 +01:00
|
|
|
$file = Array(
|
|
|
|
array(
|
|
|
|
'text' => 'eTemplate Tutorial',
|
|
|
|
'link' => $docs.'etemplate.html',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
|
|
|
array(
|
2005-02-08 19:22:18 +01:00
|
|
|
'text' => 'eTemplate Reference',
|
|
|
|
'link' => $docs.'reference.html',
|
2003-12-09 01:03:41 +01:00
|
|
|
'target' => 'docs'
|
|
|
|
),
|
2004-02-23 01:47:39 +01:00
|
|
|
array(
|
|
|
|
'text' => 'eGroupWare '.lang('Documentation'),
|
|
|
|
'no_lang' => True,
|
2005-06-11 12:08:08 +02:00
|
|
|
'link' => 'http://egroupware.org/wiki/DeveloperDocs',
|
2004-02-23 01:47:39 +01:00
|
|
|
'target' => 'docs'
|
|
|
|
),
|
2005-02-20 22:45:24 +01:00
|
|
|
array(
|
|
|
|
'text' => 'CSS properties',
|
|
|
|
'link' => 'http://www.w3.org/TR/REC-CSS2/propidx.html',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
|
|
|
|
2003-12-09 01:03:41 +01:00
|
|
|
);
|
2007-11-12 02:05:11 +01:00
|
|
|
|
|
|
|
if($GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate')
|
|
|
|
{
|
|
|
|
display_sidebox($appname,$menu_title,$file);
|
|
|
|
}
|