aboutsummaryrefslogtreecommitdiffstats
path: root/view/default.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
commitf0b640058427aff2d9d60899f9005980ab89c0ef (patch)
treea7e2f2d7fca62e73f725dc072fa1944150a86bd0 /view/default.php
parentceabd7629bab4a490515aa8608acf0738159e1d0 (diff)
downloadvolse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.gz
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.bz2
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.zip
more lint
Diffstat (limited to 'view/default.php')
-rw-r--r--view/default.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/view/default.php b/view/default.php
index 2d45d946a..60bda2669 100644
--- a/view/default.php
+++ b/view/default.php
@@ -1,17 +1,17 @@
<!DOCTYPE html >
<html>
<head>
- <title><?php echo $page['title'] ?></title>
- <?php echo $page['htmlhead'] ?>
+ <title><?php if(x($page,'title')) echo $page['title'] ?></title>
+ <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body>
- <header><?php echo $page['header']; ?></header>
- <nav><div id="top-margin"></div><?php echo $page['nav']; ?></nav>
- <aside><?php echo $page['aside']; ?></aside>
- <section><?php echo $page['content']; ?>
+ <header><?php if(x($page,'header')) echo $page['header']; ?></header>
+ <nav><div id="top-margin"></div><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
+ <aside><?php if(x($page,'aside')) echo $page['aside']; ?></aside>
+ <section><?php if(x($page,'content')) echo $page['content']; ?>
<div id="page-footer"></div>
</section>
- <footer><?php echo $page['footer']; ?></footer>
+ <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
</body>
</html>