root/trunk/apps/snippets/modules/comment/templates/_comment.php

Revision 2, 1.0 kB (checked in by fabien, 4 years ago)

initial import

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php echo use_helpers('Date', 'Text') ?>
2   <dl class="comment">
3     <dt>
4       <div class="gravatar"><img width="40" height="40" src="http://www.gravatar.com/avatar.php?gravatar_id=<?php echo md5($comment->getSnippetUser()->getEmail()) ?>&rating=R&size=40&default=http%3A%2F%2Fwww.symfony-project.com%2Fimages%2Fgravatar.gif" alt="gravatar icon" /></div>
5       <span class="weblog_nb">#<?php echo $rank ?></span>
6       <strong><em><?php echo link_to($comment->getSnippetUser(), 'snippet/listByUser?login='.$comment->getSnippetUser()->getLogin()) ?></em></strong>
7       <small>on <?php echo date('Y-m-d \a\t h:i', $comment->getCreatedAt('U')) ?></small>
8     </dt>
9     <dd>
10       <div class="snippet">
11         <?php echo simple_format_text($comment->getHtmlBody()) ?>
12       </div>
13     </dd>
14   </dl>
15   <div style="clear: both"></div>
16
17 <?php if($sf_user->hasCredential('admin')): ?>
18   <?php echo link_to('[delete this comment]', 'comment/delete?id='.$comment->getId(), 'confirm=Are you sure you want to delete this comment?') ?>
19 <?php endif; ?>
20
Note: See TracBrowser for help on using the browser.