2021-04-27 22:21:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Customize the output of menus for Foundation top bar
|
|
|
|
*
|
2021-04-28 01:20:47 +02:00
|
|
|
* @package arcHIVE-theme
|
|
|
|
* @since arcHIVE-theme 1.0.0
|
2021-04-27 22:21:26 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( ! class_exists( 'Foundationpress_Top_Bar_Walker' ) ) :
|
|
|
|
class Foundationpress_Top_Bar_Walker extends Walker_Nav_Menu {
|
|
|
|
function start_lvl( &$output, $depth = 0, $args = array() ) {
|
|
|
|
$indent = str_repeat( "\t", $depth );
|
|
|
|
$output .= "\n$indent<ul class=\"dropdown menu vertical\" data-toggle>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
endif;
|