summaryrefslogtreecommitdiff
path: root/templates/themes/ukko3/info.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/themes/ukko3/info.php')
-rw-r--r--templates/themes/ukko3/info.php42
1 files changed, 8 insertions, 34 deletions
diff --git a/templates/themes/ukko3/info.php b/templates/themes/ukko3/info.php
index 375995f4..463331f9 100644
--- a/templates/themes/ukko3/info.php
+++ b/templates/themes/ukko3/info.php
@@ -1,5 +1,5 @@
<?php
- $theme = array();
+ $theme = [];
// Theme name
$theme['name'] = 'Overboard (Ukko3)';
@@ -8,39 +8,13 @@
$theme['version'] = 'v0.2';
// Theme configuration
- $theme['config'] = array();
+ $theme['config'] = [];
- $theme['config'][] = array(
- 'title' => 'Board name',
- 'name' => 'title',
- 'type' => 'text',
- 'default' => 'Ukko'
- );
- $theme['config'][] = array(
- 'title' => 'Board URI',
- 'name' => 'uri',
- 'type' => 'text',
- 'default' => '*',
- 'comment' => '(ukko for example)'
- );
- $theme['config'][] = array(
- 'title' => 'Subtitle',
- 'name' => 'subtitle',
- 'type' => 'text',
- 'comment' => '(%s = thread limit. for example "%s freshly bumped threads")'
- );
- $theme['config'][] = array(
- 'title' => 'included boards',
- 'name' => 'include',
- 'type' => 'text',
- 'comment' => '(space seperated)'
- );
- $theme['config'][] = array(
- 'title' => 'Number of threads',
- 'name' => 'thread_limit',
- 'type' => 'text',
- 'default' => '15',
- );
+ $theme['config'][] = ['title' => 'Board name', 'name' => 'title', 'type' => 'text', 'default' => 'Ukko'];
+ $theme['config'][] = ['title' => 'Board URI', 'name' => 'uri', 'type' => 'text', 'default' => '*', 'comment' => '(ukko for example)'];
+ $theme['config'][] = ['title' => 'Subtitle', 'name' => 'subtitle', 'type' => 'text', 'comment' => '(%s = thread limit. for example "%s freshly bumped threads")'];
+ $theme['config'][] = ['title' => 'included boards', 'name' => 'include', 'type' => 'text', 'comment' => '(space seperated)'];
+ $theme['config'][] = ['title' => 'Number of threads', 'name' => 'thread_limit', 'type' => 'text', 'default' => '15'];
// Unique function name for building everything
$theme['build_function'] = 'ukko3_build';
$theme['install_callback'] = 'ukko3_install';
@@ -49,7 +23,7 @@
function ukko3_install($settings) {
if (!file_exists($settings['uri']))
@mkdir($settings['uri'], 0777) or error("Couldn't create " . $settings['uri'] . ". Check permissions.", true);
- file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', array()));
+ file_write($settings['uri'] . '/ukko.js', Element('themes/ukko/ukko.js', []));
}
}