diff --git a/tailwind/custom/file-header.css b/tailwind/custom/file-header.css index 8375223..bbd2902 100644 --- a/tailwind/custom/file-header.css +++ b/tailwind/custom/file-header.css @@ -4,7 +4,7 @@ Theme URI: https://nebelkrieger.de Author: Yorndar Author URI: https://nebelkrieger.de Description: The next gen NK-Theme -Version: 0.1.1 +Version: 0.2.1 Tested up to: 6.2 Requires PHP: 8.0 License: GNU General Public License v2 or later diff --git a/theme/inc/config-routing.php b/theme/inc/config-routing.php index b3ea8a0..7f3a660 100644 --- a/theme/inc/config-routing.php +++ b/theme/inc/config-routing.php @@ -1,6 +1,7 @@ 'index.php?wowpress_page=raid&raid_id=$matches[1]'], ['request/?$' => 'index.php?wowpress_page=form_request'], ['sks/?$' => 'index.php?wowpress_page=sks'], - ['sks/([A-Za-z-]+)?$' => 'index.php?wowpress_page=sks&list_name=$matches[1]'], + ['sks/([A-Za-z-0-9 ]+)?$' => 'index.php?wowpress_page=sks&list_name=$matches[1]'], $wp_rewrite->rules ); }); diff --git a/theme/lang/deu.json b/theme/lang/deu.json index 384bcc9..5809eef 100644 --- a/theme/lang/deu.json +++ b/theme/lang/deu.json @@ -1,9 +1,47 @@ { "Warlock" : "Hexenmeister", "Destruction": "Zerstörung", + "Demonology": "Dämonologie", + "Affliction": "Gebrechen", + "Evoker" : "Rufer", + "Augmentation": "Verstärkung", "Devastation" : "Verheerung", + "Preservation": "Bewahrung", + + "Paladin": "Paladin", "Retribution": "Vergeltung", + "Holy": "Heilig", + "Protection": "Schutz", + "Monk" : "Mönch", - "Windwalker" : "Windläufer" + "Windwalker" : "Windläufer", + "Brewmaster": "Braumeister", + "Mistweaver": "Nebelwirker", + + "Warrior": "Krieger", + "Arms": "Waffen", + "Fury": "Furor", + "_Protection" : "Schutz", + + "Hunter": "Jäger", + "Beast Mastery": "Tierherrschaft", + "Marksmanship": "Treffsicherheit", + "Survival": "Überleben", + + "Rogue": "Schurke", + "Assassination": "Meucheln", + "Outlaw": "Gesetzlosigkeit", + "Subtlety": "Täuschung", + + "Priest": "Priester", + "Discipline": "Disziplin", + "_Holy": "Heilig", + "Shadow": "Schatten", + + "Shaman": "Schamane", + "Elemental": "Elementar", + "Enhancement": "Verstärkung", + "Restoration": "Wiederherstellung" + } \ No newline at end of file diff --git a/theme/pages/sks.php b/theme/pages/sks.php index 33f525b..465cf23 100644 --- a/theme/pages/sks.php +++ b/theme/pages/sks.php @@ -9,9 +9,9 @@ use WoWPress\Models\SKS; set_sidebar_status('top', false); $liste = $GLOBALS['wowpress']['liste']; -if(!empty($liste)){ - $liste = SKS::where('list_name',$liste)->first(); - if(empty($liste->list_name)){ +if (!empty($liste)) { + $liste = SKS::where('list_name', $liste)->first(); + if (empty($liste->list_name)) { $liste = SKS::first(); } } @@ -80,7 +80,7 @@ if (empty($liste->list_name)) { - + @@ -138,7 +138,7 @@ if (empty($liste->list_name)) { +if (current_user_can('wowpress_edit_raids')) : ?>