From 0ebab4e371a670458d73e6630fff23597c3145ae Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Sun, 29 Jun 2025 23:40:56 +0200 Subject: [PATCH] Refactor weapon display logic in index.php to show all weapons with custom skins or defaults, improving user interaction; update HTML structure for better organization and clarity in skin selection. --- website/index.php | 55 +++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/website/index.php b/website/index.php index b4ed6fb9..a1bd45c9 100644 --- a/website/index.php +++ b/website/index.php @@ -236,35 +236,48 @@ if (isset($_SESSION['steamid'])) { - - $selectedSkin): ?> - -
+ + $weapon): ?> + + +
- <?php echo $skins[$defindex][$selectedSkin['weapon_paint_id']]['paint_name']; ?> -
- -
+ + + <?php echo $skins[$defindex][$selectedSkins[$defindex]['weapon_paint_id']]['paint_name']; ?> +
+ +
+ + + <?php echo $weapon['paint_name']; ?> +
+ +
+
-
-
+
+
+ + + + + +
- - -
-
-

No weapons equipped

-

Browse weapons in the sidebar to equip skins

-
-
- +