feed.html.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <h1>Welcome <?= $user->username ?></h1>
  2. <div class="post">
  3. <?= $this->form->create(null, array('action' => 'post')); ?>
  4. <?= $this->form->field('body', array('type' => 'textarea')); ?>
  5. <?= $this->form->submit('Post!'); ?>
  6. <?= $this->form->end(); ?>
  7. </div>
  8. <h2> Here are some posts:</h2>
  9. <?php if($feed): ?>
  10. <?php foreach ($feed as $post): ?>
  11. <div class="date">
  12. <span class="month"><a href="#" title="">Nov</a></span>
  13. <span class="day"><a href="#" title="">8</a></span>
  14. </div> <!-- .date -->
  15. <div class="post post-link">
  16. <!--<h3><a href="#" title="http://" >My favorite web site</a></h3>-->
  17. <p><?php echo $post->body ?></p>
  18. <div class="postmeta">
  19. <p class="posttime"><a href="#" title="http://demo.tumblr.com/post/234/my-favorite-web-site">Posted <?=date('m/d/y', $post->datetime->sec) ?></a></p>
  20. <p class="notes"><a href="#" title="http://demo.tumblr.com/post/234/my-favorite-web-site#permalink-notes">1,256 notes</a></p>
  21. </div> <!-- .postmeta -->
  22. </div> <!-- .post -->
  23. <div class="clear newpost"></div>
  24. <?php endforeach; ?>
  25. <?php else: ?>
  26. <p>Woops! You have no posts, why not post something and get the party started!</p>
  27. <?php endif; ?>