summaryrefslogtreecommitdiff
path: root/templates/themes/sitemap/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/sitemap/info.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'templates/themes/sitemap/info.php')
-rw-r--r--templates/themes/sitemap/info.php50
1 files changed, 8 insertions, 42 deletions
diff --git a/templates/themes/sitemap/info.php b/templates/themes/sitemap/info.php
index 0ea2ba9d..058bed4d 100644
--- a/templates/themes/sitemap/info.php
+++ b/templates/themes/sitemap/info.php
@@ -1,5 +1,5 @@
<?php
- $theme = Array();
+ $theme = [];
// Theme name
$theme['name'] = 'Sitemap Generator';
@@ -8,55 +8,21 @@
$theme['version'] = 'v1.0';
// Theme configuration
- $theme['config'] = Array();
+ $theme['config'] = [];
- $theme['config'][] = Array(
- 'title' => 'Sitemap Path',
- 'name' => 'path',
- 'type' => 'text',
- 'default' => 'sitemap.xml',
- 'size' => '20'
- );
+ $theme['config'][] = ['title' => 'Sitemap Path', 'name' => 'path', 'type' => 'text', 'default' => 'sitemap.xml', 'size' => '20'];
- $theme['config'][] = Array(
- 'title' => 'URL prefix',
- 'name' => 'url',
- 'type' => 'text',
- 'comment' => '(with trailing slash)',
- 'default' => (isset($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] . $config['root'] : ''),
- 'size' => '20'
- );
+ $theme['config'][] = ['title' => 'URL prefix', 'name' => 'url', 'type' => 'text', 'comment' => '(with trailing slash)', 'default' => (isset($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] . $config['root'] : ''), 'size' => '20'];
- $theme['config'][] = Array(
- 'title' => 'Thread change frequency',
- 'name' => 'changefreq',
- 'type' => 'text',
- 'comment' => '(eg. "hourly", "daily", etc.)',
- 'default' => 'hourly',
- 'size' => '20'
- );
+ $theme['config'][] = ['title' => 'Thread change frequency', 'name' => 'changefreq', 'type' => 'text', 'comment' => '(eg. "hourly", "daily", etc.)', 'default' => 'hourly', 'size' => '20'];
- $theme['config'][] = Array(
- 'title' => 'Minimum time between regenerating',
- 'name' => 'regen_time',
- 'type' => 'text',
- 'comment' => '(in seconds)',
- 'default' => '0',
- 'size' => '8'
- );
+ $theme['config'][] = ['title' => 'Minimum time between regenerating', 'name' => 'regen_time', 'type' => 'text', 'comment' => '(in seconds)', 'default' => '0', 'size' => '8'];
$__boards = listBoards();
- $__default_boards = Array();
+ $__default_boards = [];
foreach ($__boards as $__board)
$__default_boards[] = $__board['uri'];
- $theme['config'][] = Array(
- 'title' => 'Boards',
- 'name' => 'boards',
- 'type' => 'text',
- 'comment' => '(boards to include; space seperated)',
- 'size' => 24,
- 'default' => implode(' ', $__default_boards)
- );
+ $theme['config'][] = ['title' => 'Boards', 'name' => 'boards', 'type' => 'text', 'comment' => '(boards to include; space seperated)', 'size' => 24, 'default' => implode(' ', $__default_boards)];
$theme['build_function'] = 'sitemap_build';