From f6a87535a061707290391b775a2cfe6cf9f644d3 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 5 May 2019 15:23:13 +0200 Subject: add help button to ical export for android, fixes #402 --- includes/sys_template.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index dc87e94e..e40530d5 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -378,6 +378,17 @@ function button_glyph($href, $glyph, $class = '') return button($href, glyph($glyph), $class); } +/** + * Rendert einen Knopf, der zur Hilfe eines bestimmten Themas führt. + * + * @param string $topic documentation resource (like user/), is appended to documentation url. + * @return string + */ +function button_help($topic = '') +{ + return button(config('documentation_url') . $topic, glyph('question-sign'), 'btn-sm'); +} + /** * Rendert eine Toolbar mit Knöpfen * -- cgit v1.2.3-54-g00ecf