1 <!-- TODO => Unknow block -->
2 <div class="wall-item-decor" style="display:none;">
3 {{if $item.star}}<span class="icon s22 star {{$item.isstarred}}" id="starred-{{$item.id}}" title="{{$item.star.starred}}">{{$item.star.starred}}</span>{{/if}}
4 {{if $item.lock}}<span class="navicon lock fakelink" onclick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}"></span><span class="fa fa-lock" aria-hidden="true"></span>{{/if}}
6 <!-- ./TODO => Unknow block -->
9 <div class="panel item-{{$item.id}}" id="item-{{$item.guid}}">
10 <span class="commented" style="display: none;">{{$item.commented}}</span>
11 <span class="received" style="display: none;">{{$item.received}}</span>
12 <span class="created" style="display: none;">{{$item.created_date}}</span>
13 <span class="uriid" style="display: none;">{{$item.uriid}}</span>
14 <div class="wall-item-container panel-body{{$item.indent}} {{$item.shiny}} {{$item.previewing}}">
16 {{* Put additional actions in a top-right dropdown menu *}}
18 <div class="preferences">
19 {{if $item.network_icon != ""}}
20 <span class="wall-item-network"><i class="fa fa-{{$item.network_icon}}" title="{{$item.network_name}}" aria-hidden="true"></i></span>
22 <span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span>
24 {{if $item.plink}} {{*link to the original source of the item *}}
25 <a href="{{$item.plink.href}}" class="plink u-url" aria-label="{{$item.plink.title}}" title="{{$item.plink.title}}">
26 <i class="fa fa-external-link"></i>
31 {{* The avatar picture and the photo-menu *}}
32 <div class="dropdown pull-left"><!-- Dropdown -->
33 <div class="hidden-sm hidden-xs contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}">
34 <a href="{{$item.profile_url}}" class="userinfo click-card u-url" id="wall-item-photo-menu-{{$item.id}}">
35 <div class="contact-photo-image-wrapper">
36 <img src="{{$item.thumb}}" class="contact-photo media-object {{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
40 <div class="hidden-lg hidden-md contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}}">
41 <a href="{{$item.profile_url}}" class="userinfo click-card u-url" id="wall-item-photo-menu-xs-{{$item.id}}">
42 <div class="contact-photo-image-wrapper">
43 <img src="{{$item.thumb}}" class="contact-photo-xs media-object {{$item.sparkle}}" id="wall-item-photo-xs-{{$item.id}}" alt="{{$item.name}}" />
47 </div><!-- ./Dropdown -->
50 {{* contact info header*}}
51 <div role="heading" class="contact-info hidden-sm hidden-xs media-body"><!-- <= For computer -->
52 <h4 class="media-heading">
53 <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card">
54 <span class="wall-item-name {{$item.sparkle}}">{{$item.name}}</span>
56 {{if $item.owner_url}}
58 <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-name-link userinfo hover-card">
59 <span class="wall-item-name {{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span>
63 <span class="navicon lock fakelink" onClick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}">
64 <small><i class="fa fa-lock" aria-hidden="true"></i></small>
66 {{elseif $item.connector}}
67 <span class="fa fa-lock" title="{{$item.connector}}"></span>
69 <div class="additional-info text-muted">
70 <div id="wall-item-ago-{{$item.id}}" class="wall-item-ago">
72 <a href="{{$item.plink.orig}}">
73 <time class="time" title="{{$item.localtime}}" data-toggle="tooltip" datetime="{{$item.utc}}">{{$item.ago}}</time>
78 {{if $item.location_html}}
79 <div id="wall-item-location-{{$item.id}}" class="wall-item-location">
80 <small><span class="location">({{$item.location_html nofilter}})</span></small>
84 {{* @todo $item.created have to be inserted *}}
88 {{* contact info header for smartphones *}}
89 <div role="heading " class="contact-info-xs hidden-lg hidden-md">
90 <h5 class="media-heading">
91 <a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo hover-card"><span>{{$item.name}}</span></a>
92 <p class="text-muted"><small>
93 <span class="wall-item-ago">{{$item.ago}}</span> {{if $item.location_html}} — ({{$item.location_html nofilter}}){{/if}}</small>
98 <div class="clearfix"></div>
103 <div class="wall-item-content {{$item.type}}" id="wall-item-content-{{$item.id}}">
105 <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>
108 <div class="wall-item-body" id="wall-item-body-{{$item.id}}" dir="auto">{{$item.body_html nofilter}}</div>
112 <div class="wall-item-bottom">
113 <div class="wall-item-links"></div>
114 <div class="wall-item-tags">
115 {{if !$item.suppress_tags}}
116 {{foreach $item.hashtags as $tag}}
117 <span class="tag label btn-info sm">{{$tag nofilter}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
120 {{foreach $item.mentions as $tag}}
121 <span class="mention label btn-warning sm">{{$tag nofilter}} <i class="fa fa-user" aria-hidden="true"></i></span>
125 {{foreach $item.folders as $cat}}
126 <span class="folder label btn-danger sm">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
129 {{foreach $item.categories as $cat}}
130 <span class="category label btn-success sm">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
133 {{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
137 <p class="wall-item-actions">
138 {{* Action buttons to interact with the item (like: like, dislike, share and so on *}}
139 <span class="wall-item-actions-left">
140 <!--comment this out to try something different {{if $item.threaded}}{{if $item.comment_html}}
141 <div id="button-reply" class="pull-left">
142 <button type="button" class="btn-link" id="comment-{{$item.id}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"><i class="fa fa-reply" title="{{$item.switchcomment}}"></i> </span>
146 {{if $item.threaded}}{{/if}}
148 {{* Buttons for like and dislike *}}
150 {{if $item.vote.like}}
151 <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 $item.vote.like AND $item.vote.dislike}}
154 <span role="presentation" class="separator">•</span>
157 {{if $item.vote.dislike}}
158 <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 ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}}
161 <span role="presentation" class="separator">•</span>
165 {{* Button to open the comment text field *}}
166 {{if $item.comment_html}}
167 <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>
170 {{* Button for sharing the item *}}
172 {{if $item.vote.share}}
173 {{if $item.vote.like OR $item.vote.dislike OR $item.comment_html}}
174 <span role="presentation" class="separator">•</span>
176 <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> {{$item.vote.share.0}}</button>
180 {{if !$item.lock && !$item.connector}}
181 <span role="presentation" class="separator button-browser-share"></span>
182 <button type="button" class="btn-link button-browser-share" onclick="navigator.share({url: '{{$item.plink.orig}}'})"><i class="fa fa-share-alt"></i> {{$item.browsershare}}</button>
185 {{* Put additional actions in a dropdown menu *}}
186 {{if $item.menu && ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread || $item.ignore || $item.drop.dropping)}}
187 <span role="presentation" class="separator"></span>
188 <span class="more-links btn-group{{if $item.thread_level> 1}} dropup{{/if}}">
189 <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> {{$item.menu}}</button>
190 <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenuOptions-{{$item.id}}">
191 {{if $item.edpost}} {{* edit the posting *}}
193 <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>
197 {{if $item.tagger}} {{* tag the post *}}
199 <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>
205 <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> {{$item.filer}}</a>
211 <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> {{$item.pin.do}}</a>
212 <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> {{$item.pin.undo}}</a>
218 <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> {{$item.star.do}}</a>
219 <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> {{$item.star.undo}}</a>
223 {{if $item.follow_thread}}
225 <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> {{$item.follow_thread.title}}</a>
229 {{if $item.language}}
231 <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> {{$item.language.0}}</a>
235 {{if ($item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread) && ($item.ignore || $item.drop.dropping)}}
236 <li role="separator" class="divider"></li>
241 <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 <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>
248 {{if $item.drop && $item.drop.dropping}}
250 <a class="btn-link navicon delete" href="javascript:dropItem('item/drop/{{$item.id}}/{{$item.return}}', 'item-{{$item.guid}}');" title="{{$item.drop.delete}}"><i class="fa fa-trash" aria-hidden="true"></i> {{$item.drop.delete}}</a>
254 <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
257 <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
262 <span class="wall-item-actions-right">
263 {{* Event attendance buttons *}}
265 <span class="vote-event">
266 <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>
267 <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>
268 <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>
272 <span class="pull-right checkbox">
273 {{if $item.drop && $item.drop.pagedrop}}
274 <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" id="checkbox-{{$item.id}}" class="item-select" value="{{$item.id}}" />
275 <label for="checkbox-{{$item.id}}"></label>
279 </p><!--./wall-item-actions-->
281 {{* Display likes, dislike and attendance stats *}}
282 {{if $item.responses}}
283 <div class="wall-item-responses">
284 {{foreach $item.responses as $verb=>$response}}
285 <div class="wall-item-{{$verb}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
290 <div class="wall-item-conv" id="wall-item-conv-{{$item.id}}" dir="auto">
292 <a href="{{$item.conv.href}}" id="context-{{$item.id}}" title="{{$item.conv.title}}">{{$item.conv.title}}</a>
295 </div><!--./media>-->
296 </div><!-- ./panel-body -->