]> git.mxchange.org Git - friendica.git/blob - view/templates/wall_thread.tpl
api: fix `friendica/notification/seen` api call
[friendica.git] / view / templates / wall_thread.tpl
1
2 {{if $item.comment_firstcollapsed}}
3         <div class="hide-comments-outer">
4         <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span> <span id="hide-comments-{{$item.id}}" class="hide-comments fakelink" onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
5         </div>
6         <div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
7 {{/if}}
8 {{if $item.thread_level==1}}
9 <span class="commented" style="display: none;">{{$item.commented}}</span>
10 <span class="received" style="display: none;">{{$item.received}}</span>
11 <span class="created" style="display: none;">{{$item.created_date}}</span>
12 <span class="id" style="display: none;">{{$item.id}}</span>
13 {{/if}}
14 <div id="tread-wrapper-{{$item.id}}" class="tread-wrapper {{$item.toplevel}} {{if $item.toplevel}} h-entry {{else}} u-comment h-cite {{/if}}">
15 <a name="{{$item.id}}" ></a>
16 <div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
17         <div class="wall-item-content-wrapper {{$item.indent}} {{$item.shiny}}" id="wall-item-content-wrapper-{{$item.id}}" >
18                 <div class="wall-item-info{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-info-{{$item.id}}">
19                         {{if $item.owner_url}}
20                         <div class="wall-item-photo-wrapper wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}" >
21                                 <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle|escape:'html'}}" class="wall-item-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
22                                 <img src="{{$item.owner_photo}}" class="wall-item-photo{{$item.osparkle}}" id="wall-item-ownerphoto-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.owner_name}}" /></a>
23                         </div>
24                         <div class="wall-item-arrowphoto-wrapper" ><img src="images/larrow.gif" alt="{{$item.wall}}" /></div>
25                         {{/if}}
26                         <div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}} p-author h-card" id="wall-item-photo-wrapper-{{$item.id}}"
27                                 onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
28                 onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
29                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle|escape:'html'}}" class="wall-item-photo-link u-url" id="wall-item-photo-link-{{$item.id}}">
30                                 <img src="{{$item.thumb}}" class="wall-item-photo{{$item.sparkle}} u-photo p-name" id="wall-item-photo-{{$item.id}}" style="height: 80px; width: 80px;" alt="{{$item.name}}" /></a>
31                                 <span onclick="openClose('wall-item-photo-menu-{{$item.id}}');" class="fakelink wall-item-photo-menu-button" id="wall-item-photo-menu-button-{{$item.id}}">menu</span>
32                 <div class="wall-item-photo-menu" id="wall-item-photo-menu-{{$item.id}}">
33                     <ul>
34                         {{$item.item_photo_menu}}
35                     </ul>
36                 </div>
37
38                         </div>
39                         <div class="wall-item-photo-end"></div>
40                         <div class="wall-item-wrapper" id="wall-item-wrapper-{{$item.id}}" >
41                                 {{if $item.lock}}<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" /></div>
42                                 {{else}}<div class="wall-item-lock"></div>{{/if}}
43                                 <div class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</div>
44                         </div>
45                 </div>
46                 <div class="wall-item-author">
47                                 <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle|escape:'html'}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.to}} <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle|escape:'html'}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a> {{$item.vwall}}{{/if}}<br />
48                                 <div class="wall-item-ago"  id="wall-item-ago-{{$item.id}}" title="{{$item.localtime|escape:'html'}}"><time class="dt-published" datetime="{{$item.localtime}}">{{$item.ago}}</time></div>
49                 </div>
50                 <div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
51                         <div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
52                         <div class="wall-item-title-end"></div>
53                         <div class="wall-item-body" id="wall-item-body-{{$item.id}}" ><span class="e-content">{{$item.body}}<span>
54                         <div class="body-tag">
55                         {{if !$item.suppress_tags}}
56                                 {{foreach $item.tags as $tag}}
57                                 <span class="tag">{{$tag}}</span>
58                                 {{/foreach}}
59                         {{/if}}
60                         </div>
61                         {{if $item.has_cats}}
62                         <div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}<span class="p-category">{{$cat.name}}</span>{{if $cat.removeurl}} <a href="{{$cat.removeurl}}" title="{{$remove|escape:'html'}}">[{{$remove}}]</a>{{/if}} {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
63                         </div>
64                         {{/if}}
65
66                         {{if $item.has_folders}}
67                         <div class="filesavetags"><span>{{$item.txt_folders}} {{foreach $item.folders as $cat}}<span class="p-category">{{$cat.name}}</span>{{if $cat.removeurl}} <a href="{{$cat.removeurl}}" title="{{$remove|escape:'html'}}">[{{$remove}}]</a>{{/if}}{{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
68                         </div>
69                         {{/if}}
70                         </div>
71                 </div>
72                 <div class="wall-item-tools" id="wall-item-tools-{{$item.id}}">
73                         {{if $item.vote}}
74                         <div class="wall-item-like-buttons" id="wall-item-like-buttons-{{$item.id}}">
75                                 <a href="#" class="icon like{{if $item.responses.like.self}} active{{/if}}" title="{{$item.vote.like.0|escape:'html'}}" onclick="dolike({{$item.id}},'like'); return false"></a>
76                                 {{if $item.vote.dislike}}<a href="#" class="icon dislike{{if $item.responses.dislike.self}} active{{/if}}" title="{{$item.vote.dislike.0|escape:'html'}}" onclick="dolike({{$item.id}},'dislike'); return false"></a>{{/if}}
77                                 {{if $item.vote.share}}<a href="#" class="icon recycle wall-item-share-buttons" title="{{$item.vote.share.0|escape:'html'}}" onclick="jotShare({{$item.id}}); return false"></a>{{/if}}
78                                 <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait|escape:'html'}}" title="{{$item.wait|escape:'html'}}" style="display: none;" />
79                         </div>
80                         {{/if}}
81                         {{if $item.plink}}
82                                 <div class="wall-item-links-wrapper"><a href="{{$item.plink.href}}" title="{{$item.plink.title|escape:'html'}}" target="_blank" class="icon remote-link{{$item.sparkle}} u-url"></a></div>
83                         {{/if}}
84                         {{if $item.edpost}}
85                                 <a class="editpost icon pencil" href="{{$item.edpost.0}}" title="{{$item.edpost.1|escape:'html'}}"></a>
86                         {{/if}}
87
88                         {{if $item.star}}
89                         <a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon {{$item.isstarred}}" title="{{$item.star.toggle|escape:'html'}}"></a>
90                         {{/if}}
91                         {{if $item.tagger}}
92                         <a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon tagged" title="{{$item.tagger.add|escape:'html'}}"></a>
93                         {{/if}}
94                         {{if $item.filer}}
95                         <a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer|escape:'html'}}"></a>
96                         {{/if}}
97                         {{if $item.isevent }}
98                         <div class="wall-item-attend-wrapper">
99                                 <a href="#" id="attendyes-{{$item.id}}" class="icon attendyes{{if $item.responses.attendyes.self}} active{{/if}}" onclick="dolike({{$item.id}},'attendyes'); return false;" title="{{$item.attend.0|escape:'html'}}"></a>
100                                 <a href="#" id="attendno-{{$item.id}}" class="icon attendno{{if $item.responses.attendno.self}} active{{/if}}"  onclick="dolike({{$item.id}},'attendno'); return false;" title="{{$item.attend.1|escape:'html'}}"></a>
101                                 <a href="#" id="attendmaybe-{{$item.id}}"  class="icon attendmaybe{{if $item.responses.attendmaybe.self}} active{{/if}}" onclick="dolike({{$item.id}},'attendmaybe'); return false;" title="{{$item.attend.2|escape:'html'}}"></a>
102                         </div>
103                         {{/if}}
104                         <div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-{{$item.id}}" >
105                                 {{if $item.drop.dropping}}<a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drophide" title="{{$item.drop.delete|escape:'html'}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a>{{/if}}
106                         </div>
107                                 {{if $item.drop.pagedrop}}<input type="checkbox" onclick="checkboxhighlight(this);" title="{{$item.drop.select|escape:'html'}}" class="item-select" name="itemselected[]" value="{{$item.id}}" />{{/if}}
108                         <div class="wall-item-delete-end"></div>
109                 </div>
110         </div>
111         <div class="wall-item-wrapper-end"></div>
112         {{if $item.responses}}
113                 {{foreach $item.responses as $verb=>$response}}
114                         <div class="wall-item-{{$verb}} {{$item.indent}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output}}</div>
115                 {{/foreach}}
116         {{/if}}
117                         {{if $item.threaded}}
118                         {{if $item.comment}}
119                         <div class="wall-item-comment-wrapper {{$item.indent}}" >
120                                 {{$item.comment}}
121                         </div>
122                         {{/if}}
123                         {{/if}}
124
125 <div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>
126 </div>
127 {{foreach $item.children as $child}}
128         {{include file="{{$child.template}}" item=$child}}
129 {{/foreach}}
130
131 {{if $item.flatten}}
132 <div class="wall-item-comment-wrapper" >
133         {{$item.comment}}
134 </div>
135 {{/if}}
136 </div>
137 {{if $item.comment_lastcollapsed}}</div>{{/if}}