summaryrefslogtreecommitdiff
path: root/templates/themes/radio/theme.php
blob: fafb51a06f815c3de66645b02def5d9b812360f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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',
                   ['settings'  => $settings, 'config'    => $config, 'boardlist' => createBoardlist()]);
  }
}

?>