diff options
Diffstat (limited to 'views/Users/feed.html.php')
-rw-r--r-- | views/Users/feed.html.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/views/Users/feed.html.php b/views/Users/feed.html.php new file mode 100644 index 0000000..d37b0a6 --- /dev/null +++ b/views/Users/feed.html.php @@ -0,0 +1,45 @@ +<h1>Welcome <?= $user->username ?></h1> +<div class="post"> +<?= $this->form->create(null, array('action' => 'post')); ?> + <?= $this->form->field('body', array('type' => 'textarea')); ?> + <?= $this->form->submit('Post!'); ?> +<?= $this->form->end(); ?> +</div> +<h2> Here are some posts:</h2> + +<?php if($feed): ?> +<?php foreach ($feed as $post): ?> +<div class="date"> + <span class="month"><a href="#" title="">Nov</a></span> + <span class="day"><a href="#" title="">8</a></span> + </div> <!-- .date --> + + + + <div class="post post-link"> + <!--<h3><a href="#" title="http://" >My favorite web site</a></h3>--> + + <p><?php echo $post->body ?></p> + + + + <div class="postmeta"> + + <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> + + + + <p class="notes"><a href="#" title="http://demo.tumblr.com/post/234/my-favorite-web-site#permalink-notes">1,256 notes</a></p> + + + + + + </div> <!-- .postmeta --> + </div> <!-- .post --> + <div class="clear newpost"></div> +<?php endforeach; ?> +<?php else: ?> +<p>Woops! You have no posts, why not post something and get the party started!</p> +<?php endif; ?> +
\ No newline at end of file |