aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-08-03 17:02:24 +0000
committermistic100 <mistic@piwigo.org>2012-08-03 17:02:24 +0000
commitd7bf41b3ef59453e5e84e0d5352e698e9274f660 (patch)
tree10f65c86201cecb06615f5cc199be219080014a1 /themes/default
parentefdb998cee7d3a6cdeda811fd86f04f3092fd467 (diff)
feature 2380: add URL for user comment
git-svn-id: http://piwigo.org/svn/trunk@17351 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--themes/default/template/comment_list.tpl3
-rw-r--r--themes/default/template/picture.tpl4
2 files changed, 5 insertions, 2 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl
index b61cd73bb..ec27111ef 100644
--- a/themes/default/template/comment_list.tpl
+++ b/themes/default/template/comment_list.tpl
@@ -54,7 +54,8 @@
</div>
{/if}
- <span class="commentAuthor">{$comment.AUTHOR}</span> - <span class="commentDate">{$comment.DATE}</span>
+ <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span>
+ - <span class="commentDate">{$comment.DATE}</span>
{if isset($comment.IN_EDIT)}
<a name="edit_comment"></a>
<form method="post" action="{$comment.U_EDIT}" id="editComment">
diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl
index a46ed4e64..4d316c004 100644
--- a/themes/default/template/picture.tpl
+++ b/themes/default/template/picture.tpl
@@ -349,8 +349,10 @@ function togglePrivacyLevelBox()
{if $comment_add.SHOW_AUTHOR}
<p><label for="author">{'Author'|@translate} :</label></p>
<p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
- <p><label for="contentid">{'Comment'|@translate} :</label></p>
{/if}
+ <p><label for="website_url">{'Website'|@translate} :</label></p>
+ <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p>
+ <p><label for="contentid">{'Comment'|@translate} :</label></p>
<p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
<p><input type="hidden" name="key" value="{$comment_add.KEY}">
<input type="submit" value="{'Submit'|@translate}"></p>