From c077bb1060fc39005afd1011c9928a66b9a4cf07 Mon Sep 17 00:00:00 2001 From: Moc Date: Sun, 10 Aug 2014 16:02:32 +0200 Subject: [PATCH] Added help tooltip option for custom theme configuration --- e107_handlers/theme_handler.php | 3 ++- e107_themes/_blank/_blank_config.php | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 9195f5396..1baa3f8a0 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -954,7 +954,8 @@ class themeHandler foreach ($var as $val) { - $text .= "".$val['caption'].":".$val['html'].""; + $text .= "".$val['caption'].":".$val['html']."
".$val['help']."
+"; } return $text; diff --git a/e107_themes/_blank/_blank_config.php b/e107_themes/_blank/_blank_config.php index 7b80bbe36..2b5c5ba00 100644 --- a/e107_themes/_blank/_blank_config.php +++ b/e107_themes/_blank/_blank_config.php @@ -22,11 +22,12 @@ class theme__blank implements e_theme_config { $frm = e107::getForm(); - $var[0]['caption'] = "Sample configuration field"; - $var[0]['html'] = $frm->text('_blank_example', e107::getThemePref('example', 'default')); + $var[0]['caption'] = "Sample configuration field"; + $var[0]['html'] = $frm->text('_blank_example', e107::getThemePref('example', 'default')); + $var[0]['help'] = "Example help text for this input field"; - $var[1]['caption'] = "Sample configuration field 2"; - $var[1]['html'] = $frm->text('_blank_example2', e107::getThemePref('example2', 'default')); + $var[1]['caption'] = "Sample configuration field 2"; + $var[1]['html'] = $frm->text('_blank_example2', e107::getThemePref('example2', 'default')); return $var; }