This commit is contained in:
Alexander Agnarson 2021-03-03 14:56:23 +01:00
parent 2e0d2c4a34
commit 75c4c99465
25 changed files with 6799 additions and 1638 deletions

View file

@ -3,7 +3,7 @@
* An accessible and mobile-friendly implementation for navigation menus.
*/
namespace AlxMedia;
namespace Curver;
/**
* Object containing all methods and hooks to modify default menus.
@ -46,7 +46,7 @@ class Nav {
*
* @var string
*/
protected $handle_prefix = 'alexmedia-nav';
protected $handle_prefix = 'curver-nav';
/**
* Init.
@ -56,6 +56,9 @@ class Nav {
* @return void
*/
public function init() {
if ( apply_filters( 'curver_disable_nav_mods', false ) ) {
return;
}
add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 );
add_filter( 'nav_menu_item_title', [ $this, 'nav_menu_item_title' ], 10, 4 );
}