]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/templates/comment_item.tpl
Add user language in settings, use that field as language for UI
[friendica.git] / view / theme / quattro / templates / comment_item.tpl
1                 <div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}" style="display: block;">
2                         <form class="comment-edit-form" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
3                                 <input type="hidden" name="type" value="{{$type}}" />
4                                 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
5                                 <input type="hidden" name="parent" value="{{$parent}}" />
6                                 {{*<!--<input type="hidden" name="return" value="{{$return_path}}" />-->*}}
7                                 <input type="hidden" name="jsreload" value="{{$jsreload}}" />
8                                 <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
9                                 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
10
11                                 <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >
12                                         <a class="comment-edit-photo-link" href="{{$mylink}}" title="{{$mytitle}}"><img class="my-comment-photo" src="{{$myphoto}}" alt="{{$mytitle}}" title="{{$mytitle}}" /></a>
13                                 </div>
14                                 <ul id="comment-edit-bb-{{$id}}"
15                                         class="comment-edit-bb">
16                                         <li><a class="editicon boldbb shadow"
17                                                 style="cursor: pointer;" title="{{$edbold}}"
18                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="b" data-id="{{$id}}"></a></li>
19                                         <li><a class="editicon italicbb shadow"
20                                                 style="cursor: pointer;" title="{{$editalic}}"
21                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="i" data-id="{{$id}}"></a></li>
22                                         <li><a class="editicon underlinebb shadow"
23                                                 style="cursor: pointer;" title="{{$eduline}}"
24                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="u" data-id="{{$id}}"></a></li>
25                                         <li><a class="editicon quotebb shadow"
26                                                 style="cursor: pointer;" title="{{$edquote}}"
27                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="quote" data-id="{{$id}}"></a></li>
28                                         <li><a class="editicon codebb shadow"
29                                                 style="cursor: pointer;" title="{{$edcode}}"
30                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="code" data-id="{{$id}}"></a></li>
31                                         <li><a class="editicon imagebb shadow"
32                                                 style="cursor: pointer;" title="{{$edimg}}"
33                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="img" data-id="{{$id}}"></a></li>
34                                         <li><a class="editicon urlbb shadow"
35                                                 style="cursor: pointer;" title="{{$edurl}}"
36                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="url" data-id="{{$id}}"></a></li>
37                                         <li><a class="editicon videobb shadow"
38                                                 style="cursor: pointer;" title="{{$edvideo}}"
39                                                 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="video" data-id="{{$id}}"></a></li>
40                                 </ul>   
41                                 <textarea id="comment-edit-text-{{$id}}" 
42                                         class="comment-edit-text-empty" 
43                                         name="body" 
44                                         onFocus="commentOpen(this,{{$id}}) && cmtBbOpen({{$id}});" >{{$comment}}</textarea>
45                                 {{if $qcomment}}
46                                         <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
47                                         <option value=""></option>
48                                 {{foreach $qcomment as $qc}}
49                                         <option value="{{$qc}}">{{$qc}}</option>                                
50                                 {{/foreach}}
51                                         </select>
52                                 {{/if}}
53
54                                 <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;" >
55                                         <input type="submit" onclick="post_comment({{$id}}); return false;" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit}}" />
56                                         <span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="fakelink">{{$preview}}</span>
57                                         <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
58                                 </div>
59
60                         </form>
61
62                 </div>