From c55f826404762b6152c6d0f45ae081749c0865ab Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Fri, 18 Nov 2005 18:25:01 +0000 Subject: [PATCH] Only render the portlet surroundings if the portlet has contents to render inside of it. --- templates/kt3/standard_page.smarty | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/kt3/standard_page.smarty b/templates/kt3/standard_page.smarty index acf15ac..eea805c 100644 --- a/templates/kt3/standard_page.smarty +++ b/templates/kt3/standard_page.smarty @@ -90,10 +90,13 @@
{foreach item=oPortlet from=$page->portlets} +{assign var=portlet_output value=$oPortlet->render() } +{if $portlet_output}

{$oPortlet->getTitle()}

-{$oPortlet->render()} +{$portlet_output}
+{/if} {/foreach} -- libgit2 0.21.4