SHARE
TWEET

Untitled

a guest Jan 8th, 2013 31 Never
  1. <?php
  2. $articles = $page->children()->visible()->flip();
  3. $count = $articles->count();
  4. foreach($articles as $article){
  5.         echo "<article><span=\"numeral\">{$count--}</span>";
  6.         echo "<h1><a href=\"" . html($article->url()) ."\">". html($article->title()) ."</a></h1>";
  7.         echo "</article>";
  8. }
  9. ?>
RAW Paste Data
Top