summaryrefslogtreecommitdiff
path: root/templates/themes/ukko/theme.php
diff options
context:
space:
mode:
authorFredrick Brennan <admin@8chan.co>2014-04-30 17:18:44 -0400
committerFredrick Brennan <admin@8chan.co>2014-04-30 17:18:44 -0400
commitb1912ba86f933f40ef16d041621ef46b8a231e23 (patch)
tree2382d38431b9b5c44a942ef6968e4ae1bb5507c1 /templates/themes/ukko/theme.php
parent042e7b9c598975f876d8a86c8e4242dbf17f7bdf (diff)
parent0a53fdb3a248f5ddac58569a4400f5e2385287b7 (diff)
Merge branch 'staging' of https://github.com/vichan-devel/vichan into staging
Diffstat (limited to 'templates/themes/ukko/theme.php')
-rw-r--r--templates/themes/ukko/theme.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php
index 88b0c4a4..b2624ed7 100644
--- a/templates/themes/ukko/theme.php
+++ b/templates/themes/ukko/theme.php
@@ -4,7 +4,9 @@
function ukko_build($action, $settings) {
$ukko = new ukko();
$ukko->settings = $settings;
- $ukko->build();
+
+ file_write($settings['uri'] . '/index.html', $ukko->build());
+ file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
}
class ukko {
@@ -85,17 +87,16 @@
}
$body .= '<script> var overflow = ' . json_encode($overflow) . '</script>';
- $body .= '<script type="text/javascript" src="ukko.js"></script>';
+ $body .= '<script type="text/javascript" src="/'.$this->settings['uri'].'/ukko.js"></script>';
- file_write($this->settings['uri'] . '/index.html', Element('index.html', array(
+ return Element('index.html', array(
'config' => $config,
'board' => $board,
'no_post_form' => true,
'body' => $body,
- 'boardlist' => createBoardlist($mod)
- )));
-
- file_write($this->settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
+ 'mod' => $mod,
+ 'boardlist' => createBoardlist($mod),
+ ));
}
};