hamburg-freifunk-wp-theme/library/class-foundationpress-mobile-walker.php
2019-02-08 20:07:22 +01:00

21 lines
540 B
PHP

<?php
/**
* Customize the output of menus for Foundation mobile walker
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
/**
* Big thanks to Brett Mason (https://github.com/brettsmason) for the awesome walker
*/
if ( ! class_exists( 'Foundationpress_Mobile_Walker' ) ) :
class Foundationpress_Mobile_Walker extends Walker_Nav_Menu {
function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat( "\t", $depth );
$output .= "\n$indent<ul class=\"vertical nested menu\">\n";
}
}
endif;