]> git.mxchange.org Git - friendica.git/blob - view/templates/comment_item.tpl
Merge pull request #2170 from fabrixxm/issue_1953
[friendica.git] / view / templates / comment_item.tpl
1
2                 {{if $threaded}}
3                 <div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}" style="display: block;">
4                 {{else}}
5                 <div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}" style="display: block;">
6                 {{/if}}
7                         <form class="comment-edit-form" style="display: block;" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
8                                 <input type="hidden" name="type" value="{{$type}}" />
9                                 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
10                                 <input type="hidden" name="parent" value="{{$parent}}" />
11                                 {{*<!--<input type="hidden" name="return" value="{{$return_path}}" />-->*}}
12                                 <input type="hidden" name="jsreload" value="{{$jsreload}}" />
13                                 <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
14                                 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
15
16                                 <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >
17                                         <a class="comment-edit-photo-link" href="{{$mylink}}" title="{{$mytitle}}"><img class="my-comment-photo" src="{{$myphoto}}" alt="{{$mytitle}}" title="{{$mytitle}}" /></a>
18                                 </div>
19                                 <div class="comment-edit-photo-end"></div>
20                                 <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});" onBlur="commentClose(this,{{$id}});" >{{$comment}}</textarea>
21                                 {{if $qcomment}}
22                                         <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
23                                         <option value=""></option>
24                                 {{foreach $qcomment as $qc}}
25                                         <option value="{{$qc|escape:'html'}}">{{$qc}}</option>                          
26                                 {{/foreach}}
27                                         </select>
28                                 {{/if}}
29
30                                 <div class="comment-edit-text-end"></div>
31                                 <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;" >
32                                         <input type="submit" onclick="post_comment({{$id}}); return false;" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit|escape:'html'}}" />
33                                         {{if $preview}}<span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="fakelink">{{$preview}}</span>{{/if}}
34                                         <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
35                                 </div>
36
37                                 <div class="comment-edit-end"></div>
38                         </form>
39
40                 </div>