[themes] Is there a better way to do this? (by "this", I mean include javascript commands in the body of a page that change in response to page.tpl.php variables)

Rowan Kerr rowan at stasis.org
Thu Feb 2 22:04:19 UTC 2006


Nick Lewis wrote:
> The problem is that sidebar-left only appears when the user is logged 
> in, and mission only appears on the front page.

if ($is_front) { }

global $user;
if ($user->uid > 0) { }





More information about the themes mailing list