lainchan/templates/themes/zine/theme.php
2015-09-12 21:29:33 +01:00

29 lines
618 B
PHP

<?php
require 'info.php';
function zine_build($action, $settings, $board) {
zine::build($action, $settings);
}
class zine {
public static function build($action, $settings) {
global $config;
if ($action == 'all') {
file_write($config['dir']['home'] . $settings['file'], zine::install($settings));
}
}
public static function install($settings) {
global $config;
return Element('themes/zine/zine.html',
array('settings' => $settings,
'config' => $config,
'boardlist' => createBoardlist()));
}
}
?>