Commit 4a8571bf authored by Dries's avatar Dries
Browse files

- Patch #6000 by Goba: makes the short tip list a HTML list (as it is semantically
  expected) and gives proper class names to the long and short tip list, so if
  someone would like to reproduce the 'br' tagged version, he can do that with
  some CSS styles easily.  Assigned a dedicated class to the more-tips link, so it
  can be differently stlyed (with a different bullet, different link color or
  anyhow, as the theme designer desires).
parent c91d0360
......@@ -295,19 +295,19 @@ function filter_tips_long() {
$tiplist .= "<li id=\"filter-$name\">$tip</li>\n";
}
}
$output = "<ul class=\"compose-tips\">\n$tiplist\n</ul>\n";
$output = "<ul class=\"filter-tips-long\">\n$tiplist\n</ul>\n";
print theme("page", $output, t('Compose Tips'));
}
function filter_tips_short() {
$output = '';
$tiplist = '';
foreach (module_list() as $name) {
if ($tip = module_invoke($name, 'help', 'filter#short-tip')) {
$output .= "$tip<br />";
$tiplist .= "<li>$tip</li>\n";
}
}
$output .= l(t('More information on formatting options'), 'filter/tips');
return $output;
$tiplist .= '<li class="more-tips">' . l(t('More information on formatting options'), 'filter/tips') . '</li>';
return "<ul class=\"filter-tips-short\">\n$tiplist\n</ul>\n";
}
?>
......@@ -295,19 +295,19 @@ function filter_tips_long() {
$tiplist .= "<li id=\"filter-$name\">$tip</li>\n";
}
}
$output = "<ul class=\"compose-tips\">\n$tiplist\n</ul>\n";
$output = "<ul class=\"filter-tips-long\">\n$tiplist\n</ul>\n";
print theme("page", $output, t('Compose Tips'));
}
function filter_tips_short() {
$output = '';
$tiplist = '';
foreach (module_list() as $name) {
if ($tip = module_invoke($name, 'help', 'filter#short-tip')) {
$output .= "$tip<br />";
$tiplist .= "<li>$tip</li>\n";
}
}
$output .= l(t('More information on formatting options'), 'filter/tips');
return $output;
$tiplist .= '<li class="more-tips">' . l(t('More information on formatting options'), 'filter/tips') . '</li>';
return "<ul class=\"filter-tips-short\">\n$tiplist\n</ul>\n";
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment