Advertisement
Guest User

Untitled

a guest
Jan 8th, 2013
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None
  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. ?>
Advertisement
RAW Paste Data Copied
Advertisement