summaryrefslogtreecommitdiff
path: root/templates/themes/radio/theme.php
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2014-09-28 19:43:15 +0000
committerMichael Walker <mike@barrucadu.co.uk>2014-09-28 23:05:57 +0000
commit3cd0a6093ca3b028a57dd62e0fc35ed56fd4fdfa (patch)
tree2460244a51ea44736f57a38c8667fa46a9770a7d /templates/themes/radio/theme.php
parent81bfe2e910d5c6fbe69e5e11cfc3d3003660b173 (diff)
Add radio page
Diffstat (limited to 'templates/themes/radio/theme.php')
-rw-r--r--templates/themes/radio/theme.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/themes/radio/theme.php b/templates/themes/radio/theme.php
new file mode 100644
index 00000000..e1244e6f
--- /dev/null
+++ b/templates/themes/radio/theme.php
@@ -0,0 +1,27 @@
+<?php
+require 'info.php';
+
+function radio_build($action, $settings, $board) {
+ radio::build($action, $settings);
+}
+
+class radio {
+ public static function build($action, $settings) {
+ global $config;
+
+ if ($action == 'all') {
+ file_write($config['dir']['home'] . $settings['file'], radio::install($settings));
+ }
+ }
+
+ public static function install($settings) {
+ global $config;
+
+ return Element('themes/radio/radio.html',
+ array('settings' => $settings,
+ 'config' => $config,
+ 'boardlist' => createBoardlist()));
+ }
+}
+
+?>