<!DOCTYPE html >\r
<html>\r
<head>\r
- <title><?php echo $page['title'] ?></title>\r
- <?php echo $page['htmlhead'] ?>\r
+ <title><?php if(x($page,'title')) echo $page['title'] ?></title>\r
+ <script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>\r
+ <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>\r
</head>\r
<body>\r
- <header><?php echo $page['header']; ?></header>\r
- <nav><?php echo $page['nav']; ?></nav>\r
- <aside><?php echo $page['aside']; ?></aside>\r
- <section><?php echo $page['content']; ?></section>\r
- <footer><?php echo $page['footer']; ?></footer>\r
+ <?php if(x($page,'nav')) echo $page['nav']; ?>\r
+ <aside><?php if(x($page,'aside')) echo $page['aside']; ?></aside>\r
+ <section><?php if(x($page,'content')) echo $page['content']; ?>\r
+ <div id="page-footer"></div>\r
+ </section>
+ <right_aside><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></right_aside>\r
+ <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>\r
</body>\r
</html>\r
\r