]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/comment_item.tpl
98b3c4563632f1e203e5fc61c803bbde1b663607
[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="preview" id="comment-preview-inp-{{$id}}" value="0" />
14                 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
15
16                 <p class="comment-edit-bb-{{$id}} comment-icon-list">
17                         <span>
18                                 <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}}">
19                                         <i class="fa fa-picture-o"></i>
20                                 </button>
21                                 <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}}');">
22                                         <i class="fa fa-paperclip"></i>
23                                 </button>
24                         </span>
25                         <span>
26                                 <button type="button" class="btn btn-sm icon bb-url" style="cursor: pointer;" aria-label="{{$edurl}}" title="{{$edurl}}" onclick="insertFormatting('url',{{$id}});">
27                                         <i class="fa fa-link"></i>
28                                 </button>
29                                 <button type="button" class="btn btn-sm icon underline" style="cursor: pointer;" aria-label="{{$eduline}}" title="{{$eduline}}" onclick="insertFormatting('u',{{$id}});">
30                                         <i class="fa fa-underline"></i>
31                                 </button>
32                                 <button type="button" class="btn btn-sm icon italic" style="cursor: pointer;" aria-label="{{$editalic}}" title="{{$editalic}}" onclick="insertFormatting('i',{{$id}});">
33                                         <i class="fa fa-italic"></i>
34                                 </button>
35                                 <button type="button" class="btn btn-sm icon bold" style="cursor: pointer;" aria-label="{{$edbold}}" title="{{$edbold}}" onclick="insertFormatting('b',{{$id}});">
36                                         <i class="fa fa-bold"></i>
37                                 </button>
38                                 <button type="button" class="btn btn-sm icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote}}" onclick="insertFormatting('quote',{{$id}});">
39                                         <i class="fa fa-quote-left"></i>
40                                 </button>
41                         </span>
42                 </p>
43                 <p>
44                         <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>
45                 </p>
46 {{if $qcomment}}
47                 <p>
48                         <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});">
49                                 <option value=""></option>
50         {{foreach $qcomment as $qc}}
51                                 <option value="{{$qc}}">{{$qc}}</option>
52         {{/foreach}}
53                         </select>
54                 </p>
55 {{/if}}
56
57                 <p class="comment-edit-submit-wrapper">
58 {{if $preview}}
59                         <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>
60 {{/if}}
61                         <button type="submit" class="btn btn-primary btn-sm" id="comment-edit-submit-{{$id}}" name="submit"><i class="fa fa-envelope"></i> {{$submit}}</button>
62                 </p>
63
64                 <div class="comment-edit-end clear"></div>
65         </form>
66         <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
67 </div>
68