summaryrefslogtreecommitdiffstats
path: root/views/Users/feed.html.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
committerMichael Francis <edude03@gmail.com>2011-05-28 13:28:16 -0400
commit2389d66da849798f8d4ec5f10e3b07c11da49185 (patch)
treee22556d12982395b469a23420c662662e3e064cc /views/Users/feed.html.php
downloadotakuhub-2389d66da849798f8d4ec5f10e3b07c11da49185.tar.xz
Initial Commit
Diffstat (limited to 'views/Users/feed.html.php')
-rw-r--r--views/Users/feed.html.php45
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