
Untitled
By: a guest on
Jan 8th, 2013 | syntax:
PHP | size: 0.29 KB | hits: 25 | expires: Never
<?php
$articles = $page->children()->visible()->flip();
$count = $articles->count();
foreach($articles as $article){
echo "<article><span=\"numeral\">{$count--}</span>";
echo "<h1><a href=\"" . html($article->url()) ."\">". html($article->title()) ."</a></h1>";
echo "</article>";
}
?>