From 2c69095a1edf7474073451285238659d0f62ce3f Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 25 Sep 2022 13:30:13 +1000 Subject: PHP8.1 fixes from Rector --- templates/themes/catalog/info.php | 87 +++++++-------------------------------- 1 file changed, 14 insertions(+), 73 deletions(-) (limited to 'templates/themes/catalog/info.php') diff --git a/templates/themes/catalog/info.php b/templates/themes/catalog/info.php index bc0e7eb5..cf0d42ab 100644 --- a/templates/themes/catalog/info.php +++ b/templates/themes/catalog/info.php @@ -1,96 +1,37 @@ 'Title', - 'name' => 'title', - 'type' => 'text', - 'default' => 'Catalog' - ); + $theme['config'][] = ['title' => 'Title', 'name' => 'title', 'type' => 'text', 'default' => \Catalog::class]; $__boards = listBoards(); - $__default_boards = Array(); + $__default_boards = []; foreach ($__boards as $__board) $__default_boards[] = $__board['uri']; - $theme['config'][] = Array( - 'title' => 'Included boards', - 'name' => 'boards', - 'type' => 'text', - 'comment' => '(space seperated)', - 'default' => implode(' ', $__default_boards) - ); + $theme['config'][] = ['title' => 'Included boards', 'name' => 'boards', 'type' => 'text', 'comment' => '(space seperated)', 'default' => implode(' ', $__default_boards)]; - $theme['config'][] = Array( - 'title' => 'Update on new posts', - 'name' => 'update_on_posts', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Without this checked, the catalog only updates on new threads.' - ); + $theme['config'][] = ['title' => 'Update on new posts', 'name' => 'update_on_posts', 'type' => 'checkbox', 'default' => false, 'comment' => 'Without this checked, the catalog only updates on new threads.']; - $theme['config'][] = Array( - 'title' => 'Enable Ukko catalog', - 'name' => 'enable_ukko', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko theme to be enabled.' - ); + $theme['config'][] = ['title' => 'Enable Ukko catalog', 'name' => 'enable_ukko', 'type' => 'checkbox', 'default' => false, 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko theme to be enabled.']; - $theme['config'][] = Array( - 'title' => 'Enable Ukko2 catalog', - 'name' => 'enable_ukko2', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Enable catalog for the Ukko2 theme. This requires the Ukko2 theme to be enabled.' - ); + $theme['config'][] = ['title' => 'Enable Ukko2 catalog', 'name' => 'enable_ukko2', 'type' => 'checkbox', 'default' => false, 'comment' => 'Enable catalog for the Ukko2 theme. This requires the Ukko2 theme to be enabled.']; - $theme['config'][] = Array( - 'title' => 'Enable Ukko3 catalog', - 'name' => 'enable_ukko3', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko3 theme to be enabled.' - ); - $theme['config'][] = Array( - 'title' => 'Enable Ukko4 catalog', - 'name' => 'enable_ukko4', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko4 theme to be enabled.' - ); + $theme['config'][] = ['title' => 'Enable Ukko3 catalog', 'name' => 'enable_ukko3', 'type' => 'checkbox', 'default' => false, 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko3 theme to be enabled.']; + $theme['config'][] = ['title' => 'Enable Ukko4 catalog', 'name' => 'enable_ukko4', 'type' => 'checkbox', 'default' => false, 'comment' => 'Enable catalog for the Ukko theme. This requires the Ukko4 theme to be enabled.']; - $theme['config'][] = Array( - 'title' => 'Enable Rand catalog', - 'name' => 'enable_rand', - 'type' => 'checkbox', - 'default' => false, - 'comment' => 'Enable catalog for the Rand theme. This requires the Rand theme to be enabled.' - ); - $theme['config'][] = Array( - 'title' => 'Use tooltipster', - 'name' => 'use_tooltipster', - 'type' => 'checkbox', - 'default' => true, - 'comment' => 'Check this if you wish to show a nice tooltip with info about the thread on mouse over.' - ); + $theme['config'][] = ['title' => 'Enable Rand catalog', 'name' => 'enable_rand', 'type' => 'checkbox', 'default' => false, 'comment' => 'Enable catalog for the Rand theme. This requires the Rand theme to be enabled.']; + $theme['config'][] = ['title' => 'Use tooltipster', 'name' => 'use_tooltipster', 'type' => 'checkbox', 'default' => true, 'comment' => 'Check this if you wish to show a nice tooltip with info about the thread on mouse over.']; - $theme['config'][] = Array( - 'title' => 'Base URL', - 'name' => 'base_url', - 'type' => 'text', - 'default' => 'http://test.com', - 'comment' => '(eg. "http://test.com")' - ); + $theme['config'][] = ['title' => 'Base URL', 'name' => 'base_url', 'type' => 'text', 'default' => 'http://test.com', 'comment' => '(eg. "http://test.com")']; // Unique function name for building everything $theme['build_function'] = 'catalog_build'; -- cgit v1.3