Created
May 23, 2012 17:03
-
-
Save alanfluff/2776392 to your computer and use it in GitHub Desktop.
Visible test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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