summaryrefslogtreecommitdiff
path: root/templates/themes/zine/theme.php
blob: 78cb780ca0af7ce22fa8bd8c59d8f15bd8efa7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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()));
  }
}
	
?>