summaryrefslogtreecommitdiff
path: root/templates/themes/semirand/info.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /templates/themes/semirand/info.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/semirand/info.php')
-rw-r--r--templates/themes/semirand/info.php66
1 files changed, 10 insertions, 56 deletions
diff --git a/templates/themes/semirand/info.php b/templates/themes/semirand/info.php
index 8590a205..ddf4c08d 100644
--- a/templates/themes/semirand/info.php
+++ b/templates/themes/semirand/info.php
@@ -1,64 +1,18 @@
<?php
// Basic theme properties
- $theme = array(
- 'name' => 'Mixed All/Random Overboard',
- // Description (you can use Tinyboard markup here)
- 'description' => 'Board with threads from all boards with most recently bumped and random ones intermixed',
- 'version' => 'v0.1',
- // Unique function name for building and installing whatever's necessary
- 'build_function' => 'semirand_build',
- 'install_callback' => 'semirand_install',
- );
+ $theme = [
+ 'name' => 'Mixed All/Random Overboard',
+ // Description (you can use Tinyboard markup here)
+ 'description' => 'Board with threads from all boards with most recently bumped and random ones intermixed',
+ 'version' => 'v0.1',
+ // Unique function name for building and installing whatever's necessary
+ 'build_function' => 'semirand_build',
+ 'install_callback' => 'semirand_install',
+ ];
// Theme configuration
- $theme['config'] = array(
- array(
- 'title' => 'Board name',
- 'name' => 'title',
- 'type' => 'text',
- 'default' => 'Semirandom',
- ),
- array(
- 'title' => 'Board URI',
- 'name' => 'uri',
- 'type' => 'text',
- 'default' => '.',
- 'comment' => '("mixed", for example)',
- ),
- array(
- 'title' => 'Subtitle',
- 'name' => 'subtitle',
- 'type' => 'text',
- 'comment' => '(%s = thread limit, for example "%s coolest threads")',
- ),
- array(
- 'title' => 'Excluded boards',
- 'name' => 'exclude',
- 'type' => 'text',
- 'comment' => '(space seperated)',
- ),
- array(
- 'title' => 'Number of threads',
- 'name' => 'thread_limit',
- 'type' => 'text',
- 'default' => '15',
- ),
- array(
- 'title' => 'Random threads',
- 'name' => 'random_count',
- 'comment' => '(number of consecutive random threads)',
- 'type' => 'text',
- 'default' => '1',
- ),
- array(
- 'title' => 'Bumped threads',
- 'name' => 'recent_count',
- 'comment' => '(number of consecutive recent threads)',
- 'type' => 'text',
- 'default' => '1',
- ),
- );
+ $theme['config'] = [['title' => 'Board name', 'name' => 'title', 'type' => 'text', 'default' => 'Semirandom'], ['title' => 'Board URI', 'name' => 'uri', 'type' => 'text', 'default' => '.', 'comment' => '("mixed", for example)'], ['title' => 'Subtitle', 'name' => 'subtitle', 'type' => 'text', 'comment' => '(%s = thread limit, for example "%s coolest threads")'], ['title' => 'Excluded boards', 'name' => 'exclude', 'type' => 'text', 'comment' => '(space seperated)'], ['title' => 'Number of threads', 'name' => 'thread_limit', 'type' => 'text', 'default' => '15'], ['title' => 'Random threads', 'name' => 'random_count', 'comment' => '(number of consecutive random threads)', 'type' => 'text', 'default' => '1'], ['title' => 'Bumped threads', 'name' => 'recent_count', 'comment' => '(number of consecutive recent threads)', 'type' => 'text', 'default' => '1']];
if (!function_exists('semirand_install')) {
function semirand_install($settings) {