From a77feff4aff37f1b9f1946bd7ddc3806d50f3471 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 24 Jan 2009 02:25:50 -0800 Subject: [PATCH] wrap long titles --- themes/default/layout.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/default/layout.class.php b/themes/default/layout.class.php index f3167810..ea5369c3 100644 --- a/themes/default/layout.class.php +++ b/themes/default/layout.class.php @@ -37,6 +37,11 @@ class Layout { $contact = empty($contact_link) ? "" : "
Contact"; $subheading = empty($page->subheading) ? "" : "
{$page->subheading}
"; + $wrapper = ""; + if(strlen($page->heading) > 100) { + $wrapper = ' style="height: 3em; overflow: auto;"'; + } + print << @@ -50,7 +55,7 @@ $header_html -

{$page->heading}

+ {$page->heading} $subheading