summaryrefslogtreecommitdiff
path: root/templates/themes/zine/theme.php
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2015-09-12 21:29:33 +0100
committerMichael Walker <mike@barrucadu.co.uk>2015-09-12 21:29:33 +0100
commit6335ff308b501e4afdf7c2a4525db536963d0d4d (patch)
tree98de06b7b42594a00f8d75b65a3ca9f8c284316a /templates/themes/zine/theme.php
parent67d242a7af83db94e19e666755b2b98db07b21dc (diff)
Add zine theme
Diffstat (limited to 'templates/themes/zine/theme.php')
-rw-r--r--templates/themes/zine/theme.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/themes/zine/theme.php b/templates/themes/zine/theme.php
new file mode 100644
index 00000000..78cb780c
--- /dev/null
+++ b/templates/themes/zine/theme.php
@@ -0,0 +1,28 @@
+<?php
+
+require 'info.php';
+
+function zine_build($action, $settings, $board) {
+ zine::build($action, $settings);
+}
+
+class zine {
+ public static function build($action, $settings) {
+ global $config;
+
+ if ($action == 'all') {
+ file_write($config['dir']['home'] . $settings['file'], zine::install($settings));
+ }
+ }
+
+ public static function install($settings) {
+ global $config;
+
+ return Element('themes/zine/zine.html',
+ array('settings' => $settings,
+ 'config' => $config,
+ 'boardlist' => createBoardlist()));
+ }
+}
+
+?>