From 775966f0dd9f4f551d663398b0550945021e7477 Mon Sep 17 00:00:00 2001 From: Seph Date: Tue, 23 Apr 2024 22:43:54 +0200 Subject: [PATCH] SKS und Widgets --- theme/components/raid-signup.php | 3 +- theme/functions.php | 4 + theme/header.php | 4 +- theme/inc/config-routing.php | 2 +- theme/pages/raids.php | 27 ++- theme/pages/single_raid.php | 226 +++++++++--------- theme/pages/sks.php | 118 +++++---- theme/plugins/wowpress-navwalker.php | 6 +- theme/request.php | 89 ++++++- theme/template-parts/widgets/boss_kills.php | 20 ++ theme/template-parts/widgets/char_search.php | 5 + theme/template-parts/widgets/raid_signup.php | 2 +- theme/wowpress/Database/CreateRaidTable.php | 1 + theme/wowpress/Frontend/Widgets/BossKills.php | 52 ++++ .../Frontend/Widgets/CharacterSearch.php | 60 +++++ theme/wowpress/Models/Raid.php | 36 ++- theme/wowpress/Models/SKS.php | 101 +++++++- theme/wowpress/Models/Signup.php | 73 ++++-- 18 files changed, 588 insertions(+), 241 deletions(-) create mode 100644 theme/template-parts/widgets/boss_kills.php create mode 100644 theme/template-parts/widgets/char_search.php create mode 100644 theme/wowpress/Frontend/Widgets/BossKills.php create mode 100644 theme/wowpress/Frontend/Widgets/CharacterSearch.php diff --git a/theme/components/raid-signup.php b/theme/components/raid-signup.php index 95269de..dbe8111 100644 --- a/theme/components/raid-signup.php +++ b/theme/components/raid-signup.php @@ -16,6 +16,7 @@ if (empty($chars) || empty($chars->first())) { $chars = [$this->character]; } + ?>
border border-character->color ?> shadow" x-data="{open : false}"> @@ -42,7 +43,7 @@ if (empty($chars) || empty($chars->first())) {
- +
diff --git a/theme/functions.php b/theme/functions.php index 1752da0..e89f560 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -5,6 +5,8 @@ use WoWPress\Database\CreateCharacterTable; use WoWPress\Database\CreateRaidTable; use WoWPress\Database\CreateSignupTable; use WoWPress\Database\CreateSKSTable; +use WoWPress\Frontend\Widgets\BossKills; +use WoWPress\Frontend\Widgets\CharacterSearch; use WoWPress\Frontend\Widgets\RaidSignup; use WoWPress\Models\Character; @@ -461,6 +463,8 @@ function wowpress_add_category_meta($taxonomy) /** Widgets */ $widget_raid_signup = new RaidSignup(); + $widget_boss_kills = new BossKills(); + $widget_char_search = new CharacterSearch(); diff --git a/theme/header.php b/theme/header.php index be0e5f3..dd4a33d 100644 --- a/theme/header.php +++ b/theme/header.php @@ -35,9 +35,9 @@ global $user;