summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-11 20:54:12 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-11 20:54:12 +0000
commit752459c64cafec0f003c4b8531201c58a5fecad7 (patch)
tree5d608658a9102d1c5f15d47e8e8fd422ac9b427d /themes
parentdd9058ada40b3afd47d3cbf800b78862bc44bdb6 (diff)
Display comments from the database.
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/photo.html.php46
1 files changed, 2 insertions, 44 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index ffa22991..1d54fe7d 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -8,48 +8,6 @@
height="<?= $item->resize_height ?>" />
<h1><?= $item->title_edit ?></h1>
<div><?= $item->description_edit ?></div>
-
- <div id="gComments">
- <h2>Comments</h2>
-
- <ul id="gCommentThread">
- <li id="gComment-1" class="gComment odd">
- <p><a href="#" class="gAuthor">Andy</a> said 2 hours ago <span class="understate">(October 23, 2008 11:30am)</span></p>
- <div>
- Lorem ipsum dolor sit amet.
- </div>
- </li>
- <li id="gComment-2" class="gComment even">
- <p>
- <a href="#" class="gAuthor">Other user</a> said 30 minutes ago <span class="understate">(October 23, 2008 1:00pm)</span>
- </p>
- <div>
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard
- dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
- It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It
- was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with
- desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
- </div>
- </li>
- </ul>
-
- <form id="gCommentAdd" class="gExpandedForm">
- <fieldset>
- <legend>Add comment</legend>
- <div class="row">
- <label for="gCommentAuthor">Your Name</label>
- <input type="text" id="gCommentAuthor" class="text" />
- </div>
- <div>
- <label for="gCommentEmail">Your Email (not displayed)</label>
- <input type="text" id="gCommentEmail" class="text" />
- </div>
- <div class="row">
- <label for="gCommentText">Comment</label>
- <textarea id="gCommentText"></textarea>
- </div>
- <input type="submit" class="button" value="Add" />
- </fieldset>
- </form>
- </div><!-- END #gComments -->
+
+ <? comment::show_comments($item->id); ?>
</div>