This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64ecf38
commit 698f7ff
Showing
10 changed files
with
46 additions
and
165 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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,35 @@ | ||
<?php | ||
/** | ||
* Customize the output of menus for Foundation top bar | ||
* | ||
* @package WordPress | ||
* @subpackage FoundationPress | ||
* @since FoundationPress 1.0.0 | ||
*/ | ||
|
||
// 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=\"menu\">\n"; | ||
} | ||
} | ||
|
||
|
||
if ( ! class_exists( 'Foundationpress_Offcanvas_Walker' ) ) : | ||
This comment has been minimized.
Sorry, something went wrong. |
||
class Foundationpress_Offcanvas_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; | ||
|
||
|
||
|
||
endif; | ||
|
||
?> |
This file was deleted.
Oops, something went wrong.
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
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
hi, why did you choose to nest the second if inside the first?