Advertisement
Guest User

Untitled

a guest
Feb 15th, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php foreach ($pager>getResults() as $News): ?>
  2. <div>
  3.     <h2><a href="<?php echo url_for('news/show?slug='.$News['SLUG']); ?>"><?php echo $News['TITLE']; ?></a></h2>
  4.     <?php echo $News['TEXT']; ?>
  5.     <?php if($News['FTEXT']==1): ?>
  6.     <p>
  7.         <a href="<?php echo url_for('news/show?slug='.$News['SLUG']); ?>">Read more...</a>
  8.     </p>
  9.     <?php endif; ?>
  10. </div>
  11. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement