-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add proxy class to enqueue resources for Secondary Menu
- Loading branch information
1 parent
abb4b92
commit b757ea2
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* Custom navwalker for secondary menu. | ||
* | ||
* Author: Soare Robert <[email protected]> | ||
* Created on: 25/04/2024 | ||
* | ||
* @package Neve\Views | ||
*/ | ||
|
||
namespace Neve\Views; | ||
|
||
/** | ||
* Class Secondary_Nav_Walker | ||
* | ||
* @package Neve\Views | ||
*/ | ||
class Secondary_Nav_Walker extends Nav_Walker { | ||
|
||
/** | ||
* Secondary_Nav_Walker constructor. | ||
*/ | ||
public function __construct() { | ||
add_action( 'neve_after_header_wrapper_hook', [ $this, 'inline_style_for_sidebar' ], 9 ); | ||
} | ||
} |