forked from leftypol/leftypol
Add radio page
This commit is contained in:
parent
81bfe2e910
commit
3cd0a6093c
4 changed files with 102 additions and 0 deletions
27
templates/themes/radio/theme.php
Normal file
27
templates/themes/radio/theme.php
Normal file
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue