mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
WIP EGroupware Tutorial:
- Add disable option in admin site configuration in order to be able to switch off the tutorials menu in sideboxes
This commit is contained in:
parent
781f128265
commit
52a3e2240c
@ -101,6 +101,16 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr class="row_off">
|
||||||
|
<td>{lang_Disable_EGroupware_Tutorial_in_sidebox_menu}:</td>
|
||||||
|
<td>
|
||||||
|
<select name="newsettings[egw_tutorial_disable]">
|
||||||
|
<option value="">{lang_No}</option>
|
||||||
|
<option value="True">{lang_Yes}</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr class="th">
|
<tr class="th">
|
||||||
<td colspan="2"> <b>{lang_security}</b></td>
|
<td colspan="2"> <b>{lang_security}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -387,15 +387,18 @@ class hooks
|
|||||||
*/
|
*/
|
||||||
public static function egw_tutorial_menu($appname)
|
public static function egw_tutorial_menu($appname)
|
||||||
{
|
{
|
||||||
$file = Array (
|
if (!$GLOBALS['egw_info']['server']['egw_tutorial_disable'])
|
||||||
array(
|
{
|
||||||
'text' => '<div id="egw_tutorial_'.$appname.'_sidebox" class="egwTutorial"/>',
|
$file = Array (
|
||||||
'no_lang' => true,
|
array(
|
||||||
'link' => false,
|
'text' => '<div id="egw_tutorial_'.$appname.'_sidebox" class="egwTutorial"/>',
|
||||||
'icon' => false,
|
'no_lang' => true,
|
||||||
),
|
'link' => false,
|
||||||
'menuOpened' => true
|
'icon' => false,
|
||||||
);
|
),
|
||||||
display_sidebox($appname, lang('EGroupware Tutorial'), $file);
|
'menuOpened' => true
|
||||||
|
);
|
||||||
|
display_sidebox($appname, lang('EGroupware Tutorial'), $file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user