aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-11-08 04:28:30 +0000
committerrvelices <rv-github@modusoptimus.com>2006-11-08 04:28:30 +0000
commite5e776a263ba63407893a28df379f2ac8152680c (patch)
treecddbdfa05f6c58740161778d78f80112dac1a414 /template/yoga
parente44f0b01549d3a52c5b261767c6531044d09a1a1 (diff)
- comments.php improvements:
- unvalidated comments are shown only for administrators - added delete/validate icons for admins - removed some unused code - display of comment content performed through an event - replace some get_thumbnail_src with get_thumbnail_url git-svn-id: http://piwigo.org/svn/trunk@1598 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga')
-rw-r--r--template/yoga/comments.tpl17
-rw-r--r--template/yoga/icon/validate_s.pngbin0 -> 315 bytes
2 files changed, 14 insertions, 3 deletions
diff --git a/template/yoga/comments.tpl b/template/yoga/comments.tpl
index 6bf28d33b..8ba52d5ef 100644
--- a/template/yoga/comments.tpl
+++ b/template/yoga/comments.tpl
@@ -70,7 +70,7 @@
</fieldset>
- <p><input type="submit" name="submit" value="{lang:Filter and display}"></p>
+ <p><input type="submit" value="{lang:Filter and display}"></p>
</form>
@@ -80,8 +80,19 @@
<!-- BEGIN comment -->
<div class="comment">
- <a class="illustration" href="{comment.U_PICTURE}"><img src="{comment.TN_SRC}" /></a>
- <p class="commentHeader"><span class="author">{comment.AUTHOR}</span> - <span class="date">{comment.DATE}</span></p>
+ <a class="illustration" href="{comment.U_PICTURE}"><img src="{comment.TN_SRC}" alt="{comment.ALT}" /></a>
+ <p class="commentHeader"><span class="author">{comment.AUTHOR}</span> - <span class="date">{comment.DATE}</span>
+ <!-- BEGIN action_delete -->
+ <a href="{comment.action_delete.U_DELETE}" title="{lang:comments_del}">
+ <img src="{pwg_root}{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{lang:delete}]"/>
+ </a>
+ <!-- END action_delete -->
+ <!-- BEGIN action_validate -->
+ <a href="{comment.action_validate.U_VALIDATE}" title="validate this comment">
+ <img src="{pwg_root}{themeconf:icon_dir}/validate_s.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[validate]"/>
+ </a>
+ <!-- END action_validate -->
+ </p>
<blockquote>{comment.CONTENT}</blockquote>
<hr class="separation">
</div>
diff --git a/template/yoga/icon/validate_s.png b/template/yoga/icon/validate_s.png
new file mode 100644
index 000000000..400bf8a24
--- /dev/null
+++ b/template/yoga/icon/validate_s.png
Binary files differ