Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement