From 77437c695e501986c54d8c6777995368ff53c577 Mon Sep 17 00:00:00 2001 From: AlxMedia Date: Thu, 22 Dec 2022 13:01:33 +0100 Subject: [PATCH] Change AlxMedia to Splits (where Split didn't work before) --- footer.php | 2 +- functions.php | 4 ++-- functions/nav.php | 6 +++--- header.php | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/footer.php b/footer.php index 60522a3..504c1e1 100644 --- a/footer.php +++ b/footer.php @@ -46,7 +46,7 @@ diff --git a/functions.php b/functions.php index 357f99a..7bc05f3 100644 --- a/functions.php +++ b/functions.php @@ -94,11 +94,11 @@ add_action( 'after_setup_theme', 'splits_setup' ); /* Custom navigation /* ------------------------------------ */ -if ( ! class_exists( '\AlxMedia\Nav' ) ) { +if ( ! class_exists( '\Splits\Nav' ) ) { require_once 'functions/nav.php'; } add_action( 'wp', function() { - $nav = new \AlxMedia\Nav(); + $nav = new \Splits\Nav(); $nav->enqueue( [ 'script' => 'js/nav.js', diff --git a/functions/nav.php b/functions/nav.php index b735578..0c11d00 100644 --- a/functions/nav.php +++ b/functions/nav.php @@ -3,7 +3,7 @@ * An accessible and mobile-friendly implementation for navigation menus. */ -namespace AlxMedia; +namespace Splits; /** * Object containing all methods and hooks to modify default menus. @@ -46,7 +46,7 @@ class Nav { * * @var string */ - protected $handle_prefix = 'alxmedia-nav'; + protected $handle_prefix = 'splits-nav'; /** * Init. @@ -56,7 +56,7 @@ class Nav { * @return void */ public function init() { - if ( apply_filters( 'alxmedia_disable_nav_mods', false ) ) { + if ( apply_filters( 'splits_disable_nav_mods', false ) ) { return; } add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 ); diff --git a/header.php b/header.php index 9add939..a7befd5 100644 --- a/header.php +++ b/header.php @@ -28,14 +28,14 @@
- 'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?> + 'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?>
- 'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?> + 'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?>
@@ -69,7 +69,7 @@
- 'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?> + 'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?>