From 7f98344e3d78e5a71c71ef7dce8c1116e3292e98 Mon Sep 17 00:00:00 2001 From: Seph Date: Wed, 1 May 2024 20:29:07 +0200 Subject: [PATCH] NavWalker --- tailwind/custom/file-header.css | 12 ++++++------ theme/functions.php | 2 +- theme/template-parts/layout/header-content.php | 3 ++- .../Frontend/NavWalker.php} | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) rename theme/{plugins/wowpress-navwalker.php => wowpress/Frontend/NavWalker.php} (92%) diff --git a/tailwind/custom/file-header.css b/tailwind/custom/file-header.css index 0a414b5..8375223 100644 --- a/tailwind/custom/file-header.css +++ b/tailwind/custom/file-header.css @@ -1,12 +1,12 @@ /*! Theme Name: WowPress -Theme URI: https://underscoretw.com/ -Author: underscoretw.com -Author URI: https://underscoretw.com/ -Description: A custom theme based on _tw -Version: 0.1.0 +Theme URI: https://nebelkrieger.de +Author: Yorndar +Author URI: https://nebelkrieger.de +Description: The next gen NK-Theme +Version: 0.1.1 Tested up to: 6.2 -Requires PHP: 7.4 +Requires PHP: 8.0 License: GNU General Public License v2 or later License URI: LICENSE Text Domain: wowpress diff --git a/theme/functions.php b/theme/functions.php index cbac8d0..ba8e1af 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -295,7 +295,7 @@ require get_template_directory() . '/inc/template-tags.php'; */ require get_template_directory() . '/inc/template-functions.php'; require get_template_directory() . '/inc/config-functions.php'; -require get_template_directory() . '/plugins/wowpress-navwalker.php'; + /** * Hide Admin Bar diff --git a/theme/template-parts/layout/header-content.php b/theme/template-parts/layout/header-content.php index 85f1c16..0ab9926 100644 --- a/theme/template-parts/layout/header-content.php +++ b/theme/template-parts/layout/header-content.php @@ -9,6 +9,7 @@ */ use WoWPress\Frontend\Icon; +use WoWPress\Frontend\NavWalker; ?> @@ -68,7 +69,7 @@ use WoWPress\Frontend\Icon; 'container' => false, 'menu_id' => 'primary-menu', 'items_wrap' => '%3$s', - 'walker' => new WoWPressNavWalker(), + 'walker' => new NavWalker(), ) ); diff --git a/theme/plugins/wowpress-navwalker.php b/theme/wowpress/Frontend/NavWalker.php similarity index 92% rename from theme/plugins/wowpress-navwalker.php rename to theme/wowpress/Frontend/NavWalker.php index 51347d9..2a4b4fa 100644 --- a/theme/plugins/wowpress-navwalker.php +++ b/theme/wowpress/Frontend/NavWalker.php @@ -1,14 +1,14 @@ -
+
'; } function end_lvl(&$output, $depth= 0, $args=null) {