Skip to content

Commit

Permalink
Merge 082ebe8 into 67608a9
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed May 14, 2019
2 parents 67608a9 + 082ebe8 commit 6549579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Kunstmaan/NodeBundle/Controller/WidgetsController.php
Expand Up @@ -208,9 +208,11 @@ protected function nodesToArray($locale, $rootNodes, $depth = 2)
switch (true) {
case !$nodeTranslation->isOnline():
$type = 'offline';

break;
case $rootNode->isHiddenFromNav():
$type = 'hidden-from-nav';

break;
default:
$type = 'default';
Expand Down
Expand Up @@ -151,6 +151,7 @@ private function hasOfflineParents(NodeTranslation $nodeTranslation)
return true;
}
}

return false;
}

Expand Down

0 comments on commit 6549579

Please sign in to comment.