blob: b8527a4638716f4cb9096da6638299589648d55f (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAdminComments">
<h1> <?= _("Comments") ?> </h1>
<div id="gAdminCommentsMenu">
<?= $menu ?>
</div>
<div id="gAdminCommentsList">
<table>
<tr>
<th>
<?= _("Comment") ?>
</th>
<th>
<?= _("Date") ?>
</th>
<th>
<?= _("Actions") ?>
</th>
</tr>
<? foreach ($comments as $comment): ?>
<tr>
<td>
<div>
<b> <?= $comment->author ?> </b>
</div>
<div>
<b> <?= $comment->url ?> </b> | <b> <?= $comment->email ?> </b>
</div>
<div>
<?= $comment->text ?>
</div>
<div>
<? $item = $comment->item(); ?>
<img src="<?= $item->thumb_url() ?>"
alt="<?= $item->title ?>"
<?= photo::img_dimensions($item->thumb_width, $item->thumb_height, 75) ?>
/>
<?= sprintf(_("Comment left on <a href=\"%s\">%s</a>"), $item->url(), $item->title) ?>
</div>
</td>
<td>
<?= date("Y-M-d", $comment->created); ?>
</td>
<td>
<ul>
<? if ($comment->state != "unpublished"): ?>
<li>
<a href="<?= url::site("admin/comments/mark/unpublished/$comment->id?csrf=" . access::csrf_token()) ?>">
<?= _("Unapprove") ?>
</a>
</li>
<? endif ?>
<? if ($comment->state != "published"): ?>
<li>
<a href="<?= url::site("admin/comments/mark/published/$comment->id?csrf=" . access::csrf_token()) ?>">
<?= _("Approve") ?>
</a>
</li>
<? endif ?>
<? if ($comment->state != "spam"): ?>
<li>
<a href="<?= url::site("admin/comments/mark/spam/$comment->id?csrf=" . access::csrf_token()) ?>">
<?= _("Spam") ?>
</a>
</li>
<? endif ?>
<? if ($comment->state != "spam"): ?>
<li>
<a href="<?= url::site("admin/comments/mark/spam/$comment->id?csrf=" . access::csrf_token()) ?>">
<?= _("Delete") ?>
</a>
</li>
<? endif ?>
</ul>
</td>
</tr>
<? endforeach ?>
</table>
</div>
</div>
|