From f7c7c3339f0f00a335a5feefa788db94d50a5758 Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Thu, 1 Dec 2005 10:14:00 +0000 Subject: [PATCH] - handle the absence of portlets better in the UI by covering the whole screen. - correct the .noportlets class ITO the #content fix. --- lib/templating/kt3template.inc.php | 5 +++++ resources/css/kt-framing.css | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index dd76345..916c5ef 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -227,6 +227,11 @@ class KTPage { $this->contents = $this->contents->render(); } + // if we have no portlets, make the ui a tad nicer. + if (empty($this->portlets)) { + $this->show_portlets = false; + } + $oTemplating = new KTTemplating; $oTemplate = $oTemplating->loadTemplate("kt3/standard_page"); $aTemplateData = array( diff --git a/resources/css/kt-framing.css b/resources/css/kt-framing.css index b6f17cf..56ee19c 100644 --- a/resources/css/kt-framing.css +++ b/resources/css/kt-framing.css @@ -225,7 +225,7 @@ a.main_nav_item { } .noportlets #content { - left: 0; + padding-left: 0; } #content h1 -- libgit2 0.21.4