diff options
Diffstat (limited to 'templates/themes/irc/theme.php')
| -rw-r--r-- | templates/themes/irc/theme.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/themes/irc/theme.php b/templates/themes/irc/theme.php new file mode 100644 index 00000000..c9b45c33 --- /dev/null +++ b/templates/themes/irc/theme.php @@ -0,0 +1,27 @@ +<?php +require 'info.php'; + +function irc_build($action, $settings, $board) { + irc::build($action, $settings); +} + +class irc { + public static function build($action, $settings) { + global $config; + + if ($action == 'all') { + file_write($config['dir']['home'] . $settings['file'], irc::install($settings)); + } + } + + public static function install($settings) { + global $config; + + return Element('themes/irc/irc.html', + array('settings' => $settings, + 'config' => $config, + 'boardlist' => createBoardlist())); + } +} + +?> |
