Skip to content

Commit

Permalink
fix to link pages without content in list view.
Browse files Browse the repository at this point in the history
  • Loading branch information
jflearn committed May 20, 2023
1 parent 4c3de62 commit deed892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/RollupPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function Content() {
if ( $child->ShowInMenus ) {
$content .= '<li' . ( $index === 0 ? ' class="active"' : '' ) . '>';

if ( $childContent ) {
if ( $childContent || $this->ShowLinksOnly === self::DISPLAY_LIST ) {
$content .= '<a href="' . $child->Link() . '" data-url-segment="' . $child->URLSegment . '">' . $child->MenuTitle . '</a>';
} else {
$content .= '<span>' . $child->MenuTitle . '</span>';
Expand Down

0 comments on commit deed892

Please sign in to comment.