diff options
| author | czaks <marcin@6irc.net> | 2015-04-02 20:54:28 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-02 20:54:28 +0200 |
| commit | 61d2729a40e8249fef8b3c0c584a9b5f7ae0777c (patch) | |
| tree | ef95fbac196a17ede3dc49736116f973eb1120f1 /templates/themes/ukko | |
| parent | e1a8c4aa7dc62186e7c74436db9fe89071647b3d (diff) | |
themes can use smart_build now
Diffstat (limited to 'templates/themes/ukko')
| -rw-r--r-- | templates/themes/ukko/theme.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php index 058fc77b..e1fa0a3f 100644 --- a/templates/themes/ukko/theme.php +++ b/templates/themes/ukko/theme.php @@ -2,6 +2,8 @@ require 'info.php'; function ukko_build($action, $settings) { + global $config; + $ukko = new ukko(); $ukko->settings = $settings; @@ -9,7 +11,13 @@ return; } - file_write($settings['uri'] . '/index.html', $ukko->build()); + if ($config['smart_build']) { + file_unlink($settings['uri'] . '/index.html'); + } + else { + file_write($settings['uri'] . '/index.html', $ukko->build()); + } + file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array())); } |
