2003-10-26 09:56:17 +01:00
|
|
|
<?php
|
2016-03-19 16:25:32 +01:00
|
|
|
/**
|
|
|
|
* EGroupware - eTemplate sidebox
|
|
|
|
*
|
|
|
|
* @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
|
|
|
|
2016-03-19 16:25:32 +01:00
|
|
|
$menu_title = $GLOBALS['egw_info']['apps'][$appname]['title'] . ' '. lang('Menu');
|
|
|
|
$file = Array(
|
|
|
|
'eTemplate Editor' => $GLOBALS['egw']->link('/index.php','menuaction=etemplate.editor.edit'),
|
|
|
|
'DB-Tools' => $GLOBALS['egw']->link('/index.php','menuaction=etemplate.db_tools.edit'),
|
|
|
|
);
|
|
|
|
if (@$GLOBALS['egw_info']['user']['apps']['developer_tools'])
|
|
|
|
{
|
|
|
|
$file += array(
|
|
|
|
'_NewLine_', // give a newline
|
2016-05-11 14:43:23 +02:00
|
|
|
'developer_tools' => $GLOBALS['egw']->link('/index.php','menuaction=etemplate.uilangfile.index'),
|
2003-10-26 09:56:17 +01:00
|
|
|
);
|
2016-03-19 16:25:32 +01:00
|
|
|
}
|
|
|
|
if($GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate')
|
|
|
|
{
|
|
|
|
display_sidebox($appname,$menu_title,$file);
|
|
|
|
}
|
|
|
|
$menu_title = lang('Documentation');
|
|
|
|
$docs = $GLOBALS['egw_info']['server']['webserver_url'].'/etemplate/doc/';
|
|
|
|
$doc_file = Array(
|
|
|
|
array(
|
|
|
|
'text' => 'eTemplate2 Reference',
|
|
|
|
'link' => egw::link('/index.php','menuaction=api.EGroupware\\Api\\Etemplate\\WidgetBrowser.index', 'etemplate'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => 'eTemplate Tutorial',
|
|
|
|
'link' => $docs.'etemplate.html',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => 'eTemplate Reference',
|
|
|
|
'link' => $docs.'reference.html',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => 'eGroupWare '.lang('Documentation'),
|
|
|
|
'no_lang' => True,
|
|
|
|
'link' => 'http://egroupware.org/wiki/DeveloperDocs',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => 'CSS properties',
|
|
|
|
'link' => 'http://www.w3.org/TR/REC-CSS2/propidx.html',
|
|
|
|
'target' => 'docs'
|
|
|
|
),
|
2005-02-20 22:45:24 +01:00
|
|
|
|
2016-03-19 16:25:32 +01:00
|
|
|
);
|
2007-11-12 02:05:11 +01:00
|
|
|
|
2016-03-19 16:25:32 +01:00
|
|
|
if($GLOBALS['egw_info']['flags']['currentapp'] == 'etemplate')
|
|
|
|
{
|
|
|
|
display_sidebox($appname, $menu_title, $doc_file);
|
|
|
|
}
|