]> git.mxchange.org Git - friendica.git/blob - view/theme/diabook/smarty3/comment_item.tpl
Merge pull request #579 from 23n/patch-4
[friendica.git] / view / theme / diabook / smarty3 / 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
10                                 <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >
11                                         <a class="comment-edit-photo-link" href="{{$mylink}}" title="{{$mytitle}}"><img class="my-comment-photo" src="{{$myphoto}}" alt="{{$mytitle}}" title="{{$mytitle}}" /></a>
12                                 </div>
13                                 <div class="comment-edit-photo-end"></div>
14                                 <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});tautogrow({{$id}});cmtBbOpen({{$id}});"  >{{$comment}}</textarea>
15                                 <div class="comment-edit-bb-{{$id}}" style="display:none;">                             
16                                 <a class="icon bb-image" style="cursor: pointer;" title="{{$edimg}}" onclick="insertFormatting('{{$comment}}','img',{{$id}});">img</a>  
17                                 <a class="icon bb-url" style="cursor: pointer;" title="{{$edurl}}" onclick="insertFormatting('{{$comment}}','url',{{$id}});">url</a>
18                                 <a class="icon bb-video" style="cursor: pointer;" title="{{$edvideo}}" onclick="insertFormatting('{{$comment}}','video',{{$id}});">video</a>                                                                                                            
19                                 <a class="icon underline" style="cursor: pointer;" title="{{$eduline}}" onclick="insertFormatting('{{$comment}}','u',{{$id}});">u</a>
20                                 <a class="icon italic" style="cursor: pointer;" title="{{$editalic}}" onclick="insertFormatting('{{$comment}}','i',{{$id}});">i</a>
21                                 <a class="icon bold" style="cursor: pointer;"  title="{{$edbold}}" onclick="insertFormatting('{{$comment}}','b',{{$id}});">b</a>
22                                 <a class="icon quote" style="cursor: pointer;" title="{{$edquote}}" onclick="insertFormatting('{{$comment}}','quote',{{$id}});">quote</a>                                                                                                                                                       
23                                 </div>                          
24                                 {{if $qcomment}}
25                                         <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
26                                         <option value=""></option>
27                                 {{foreach $qcomment as $qc}}
28                                         <option value="{{$qc}}">{{$qc}}</option>                                
29                                 {{/foreach}}
30                                         </select>
31                                 {{/if}}
32
33                                 <div class="comment-edit-text-end"></div>
34                                 <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;" >
35                                         <input type="submit" onclick="post_comment({{$id}}); return false;" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit}}" />
36                                         <span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="fakelink">{{$preview}}</span>
37                                         <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
38                                 </div>
39
40                                 <div class="comment-edit-end"></div>
41                         </form>
42
43                 </div>