aboutsummaryrefslogtreecommitdiffstats
path: root/view/php
diff options
context:
space:
mode:
Diffstat (limited to 'view/php')
-rw-r--r--view/php/doubleleft.php36
-rw-r--r--view/php/doubleright.php36
-rw-r--r--view/php/full.php2
-rw-r--r--view/php/minimal.php2
4 files changed, 74 insertions, 2 deletions
diff --git a/view/php/doubleleft.php b/view/php/doubleleft.php
new file mode 100644
index 000000000..2d1571bf8
--- /dev/null
+++ b/view/php/doubleleft.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * * Name: doubleleft
+ * * Description: Hubzilla 2-column layout with left aside
+ * * Version: 1
+ * * Author: zlax
+ * * Maintainer: zlax
+ * * ContentRegion: aside, left_aside_wrapper
+ * * ContentRegion: content, region_2
+ */
+?>
+<!DOCTYPE html >
+<html prefix="og: http://ogp.me/ns#" <?php if(x($page,'color_mode')) echo $page['color_mode'] ?>>
+<head>
+ <title><?php if(x($page,'title')) echo $page['title'] ?></title>
+ <script>var baseurl="<?php echo z_root() ?>";</script>
+ <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
+</head>
+<body <?php if($page['direction']) echo 'dir="rtl"' ?> >
+ <?php if(x($page,'banner')) echo $page['banner']; ?>
+ <header><?php if(x($page,'header')) echo $page['header']; ?></header>
+ <?php if(x($page,'nav')) echo $page['nav']; ?>
+ <main>
+ <div class="content">
+ <div class="columns">
+ <aside id="region_1"><div class="aside_spacer_top_left"></div><div class="aside_spacer_left"><div id="left_aside_wrapper" class="aside_wrapper"><?php if(x($page,'aside')) echo $page['aside']; ?></div></div></aside>
+ <section id="region_2"><?php if(x($page,'content')) echo $page['content']; ?>
+ <div id="page-footer"></div>
+ <div id="pause"></div>
+ </section>
+ </div>
+ </div>
+ </main>
+ <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
+</body>
+</html>
diff --git a/view/php/doubleright.php b/view/php/doubleright.php
new file mode 100644
index 000000000..d6ae0f960
--- /dev/null
+++ b/view/php/doubleright.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * * Name: default
+ * * Description: Hubzilla 2-column layout with right aside
+ * * Version: 1
+ * * Author: zlax
+ * * Maintainer: zlax
+ * * ContentRegion: content, region_1
+ * * ContentRegion: right_aside, right_aside_wrapper
+ */
+?>
+<!DOCTYPE html >
+<html prefix="og: http://ogp.me/ns#" <?php if(x($page,'color_mode')) echo $page['color_mode'] ?>>
+<head>
+ <title><?php if(x($page,'title')) echo $page['title'] ?></title>
+ <script>var baseurl="<?php echo z_root() ?>";</script>
+ <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
+</head>
+<body <?php if($page['direction']) echo 'dir="rtl"' ?> >
+ <?php if(x($page,'banner')) echo $page['banner']; ?>
+ <header><?php if(x($page,'header')) echo $page['header']; ?></header>
+ <?php if(x($page,'nav')) echo $page['nav']; ?>
+ <main>
+ <div class="content">
+ <div class="columns">
+ <section id="region_1"><?php if(x($page,'content')) echo $page['content']; ?>
+ <div id="page-footer"></div>
+ <div id="pause"></div>
+ </section>
+ <aside id="region_2" class="d-none d-xl-block"><div class="aside_spacer_top_right"></div><div class="aside_spacer_right"><div id="right_aside_wrapper" class="aside_wrapper"><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></div></div></aside>
+ </div>
+ </div>
+ </main>
+ <footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
+</body>
+</html>
diff --git a/view/php/full.php b/view/php/full.php
index d855fb650..cb554724a 100644
--- a/view/php/full.php
+++ b/view/php/full.php
@@ -9,7 +9,7 @@
*/
?>
<!DOCTYPE html >
-<html prefix="og: http://ogp.me/ns#">
+<html prefix="og: http://ogp.me/ns#" <?php if(x($page,'color_mode')) echo $page['color_mode'] ?>>
<head>
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
<script>var baseurl="<?php echo z_root() ?>";</script>
diff --git a/view/php/minimal.php b/view/php/minimal.php
index 3fab0c5f9..b21cefc5e 100644
--- a/view/php/minimal.php
+++ b/view/php/minimal.php
@@ -9,7 +9,7 @@
*/
?>
<!DOCTYPE html >
-<html prefix="og: http://ogp.me/ns#">
+<html prefix="og: http://ogp.me/ns#" <?php if(x($page,'color_mode')) echo $page['color_mode'] ?>>
<head>
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
<script>var baseurl="<?php echo z_root() ?>";</script>