projects
/
WP-Themes
/
harborcountry.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa2f41e
)
Update menu again
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 18 Oct 2016 19:00:35 +0000
(15:00 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 18 Oct 2016 19:00:35 +0000
(15:00 -0400)
Offcanvas update for when to output the home item.
lib/navigation.php
patch
|
blob
|
history
diff --git
a/lib/navigation.php
b/lib/navigation.php
index
13caab2
..
7c319b7
100644
(file)
--- a/
lib/navigation.php
+++ b/
lib/navigation.php
@@
-123,7
+123,9
@@
function glm_page_menu($parent = 0, $class = '',$page_ids = [])
}
$pages = get_pages($args);
echo '<ul'.(($class)?' class="'.$class.'"':'').'><!-- begin -->'."\n";
- echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
+ if ( $parent === 0 ) {
+ echo '<li class="page_item"><a href="' . get_bloginfo('url') . '">Home</a></li>';
+ }
foreach ($pages as $page) {
$childs = get_pages('child_of=' . $page->ID);
if (count($childs) > 0) {