]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/comment_item.tpl
wrapping up 2019.12
[friendica.git] / view / theme / frio / templates / comment_item.tpl
1
2 {{if $threaded}}
3 <div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}">
4 {{else}}
5 <div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}">
6 {{/if}}
7         <form class="comment-edit-form" data-item-id="{{$id}}" 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="post_id_random" value="{{$rand_num}}" />
14
15                 <p class="comment-edit-bb-{{$id}} comment-icon-list">
16                         <span>
17                                 <button type="button" class="btn btn-sm icon bb-img" style="cursor: pointer;" aria-label="{{$edimg}}" title="{{$edimg}}" data-role="insert-formatting" data-bbcode="img" data-id="{{$id}}">
18                                         <i class="fa fa-picture-o"></i>
19                                 </button>
20                                 <button type="button" class="btn btn-sm icon bb-attach" style="cursor: pointer;" aria-label="{{$edattach}}" title="{{$edattach}}" ondragenter="return commentLinkDrop(event, {{$id}});" ondragover="return commentLinkDrop(event, {{$id}});" ondrop="commentLinkDropper(event);" onclick="commentGetLink({{$id}}, '{{$prompttext}}');">
21                                         <i class="fa fa-paperclip"></i>
22                                 </button>
23                         </span>
24                         <span>
25                                 <button type="button" class="btn btn-sm icon bb-url" style="cursor: pointer;" aria-label="{{$edurl}}" title="{{$edurl}}" onclick="insertFormatting('url',{{$id}});">
26                                         <i class="fa fa-link"></i>
27                                 </button>
28                                 <button type="button" class="btn btn-sm icon underline" style="cursor: pointer;" aria-label="{{$eduline}}" title="{{$eduline}}" onclick="insertFormatting('u',{{$id}});">
29                                         <i class="fa fa-underline"></i>
30                                 </button>
31                                 <button type="button" class="btn btn-sm icon italic" style="cursor: pointer;" aria-label="{{$editalic}}" title="{{$editalic}}" onclick="insertFormatting('i',{{$id}});">
32                                         <i class="fa fa-italic"></i>
33                                 </button>
34                                 <button type="button" class="btn btn-sm icon bold" style="cursor: pointer;" aria-label="{{$edbold}}" title="{{$edbold}}" onclick="insertFormatting('b',{{$id}});">
35                                         <i class="fa fa-bold"></i>
36                                 </button>
37                                 <button type="button" class="btn btn-sm icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote}}" onclick="insertFormatting('quote',{{$id}});">
38                                         <i class="fa fa-quote-left"></i>
39                                 </button>
40                         </span>
41                 </p>
42                 <p>
43                         <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty form-control text-autosize" name="body" placeholder="{{$comment}}" rows="3" data-default="{{$default}}">{{$default}}</textarea>
44                 </p>
45 {{if $qcomment}}
46                 <p>
47                         <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});">
48                                 <option value=""></option>
49         {{foreach $qcomment as $qc}}
50                                 <option value="{{$qc}}">{{$qc}}</option>
51         {{/foreach}}
52                         </select>
53                 </p>
54 {{/if}}
55
56                 <p class="comment-edit-submit-wrapper">
57 {{if $preview}}
58                         <button type="button" class="btn btn-defaul btn-sm" onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}"><i class="fa fa-eye"></i> {{$preview}}</button>
59 {{/if}}
60                         <button type="submit" class="btn btn-primary btn-sm" id="comment-edit-submit-{{$id}}" name="submit"><i class="fa fa-envelope"></i> {{$submit}}</button>
61                 </p>
62
63                 <div class="comment-edit-end clear"></div>
64         </form>
65         <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
66 </div>
67