diff options
| author | Simon McFarlane <simon@piston.pw> | 2015-02-14 06:12:54 +0100 |
|---|---|---|
| committer | Simon McFarlane <simon@piston.pw> | 2015-02-14 06:12:54 +0100 |
| commit | 2049f4d8f8f41d897d2bc0376e32804f31a11b87 (patch) | |
| tree | 15d9c708c12ca9a8c06fb07a12fc88efa069dbb8 /templates/themes/irc/theme.php | |
| parent | addf730393f931d2eb3b8ef06fc1a1aa3fa3ebab (diff) | |
Update templates for new stylesheets
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())); + } +} + +?> |
