Themes

Applicable to all themes

Will_H  22-Oct-2007 15:44 4948 Reads   7 Comment(s) 
Recently in This post, we discovered a technique that will be beneficial to all themes.

The gist of it is that, until now, themes have displayed the <{$xoops_contents}> regardless of whether or not there was content to be displayed.

The standard default theme, and every theme since has looked like this.

<div id="content">
<{
$xoops_contents}>
</
div>


Which left a rather sizable gap on your index if you did not have a module set as your start page.

if you replace that code with the following, <{$xoops_contents}> will only be displayed if and only if there is content to be displayed.

<{if $xoops_contents}>
<
div id="content">
<{
$xoops_contents}>
</
div>
<{/if}>


Thanks to JAVesey for initiating this find.


Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

180 user(s) are online (3 user(s) are browsing Publisher)


Members: 0


Guests: 180


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories