Guest User

Untitled

a guest
Jun 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. navigation.inc
  2. function display_output(&$ar,$parameterAr)
  3. {
  4. ...
  5. $hidden = '';
  6. if (!$showhidden || $showhidden=='onlyactive')
  7. {
  8. $pathIds = '';
  9. // calculate hidden entries which still should be shown if onlyactive flag is set
  10. if ($showhidden == 'onlyactive')
  11. {
  12. //remove empty string element from the $current_path - happens there sometimes
  13. $currentPathFiltered = array_filter($current_path);
  14. if (count($currentPathFiltered))
  15. {
  16. //show hidden entries if we're already in (by direct link)
  17. $pathIds = ' OR id IN ('.implode(',', $currentPathFiltered).')';
  18. }
  19. }
  20. $hidden = ' AND (hidden=0'.$pathIds.')';
  21. }
  22. ...
Add Comment
Please, Sign In to add comment