1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Added help tooltip option for custom theme configuration

This commit is contained in:
Moc 2014-08-10 16:02:32 +02:00
parent c16047afe5
commit c077bb1060
2 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}