wrap long titles
This commit is contained in:
parent
1100b20497
commit
a77feff4af
@ -37,6 +37,11 @@ class Layout {
|
|||||||
$contact = empty($contact_link) ? "" : "<br><a href='$contact_link'>Contact</a>";
|
$contact = empty($contact_link) ? "" : "<br><a href='$contact_link'>Contact</a>";
|
||||||
$subheading = empty($page->subheading) ? "" : "<div id='subtitle'>{$page->subheading}</div>";
|
$subheading = empty($page->subheading) ? "" : "<div id='subtitle'>{$page->subheading}</div>";
|
||||||
|
|
||||||
|
$wrapper = "";
|
||||||
|
if(strlen($page->heading) > 100) {
|
||||||
|
$wrapper = ' style="height: 3em; overflow: auto;"';
|
||||||
|
}
|
||||||
|
|
||||||
print <<<EOD
|
print <<<EOD
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||||
<html>
|
<html>
|
||||||
@ -50,7 +55,7 @@ $header_html
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>{$page->heading}</h1>
|
<h1$wrapper>{$page->heading}</h1>
|
||||||
$subheading
|
$subheading
|
||||||
|
|
||||||
<div id="nav">$left_block_html</div>
|
<div id="nav">$left_block_html</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user