Commit 521ea230b7e11ed9d1ed510a72941bfaaa0579a6
1 parent
04d6f681
Only render the portlet surroundings if the portlet has contents to
render inside of it. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4043 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
1 deletions
templates/kt3/standard_page.smarty
| @@ -90,10 +90,13 @@ | @@ -90,10 +90,13 @@ | ||
| 90 | <div id="portletbar"> | 90 | <div id="portletbar"> |
| 91 | 91 | ||
| 92 | {foreach item=oPortlet from=$page->portlets} | 92 | {foreach item=oPortlet from=$page->portlets} |
| 93 | +{assign var=portlet_output value=$oPortlet->render() } | ||
| 94 | +{if $portlet_output} | ||
| 93 | <div class="portlet"> | 95 | <div class="portlet"> |
| 94 | <h4>{$oPortlet->getTitle()}</h4> | 96 | <h4>{$oPortlet->getTitle()}</h4> |
| 95 | -{$oPortlet->render()} | 97 | +{$portlet_output} |
| 96 | </div> | 98 | </div> |
| 99 | +{/if} | ||
| 97 | {/foreach} | 100 | {/foreach} |
| 98 | 101 | ||
| 99 | 102 |