aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/object/blog-comment.php
blob: 344eb5a9c9fa064fa52de0cd951c0f09c66c08a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php

	/**
	 * Elgg blog individual comment view
	 * 
	 * @package ElggBlog
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Ben Werdmuller <ben@curverider.co.uk>
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.com/
	 * 
	 * @uses $vars['entity'] The comment to view
	 */


?>

	<li>
		<div class="blog-comment">
		<p class="blog-comment-text"><?php echo elgg_view("output/longtext",array("value" => $vars['entity']->value)); ?></p>
		<p class="blog-comment-byline">
			<?php
			
				if ($owner = get_entity($vars['entity']->owner_guid)) {
					echo $owner->name;
				}
			
			?>, <?php echo date("F j, g:i a",$vars['entity']->time_created); ?>
		</p>
		<?php

			if ($vars['entity']->canEdit()) {
?>
		<p class="blog-comment-menu">
		<?php

			echo elgg_view("output/confirmlink",array(
														'href' => $vars['url'] . "action_handler.php?action=blog/comments/delete&comment_id=" . $vars['entity']->id,
														'text' => elgg_echo('delete'),
														'confirm' => elgg_echo('deleteconfirm'),
													));
		
		?>
		</p>
<?php
			}
		
		?>
		</div>
	</li>