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