Guest User

Untitled

a guest
May 28th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <?php $last_articles = $this->children(array('limit'=>3, 'order'=>'page.created_on DESC')); ?>
  2. <?php foreach ($last_articles as $article): ?>
  3. <div class="entry">
  4. <span class="date"><?php echo $article->date('%A'); ?><em><?php echo $article->date('%d'); ?></em></span>
  5. <h3 class="title"><?php echo $article->link($article->title); ?></h3>
  6. <span class="tags"><strong>tags:</strong> <?php echo join(', ', $article->tags()); ?></span>
  7. <?php echo $article->content(); ?>
  8. <span class="read-more"><?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#133;'); ?></span>
  9. </div>
  10. <?php endforeach; ?>
  11.  
  12. <?php $last_articles = $this->children(array('limit'=>3, offset =>3 'order'=>'page.created_on DESC')); ?>
  13. <?php foreach ($last_articles as $article): ?>
  14. <div class="entry">
  15. <span class="date"><?php echo $article->date('%A'); ?><em><?php echo $article->date('%d'); ?></em></span>
  16. <h3 class="title"><?php echo $article->link($article->title); ?></h3>
  17. <span class="tags"><strong>tags:</strong> <?php echo join(', ', $article->tags()); ?></span>
  18. <?php echo $article->content(); ?>
  19. <span class="read-more"><?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#133;'); ?></span>
  20. </div>
  21. <?php endforeach; ?>
  22.  
  23. <?php $last_articles = $this->children(array('limit'=>3, offset =>6 'order'=>'page.created_on DESC')); ?>
  24. <?php foreach ($last_articles as $article): ?>
  25. <div class="entry">
  26. <span class="date"><?php echo $article->date('%A'); ?><em><?php echo $article->date('%d'); ?></em></span>
  27. <h3 class="title"><?php echo $article->link($article->title); ?></h3>
  28. <span class="tags"><strong>tags:</strong> <?php echo join(', ', $article->tags()); ?></span>
  29. <?php echo $article->content(); ?>
  30. <span class="read-more"><?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#133;'); ?></span>
  31. </div>
  32. <?php endforeach; ?>
  33.  
  34. <?php $last_articles = $this->children(array('limit'=>3, offset =>9 'order'=>'page.created_on DESC')); ?>
  35. <?php foreach ($last_articles as $article): ?>
  36. <div class="entry">
  37. <span class="date"><?php echo $article->date('%A'); ?><em><?php echo $article->date('%d'); ?></em></span>
  38. <h3 class="title"><?php echo $article->link($article->title); ?></h3>
  39. <span class="tags"><strong>tags:</strong> <?php echo join(', ', $article->tags()); ?></span>
  40. <?php echo $article->content(); ?>
  41. <span class="read-more"><?php if ($article->hasContent('extended')) echo $article->link('Continue Reading&#133;'); ?></span>
  42. </div>
  43. <?php endforeach; ?>
Add Comment
Please, Sign In to add comment