diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 19:43:09 +0000 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 23:05:52 +0000 |
| commit | 81bfe2e910d5c6fbe69e5e11cfc3d3003660b173 (patch) | |
| tree | e51e8275bc6f13041281ad2fb9298f1502f85e69 /templates/themes/donate/theme.php | |
| parent | 341e6476f9f98b17483e368ded8cc3c6fca271d7 (diff) | |
Add donate page
Diffstat (limited to 'templates/themes/donate/theme.php')
| -rw-r--r-- | templates/themes/donate/theme.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/themes/donate/theme.php b/templates/themes/donate/theme.php new file mode 100644 index 00000000..736519a8 --- /dev/null +++ b/templates/themes/donate/theme.php @@ -0,0 +1,28 @@ +<?php + +require 'info.php'; + +function donate_build($action, $settings, $board) { + donate::build($action, $settings); +} + +class donate { + public static function build($action, $settings) { + global $config; + + if ($action == 'all') { + file_write($config['dir']['home'] . $settings['file'], donate::install($settings)); + } + } + + public static function install($settings) { + global $config; + + return Element('themes/donate/donate.html', + array('settings' => $settings, + 'config' => $config, + 'boardlist' => createBoardlist())); + } +} + +?> |
