Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 14, 2012 14:52
Show Gist options
  • Save bastianallgeier/1611711 to your computer and use it in GitHub Desktop.
Save bastianallgeier/1611711 to your computer and use it in GitHub Desktop.
<ul>
<?php foreach($pages->index() as $p): ?>
<?php if($p->promoted() != 'yes') continue; ?>
<li><?php echo $p->title() ?></li>
<?php endforeach ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment