49 lines
1.9 KiB
PHP
Executable File
49 lines
1.9 KiB
PHP
Executable File
<!DOCTYPE html >
|
|
<html>
|
|
<head>
|
|
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
|
|
<script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
|
|
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
|
</head>
|
|
<?php
|
|
$bodyclass="";
|
|
if (!x($page,'aside') && !x($page,'right_aside')) $bodyclass.=" singular";
|
|
?>
|
|
<body class="<?php echo $bodyclass;?>">
|
|
<div id="page">
|
|
<?php
|
|
if(x($page,'nav')){
|
|
// header image
|
|
$img = $a->get_baseurl()."/view/theme/blog/headers/willow.jpg";
|
|
echo str_replace("~blog.header.image~", $img,
|
|
str_replace("~config.sitename~",get_config('config','sitename'),
|
|
str_replace("~system.banner~",get_config('system','banner'),
|
|
$page['nav']
|
|
)));
|
|
}
|
|
?>
|
|
|
|
<div id="main">
|
|
<div id="primary">
|
|
<div id="content" role="main">
|
|
<?php if(x($page,'content')) echo $page['content']; ?>
|
|
</div>
|
|
</div>
|
|
<?php if (x($page,'aside') || x($page,'right_aside')) { ?>
|
|
<div id="secondary" class="widget-area <?php if (in_array($a->module, array('profile','photos','display'))) echo 'overlap'; ?>" role="complementary">
|
|
<?php if(x($page,'aside')) echo $page['aside']; ?>
|
|
<?php if(x($page,'right_aside')) echo $page['right_aside']; ?>
|
|
</div>
|
|
<?php }?>
|
|
</div>
|
|
<footer id="colophon" role="contentinfo">
|
|
<div id="site-generator">
|
|
<a rel="generator" title="Personal Communication Platform" href="http://www.friendica.com/">Proudly powered by Friendica</a>
|
|
<?php if(x($page,'footer')) echo $page['footer']; ?>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|