summaryrefslogtreecommitdiff
path: root/templates/themes/radio/theme.php
diff options
context:
space:
mode:
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()));
+ }
+}
+
+?>