From f69a6d718ac8f5affc8786a40584b5151b37d463 Mon Sep 17 00:00:00 2001 From: John Rayes Date: Mon, 30 Dec 2024 15:08:33 -0700 Subject: [PATCH] reverse indentation --- Sources/Theme.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/Theme.php b/Sources/Theme.php index c46795a65a..f063c0c2fb 100644 --- a/Sources/Theme.php +++ b/Sources/Theme.php @@ -2229,15 +2229,15 @@ public static function pickTheme(): void foreach (self::$current->settings['theme_variants'] as $variant) { Utils::$context['available_themes'][$id_theme]['variants'][$variant] = [ 'label' => Lang::$txt['variant_' . $variant] ?? $variant, - 'thumbnail' => file_exists($theme_data['theme_dir'] . '/images/thumbnail_' . $variant . '.png') ? $theme_data['images_url'] . '/thumbnail_' . $variant . '.png' : (file_exists($theme_data['theme_dir'] . '/images/thumbnail.png') ? $theme_data['images_url'] . '/thumbnail.png' : ''), - ]; - } + 'thumbnail' => file_exists($theme_data['theme_dir'] . '/images/thumbnail_' . $variant . '.png') ? $theme_data['images_url'] . '/thumbnail_' . $variant . '.png' : (file_exists($theme_data['theme_dir'] . '/images/thumbnail.png') ? $theme_data['images_url'] . '/thumbnail.png' : ''), + ]; + } - Utils::$context['available_themes'][$id_theme]['selected_variant'] = $_GET['vrt'] ?? (!empty($variant_preferences[$id_theme]) ? $variant_preferences[$id_theme] : (!empty(self::$current->settings['default_variant']) ? self::$current->settings['default_variant'] : self::$current->settings['theme_variants'][0])); + Utils::$context['available_themes'][$id_theme]['selected_variant'] = $_GET['vrt'] ?? (!empty($variant_preferences[$id_theme]) ? $variant_preferences[$id_theme] : (!empty(self::$current->settings['default_variant']) ? self::$current->settings['default_variant'] : self::$current->settings['theme_variants'][0])); - if (!isset(Utils::$context['available_themes'][$id_theme]['variants'][Utils::$context['available_themes'][$id_theme]['selected_variant']]['thumbnail'])) { - Utils::$context['available_themes'][$id_theme]['selected_variant'] = self::$current->settings['theme_variants'][0]; - } + if (!isset(Utils::$context['available_themes'][$id_theme]['variants'][Utils::$context['available_themes'][$id_theme]['selected_variant']]['thumbnail'])) { + Utils::$context['available_themes'][$id_theme]['selected_variant'] = self::$current->settings['theme_variants'][0]; + } Utils::$context['available_themes'][$id_theme]['thumbnail_href'] = Utils::$context['available_themes'][$id_theme]['variants'][Utils::$context['available_themes'][$id_theme]['selected_variant']]['thumbnail'];