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
6ab1931
commit c77c089
Showing
1 changed file
with
16 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<?php | ||
/** | ||
* class Bootstrap_Walker_Nav_Menu() | ||
* | ||
* Extending Walker_Nav_Menu to modify class assigned to submenu ul element | ||
* | ||
* @author Rachel Baker | ||
**/ | ||
class Bootstrapwp_Walker_Nav_Menu extends Walker_Nav_Menu { | ||
/** | ||
* class Bootstrap_Walker_Nav_Menu() | ||
* Extending Walker_Nav_Menu to modify class assigned to submenu ul element | ||
* @author Rachel Baker | ||
**/ | ||
|
||
function __construct() { | ||
class Bootstrapwp_Walker_Nav_Menu extends Walker_Nav_Menu | ||
{ | ||
public function __construct() | ||
{ | ||
} | ||
|
||
} | ||
function start_lvl(&$output, $depth) { | ||
function start_lvl(&$output, $depth) | ||
{ | ||
$indent = str_repeat("\t", $depth); | ||
$output .= "\n$indent<ul class=\"dropdown-menu\">\n"; | ||
} | ||
|
||
$indent = str_repeat("\t", $depth); | ||
$output .= "\n$indent<ul class=\"dropdown-menu\">\n"; | ||
} | ||
|
||
} | ||
} |