Changeset 18164 for trunk/themes/default


Ignore:
Timestamp:
Sep 23, 2012, 11:34:30 AM (12 years ago)
Author:
mistic100
Message:

feature 2754: Add "Email" field for user comments + mandatory "Author"

Location:
trunk/themes/default/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/comment_list.tpl

    r17351 r18164  
    5555                {/if}
    5656
    57                 <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span>
     57                <span class="commentAuthor">{if $comment.WEBSITE_URL}<a href="{$comment.WEBSITE_URL}" class="external" target="_blank">{$comment.AUTHOR}</a>{else}{$comment.AUTHOR}{/if}</span>
     58      {if $comment.EMAIL}- <a href="mailto:{$comment.EMAIL}">{$comment.EMAIL}</a>{/if}
    5859      - <span class="commentDate">{$comment.DATE}</span>
    5960                {if isset($comment.IN_EDIT)}
  • trunk/themes/default/template/picture.tpl

    r17979 r18164  
    349349                        <form method="post" action="{$comment_add.F_ACTION}" id="addComment">
    350350                                {if $comment_add.SHOW_AUTHOR}
    351                                         <p><label for="author">{'Author'|@translate} :</label></p>
     351                                        <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p>
    352352                                        <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
    353353                                {/if}
    354         <p><label for="website_url">{'Website'|@translate} :</label></p>
    355                           <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p>
    356                           <p><label for="contentid">{'Comment'|@translate} :</label></p>
     354                                {if $comment_add.SHOW_EMAIL}
     355                                        <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p>
     356                                        <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p>
     357                                {/if}
     358                                <p><label for="website_url">{'Website'|@translate} :</label></p>
     359                                <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p>
     360                                <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p>
    357361                                <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
    358362                                <p><input type="hidden" name="key" value="{$comment_add.KEY}">
Note: See TracChangeset for help on using the changeset viewer.