]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/search_item.tpl
Fix: Pagination in search result works again
[friendica.git] / view / theme / frio / templates / search_item.tpl
1 <div id="item-{{$item.guid}}" class="item-{{$item.id}}">
2         <span class="commented" style="display: none;">{{$item.commented}}</span>
3         <span class="received" style="display: none;">{{$item.received}}</span>
4         <span class="created" style="display: none;">{{$item.created_date}}</span>
5         <span class="uriid" style="display: none;">{{$item.uriid}}</span>
6         <div class="wall-item-container panel-body{{$item.indent}} {{$item.shiny}} {{$item.previewing}}">
7                 <div class="media">
8                         {{* Put additional actions in a top-right dropdown menu *}}
9
10                         {{* The avatar picture and the photo-menu *}}
11                         <div class="dropdown pull-left"><!-- Dropdown -->
12                                 <div class="hidden-sm hidden-xs contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}">
13                                         <a href="{{$item.profile_url}}" class="userinfo click-card u-url" id="wall-item-photo-menu-{{$item.id}}">
14                                                 <div class="contact-photo-image-wrapper">
15                                                         <img src="{{$item.thumb}}" class="contact-photo media-object {{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
16                                                 </div>
17                                         </a>
18                                 </div>
19                                 <div class="hidden-lg hidden-md contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}">
20                                         <a href="{{$item.profile_url}}" class="userinfo click-card u-url" id="wall-item-photo-menu-xs-{{$item.id}}">
21                                                 <div class="contact-photo-image-wrapper">
22                                                         <img src="{{$item.thumb}}" class="contact-photo-xs media-object {{$item.sparkle}}" id="wall-item-photo-xs-{{$item.id}}" alt="{{$item.name}}" />
23                                                 </div>
24                                         </a>
25                                 </div>
26                         </div><!-- ./Dropdown -->
27
28
29                         {{* contact info header*}}
30                         <div class="contact-info hidden-sm hidden-xs media-body"><!-- Desktop -->
31                                 <div class="preferences">
32                                         {{if $item.network_icon != ""}}
33                                                 <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
34                                         {{else}}
35                                                 <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
36                                         {{/if}}
37                                         {{if $item.plink}}      {{*link to the original source of the item *}}
38                                                 <a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}">
39                                                         <i class="fa fa-external-link"></i>
40                                                 </a>
41                                         {{/if}}
42                                 </div>
43                                 <h4 class="media-heading">
44                                         <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card">
45                                                 <span class="wall-item-name {{$item.sparkle}}">{{$item.name}}</span>
46                                         </a>
47                                 {{if $item.owner_url}}
48                                         {{$item.via}}
49                                         <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-name-link userinfo hover-card">
50                                                 <span class="wall-item-name {{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span>
51                                         </a>
52                                 {{/if}}
53                                 {{if $item.lock}}
54                                         <span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}">
55                                                 &nbsp;<small><i class="fa fa-lock" aria-hidden="true"></i></small>
56                                         </span>
57                                 {{elseif $item.connector}}
58                                         <span class="fa fa-lock" title="{{$item.connector}}"></span>
59                                 {{/if}}
60                                         <div class="additional-info text-muted">
61                                                 <div id="wall-item-ago-{{$item.id}}" class="wall-item-ago">
62                                                         <small>
63                                                                 <a href="{{$item.plink.orig}}">
64                                                                         <time class="time" title="{{$item.localtime}}" data-toggle="tooltip" datetime="{{$item.utc}}">{{$item.ago}}</time>
65                                                                 </a>
66                                                                 {{if $item.pinned}}
67                                                                         &bull; <i class="fa fa-thumb-tack" aria-hidden="true" title="{{$item.pinned}}"></i>
68                                                                         <span class="sr-only">{{$item.pinned}}</span>
69                                                                 {{/if}}
70                                                         </small>
71                                                 </div>
72
73                                                 {{if $item.location_html}}
74                                                 <div id="wall-item-location-{{$item.id}}" class="wall-item-location">
75                                                         <small><span class="location">({{$item.location_html nofilter}})</span></small>
76                                                 </div>
77                                                 {{/if}}
78                                         </div>
79                                 {{* @todo $item.created have to be inserted *}}
80                                 </h4>
81                         </div>
82
83                         {{* contact info header for smartphones *}}
84                         <div class="contact-info contact-info-xs hidden-lg hidden-md">
85                                 <div class="preferences">
86                                         {{if $item.network_icon != ""}}
87                                                 <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
88                                         {{else}}
89                                                 <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
90                                         {{/if}}
91                                         {{if $item.plink}}      {{*link to the original source of the item *}}
92                                                 <a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}">
93                                                         <i class="fa fa-external-link"></i>
94                                                 </a>
95                                         {{/if}}
96                                 </div>
97                                 <h5 class="media-heading">
98                                         <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span>{{$item.name}}</span></a>
99                                         <p class="text-muted"><small>
100                                                 <span class="wall-item-ago">{{$item.ago}}</span> {{if $item.location_html}}&nbsp;&mdash;&nbsp;({{$item.location_html nofilter}}){{/if}}</small>
101                                         </p>
102                                 </h5>
103                         </div>
104
105                         <div class="clearfix"></div>
106
107                         <hr />
108
109                         {{* item content *}}
110                         <div class="wall-item-content {{$item.type}}" id="wall-item-content-{{$item.id}}">
111                                 {{if $item.title}}
112                                 <span class="wall-item-title" id="wall-item-title-{{$item.id}}"><h4 class="media-heading" dir="auto"><a href="{{$item.plink.href}}" class="{{$item.sparkle}}">{{$item.title}}</a></h4><br /></span>
113                                 {{/if}}
114
115                                 <div class="wall-item-body" id="wall-item-body-{{$item.id}}" dir="auto">{{$item.body_html nofilter}}</div>
116                         </div>
117
118                         <!-- TODO -->
119                         <div class="wall-item-bottom">
120                                 <div class="wall-item-links"></div>
121                                 <div class="wall-item-tags">
122                         {{if !$item.suppress_tags}}
123                                 {{foreach $item.hashtags as $tag}}
124                                         <span class="tag label btn-info sm">{{$tag nofilter}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
125                                 {{/foreach}}
126
127                                 {{foreach $item.mentions as $tag}}
128                                         <span class="mention label btn-warning sm">{{$tag nofilter}} <i class="fa fa-user" aria-hidden="true"></i></span>
129                                 {{/foreach}}
130                         {{/if}}
131
132                                 {{foreach $item.folders as $cat}}
133                                         <span class="folder label btn-danger sm">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
134                                 {{/foreach}}
135
136                                 {{foreach $item.categories as $cat}}
137                                         <span class="category label btn-success sm">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
138                                 {{/foreach}}
139                                 </div>
140                                 {{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
141                         </div>
142                         <!-- ./TODO -->
143
144                         <p class="wall-item-actions">
145                                 {{* Action buttons to interact with the item (like: like, dislike, share and so on *}}
146                                 <span class="wall-item-actions-left">
147                                         {{if $item.threaded}}{{/if}}
148
149                                         {{* Buttons for like and dislike *}}
150                                         {{if $item.vote}}
151                                                 {{if $item.vote.like}}
152                                         <button type="button" class="btn btn-defaultbutton-likes{{if $item.responses.like.self}} active" aria-pressed="true{{/if}}" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="doActivityItemAction({{$item.id}}, 'like'{{if $item.responses.like.self}}, true{{/if}});">{{$item.vote.like.0}}</button>
153                                                 {{/if}}
154                                                 {{if $item.vote.like AND $item.vote.dislike}}
155                                         <span role="presentation" class="separator">•</span>
156                                                 {{/if}}
157
158                                                 {{if $item.vote.dislike}}
159                                         <button type="button" class="btn btn-defaultbutton-likes{{if $item.responses.like.self}} active" aria-pressed="true{{/if}}" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="doActivityItemAction({{$item.id}}, 'dislike'{{if $item.responses.dislike.self}}, true{{/if}});">{{$item.vote.dislike.0}}</button>
160                                                 {{/if}}
161                                                 {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}}
162                                         <span role="presentation" class="separator">•</span>
163                                                 {{/if}}
164                                         {{/if}}
165
166                                         {{* Button to open the comment text field *}}
167                                         {{if $item.comment_html}}
168                                                 <button type="button" class="btn btn-default" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});">{{$item.switchcomment}}</button>
169                                         {{/if}}
170
171                                         {{* Button for sharing the item *}}
172                                         {{if $item.vote}}
173                                                 {{if $item.vote.share}}
174                                                         {{if $item.vote.like OR $item.vote.dislike OR $item.comment_html}}
175                                         <span role="presentation" class="separator">•</span>
176                                                         {{/if}}
177                                         <button type="button" class="btn btn-default" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}});"><i class="fa fa-retweet" aria-hidden="true"></i>&nbsp;{{$item.vote.share.0}}</button>
178                                                 {{/if}}
179                                         {{/if}}
180
181                                 {{* Put additional actions in a dropdown menu *}}
182                                 {{if $item.menu && ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread || $item.ignore || $item.drop.dropping || $item.browsershare)}}
183                                         <span role="presentation" class="separator"></span>
184                                         <span class="more-links btn-group{{if $item.thread_level> 1}} dropup{{/if}}">
185                                                 <button type="button" class="btn-link dropdown-toggle" data-toggle="dropdown" id="dropdownMenuOptions-{{$item.id}}" aria-haspopup="true" aria-expanded="false" title="{{$item.menu}}"><i class="fa fa-ellipsis-h" aria-hidden="true"></i>&nbsp;{{$item.menu}}</button>
186                                                 <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenuOptions-{{$item.id}}">
187                                                 {{if $item.edpost}} {{* edit the posting *}}
188                                                         <li role="menuitem">
189                                                                 <a href="javascript:editpost('{{$item.edpost.0}}?mode=none');" title="{{$item.edpost.1}}" class="btn-link navicon pencil"><i class="fa fa-pencil" aria-hidden="true"></i> {{$item.edpost.1}}</a>
190                                                         </li>
191                                                 {{/if}}
192
193                                                 {{if $item.tagger}} {{* tag the post *}}
194                                                         <li role="menuitem">
195                                                                 <a id="tagger-{{$item.id}}" href="javascript:itemTag({{$item.id}});" class="btn-link {{$item.tagger.class}}" title="{{$item.tagger.add}}"><i class="fa fa-tag" aria-hidden="true"></i> {{$item.tagger.add}}</a>
196                                                         </li>
197                                                 {{/if}}
198
199                                                 {{if $item.filer}}
200                                                         <li role="menuitem">
201                                                                 <a id="filer-{{$item.id}}" href="javascript:itemFiler({{$item.id}});" class="btn-link filer-item filer-icon" title="{{$item.filer}}"><i class="fa fa-folder" aria-hidden="true"></i>&nbsp;{{$item.filer}}</a>
202                                                         </li>
203                                                 {{/if}}
204
205                                                 {{if $item.pin}}
206                                                         <li role="menuitem">
207                                                                 <a id="pin-{{$item.id}}" href="javascript:doPin({{$item.id}});" class="btn-link {{$item.pin.classdo}}" title="{{$item.pin.do}}"><i class="fa fa-circle-o" aria-hidden="true"></i>&nbsp;{{$item.pin.do}}</a>
208                                                                 <a id="unpin-{{$item.id}}" href="javascript:doPin({{$item.id}});" class="btn-link {{$item.pin.classundo}}" title="{{$item.pin.undo}}"><i class="fa fa-dot-circle-o" aria-hidden="true"></i>&nbsp;{{$item.pin.undo}}</a>
209                                                         </li>
210                                                 {{/if}}
211
212                                                 {{if $item.star}}
213                                                         <li role="menuitem">
214                                                                 <a id="star-{{$item.id}}" href="javascript:doStar({{$item.id}});" class="btn-link {{$item.star.classdo}}" title="{{$item.star.do}}"><i class="fa fa-star-o" aria-hidden="true"></i>&nbsp;{{$item.star.do}}</a>
215                                                                 <a id="unstar-{{$item.id}}" href="javascript:doStar({{$item.id}});" class="btn-link {{$item.star.classundo}}" title="{{$item.star.undo}}"><i class="fa fa-star" aria-hidden="true"></i>&nbsp;{{$item.star.undo}}</a>
216                                                         </li>
217                                                 {{/if}}
218
219                                                 {{if $item.follow_thread}}
220                                                         <li role="menuitem">
221                                                                 <a id="follow_thread-{{$item.id}}" href="javascript:{{$item.follow_thread.action}}" class="btn-link" title="{{$item.follow_thread.title}}"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp;{{$item.follow_thread.title}}</a>
222                                                         </li>
223                                                 {{/if}}
224
225                                                 {{if $item.language}}
226                                                 <li role="menuitem">
227                                                         <a id="language-{{$item.id}}" href="javascript:alert('{{$item.language.1}}');" class="btn-link filer-item language-icon" title="{{$item.language.0}}"><i class="fa fa-language" aria-hidden="true"></i>&nbsp;{{$item.language.0}}</a>
228                                                 </li>
229                                                 {{/if}}
230
231                                                 {{if $item.browsershare}}
232                                                         <li role="menuitem" class="button-browser-share">
233                                                                 <a id="browser-share-{{$item.id}}" href="javascript:navigator.share({url: '{{$item.plink.orig}}'});" class="btn-link button-browser-share" title="{{$item.browsershare.1}}"><i class="fa fa-share-alt" aria-hidden="true"></i>&nbsp;{{$item.browsershare.0}}</a>
234                                                         </li>
235                                                 {{/if}}
236
237                                                 {{if ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread) && ($item.ignore || $item.drop.dropping)}}
238                                                         <li role="separator" class="divider"></li>
239                                                 {{/if}}
240
241                                                 {{if $item.ignore}}
242                                                         <li role="menuitem">
243                                                                 <a id="ignore-{{$item.id}}" href="javascript:doIgnoreThread({{$item.id}});" class="btn-link {{$item.ignore.classdo}}" title="{{$item.ignore.do}}"><i class="fa fa-eye-slash" aria-hidden="true"></i> {{$item.ignore.do}}</a>
244                                                         </li>
245                                                         <li role="menuitem">
246                                                                 <a id="unignore-{{$item.id}}" href="javascript:doIgnoreThread({{$item.id}});" class="btn-link {{$item.ignore.classundo}}"  title="{{$item.ignore.undo}}"><i class="fa fa-eye" aria-hidden="true"></i> {{$item.ignore.undo}}</a>
247                                                         </li>
248                                                 {{/if}}
249
250                                                 {{if $item.drop && $item.drop.dropping}}
251                                                         <li role="menuitem">
252                                                                 <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}', 'item-{{$item.guid}}');" title="{{$item.drop.label}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.label}}</a>
253                                                         </li>
254                                                         {{/if}}
255                                                 </ul>
256                                                 <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
257                                         </span>
258                                 {{else}}
259                                         <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
260                                 {{/if}}
261                                 </span>
262
263
264                                 <span class="wall-item-actions-right">
265                                         {{* Event attendance buttons *}}
266                                 {{if $item.isevent}}
267                                         <span class="vote-event">
268                                                 <button type="button" class="btn btn-defaultbutton-event{{if $item.responses.attendyes.self}} active" aria-pressed="true{{/if}}" id="attendyes-{{$item.id}}" title="{{$item.attend.0}}" onclick="doActivityItemAction({{$item.id}}, 'attendyes'{{if $item.responses.attendyes.self}}, true{{/if}});"><i class="fa fa-check" aria-hidden="true"><span class="sr-only">{{$item.attend.0}}</span></i></button>
269                                                 <button type="button" class="btn btn-defaultbutton-event{{if $item.responses.attendno.self}} active" aria-pressed="true{{/if}}" id="attendno-{{$item.id}}" title="{{$item.attend.1}}" onclick="doActivityItemAction({{$item.id}}, 'attendno'{{if $item.responses.attendno.self}}, true{{/if}});"><i class="fa fa-times" aria-hidden="true"><span class="sr-only">{{$item.attend.1}}</span></i></button>
270                                                 <button type="button" class="btn btn-defaultbutton-event{{if $item.responses.attendmaybe.self}} active" aria-pressed="true{{/if}}" id="attendmaybe-{{$item.id}}" title="{{$item.attend.2}}" onclick="doActivityItemAction({{$item.id}}, 'attendmaybe'{{if $item.responses.attendmaybe.self}}, true{{/if}});"><i class="fa fa-question" aria-hidden="true"><span class="sr-only">{{$item.attend.2}}</span></i></button>
271                                         </span>
272                                 {{/if}}
273
274                                         <span class="pull-right checkbox">
275                                 {{if $item.drop && $item.drop.pagedrop}}
276                                                 <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" id="checkbox-{{$item.id}}" class="item-select" value="{{$item.id}}" />
277                                                 <label for="checkbox-{{$item.id}}"></label>
278                                 {{/if}}
279                                         </span>
280                                 </span>
281                         </p><!--./wall-item-actions-->
282
283                         {{* Display likes, dislike and attendance stats *}}
284                         {{if $item.emojis}}
285                                 {{foreach $item.emojis as $emoji}}
286                                         {{if $emoji.icon.fa}}
287                                                 <span class="wall-item-emoji" title="{{$emoji.title}}"><i class="fa {{$emoji.icon.fa}}" aria-hidden="true"></i> {{$emoji.total}}</span>
288                                         {{else}}
289                                                 <span class="wall-item-emoji" title="{{$emoji.title}}">{{$emoji.emoji}} {{$emoji.total}}</span>
290                                         {{/if}}
291                                 {{/foreach}}
292                         {{elseif $item.responses}}
293                                 <div class="wall-item-responses">
294                                 {{foreach $item.responses as $verb=>$response}}
295                                         <div class="wall-item-{{$verb}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
296                                 {{/foreach}}
297                                 </div>
298                         {{/if}}
299
300                         <div class="wall-item-conv" id="wall-item-conv-{{$item.id}}" dir="auto">
301                         {{if $item.conv}}
302                                 <a href="{{$item.conv.href}}" id="context-{{$item.id}}" title="{{$item.conv.title}}">{{$item.conv.title}}</a>
303                         {{/if}}
304                         </div>
305                 </div><!--./media>-->
306         </div><!--./scrollable-->
307 </div><!-- ./panel-body -->