Beispiel #1
0
function ukko_build($action, $settings)
{
    $ukko = new ukko();
    $ukko->settings = $settings;
    file_write($settings['uri'] . '/index.html', $ukko->build());
    file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
}
Beispiel #2
0
function ukko_build($action, $settings)
{
    global $config;
    $ukko = new ukko();
    $ukko->settings = $settings;
    if (!($action == 'all' || $action == 'post' || $action == 'post-thread' || $action == 'post-delete')) {
        return;
    }
    if ($config['smart_build']) {
        file_unlink($settings['uri'] . '/index.html');
    } else {
        file_write($settings['uri'] . '/index.html', $ukko->build());
    }
}
Beispiel #3
0
function ukko_build($action, $settings)
{
    $ukko = new ukko();
    $ukko->settings = $settings;
    $ukko->build();
}