mirror of
https://github.com/e107inc/e107.git
synced 2025-07-04 14:53:58 +02:00
Added help tooltip option for custom theme configuration
This commit is contained in:
@ -954,7 +954,8 @@ class themeHandler
|
||||
|
||||
foreach ($var as $val)
|
||||
{
|
||||
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."</td></tr>";
|
||||
$text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."<div class='field-help'>".$val['help']."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
|
||||
return $text;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user