Skip to content

Instantly share code, notes, and snippets.

@alanfluff
Created May 23, 2012 17:03
Show Gist options
  • Save alanfluff/2776392 to your computer and use it in GitHub Desktop.
Save alanfluff/2776392 to your computer and use it in GitHub Desktop.
Visible test
if($page->parent->isHidden()) {
foreach($page->parents as $parent)
if($parent->viewable()) echo "<li><a href='{$parent->url}'>{$parent->title}</a></li>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment