diff options
Diffstat (limited to 'themes/default/template')
-rw-r--r-- | themes/default/template/comment_list.tpl | 3 | ||||
-rw-r--r-- | themes/default/template/picture.tpl | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/themes/default/template/comment_list.tpl b/themes/default/template/comment_list.tpl index ec27111ef..daa1b835c 100644 --- a/themes/default/template/comment_list.tpl +++ b/themes/default/template/comment_list.tpl @@ -54,7 +54,8 @@ </div> {/if} - <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="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span> + {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if} - <span class="commentDate">{$comment.DATE}</span> {if isset($comment.IN_EDIT)} <a name="edit_comment"></a> diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 616be3d5c..7e4c95dce 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -348,12 +348,16 @@ function togglePrivacyLevelBox() <h4>{'Add a comment'|@translate}</h4> <form method="post" action="{$comment_add.F_ACTION}" id="addComment"> {if $comment_add.SHOW_AUTHOR} - <p><label for="author">{'Author'|@translate} :</label></p> + <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></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> + {if $comment_add.SHOW_EMAIL} + <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> + <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></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} ({'mandatory'|@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> |