|
|
|
@ -309,18 +309,22 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
|
|
|
|
|
{{if $item.vote}}
|
|
|
|
|
{{if $item.vote.like}}
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-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}});" ><i class="fa fa-thumbs-up" aria-hidden="true"></i></button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if $item.vote.like AND $item.vote.dislike}}
|
|
|
|
|
<span role="presentation" class="separator"></span>
|
|
|
|
|
<span title="{{$item.responses.like.title}}">{{$item.responses.like.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if $item.vote.dislike}}
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-likes{{if $item.responses.dislike.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}});" ><i class="fa fa-thumbs-down" aria-hidden="true"></i></button>
|
|
|
|
|
<span title="{{$item.responses.dislike.title}}">{{$item.responses.dislike.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}}
|
|
|
|
|
<span role="presentation" class="separator"></span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{foreach $item.reactions as $emoji}}
|
|
|
|
|
<span class="wall-item-emoji" title="{{$emoji.title}}">{{$emoji.emoji}} {{$emoji.total}}</span>
|
|
|
|
|
{{/foreach}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{if $item.remote_comment}}
|
|
|
|
@ -329,27 +333,46 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
|
|
|
|
|
{{* Button to open the comment text field *}}
|
|
|
|
|
{{if $item.comment_html}}
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting" aria-hidden="true"></i></button>
|
|
|
|
|
<span title="{{$item.responses.comment.title}}">{{$item.responses.comment.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{* Button for sharing the item *}}
|
|
|
|
|
{{if $item.vote}}
|
|
|
|
|
{{if $item.vote.share OR $item.vote.announce}}
|
|
|
|
|
{{if $item.vote.like OR $item.vote.dislike OR $item.comment_html}}
|
|
|
|
|
<span role="presentation" class="separator"></span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if $item.vote.announce}}
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-announces{{if $item.responses.announce.self}} active" aria-pressed="true{{/if}}" id="announce-{{$item.id}}" title="{{$item.vote.announce.0}}" onclick="doActivityItemAction({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}});" ><i class="fa fa-retweet" aria-hidden="true"></i></button>
|
|
|
|
|
<span role="presentation" class="separator"></span>
|
|
|
|
|
<span title="{{$item.responses.announce.title}}">{{$item.responses.announce.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if $item.vote.share}}
|
|
|
|
|
<span>
|
|
|
|
|
<button type="button" class="btn-link button-votes" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}});"><i class="fa fa-share" aria-hidden="true"></i></button>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{* Event attendance buttons *}}
|
|
|
|
|
{{if $item.isevent}}
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-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>
|
|
|
|
|
<span title="{{$item.responses.attendyes.title}}">{{$item.responses.attendyes.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-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>
|
|
|
|
|
<span title="{{$item.responses.attendno.title}}">{{$item.responses.attendno.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="wall-item-response">
|
|
|
|
|
<button type="button" class="btn-link button-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>
|
|
|
|
|
<span title="{{$item.responses.attendmaybe.title}}">{{$item.responses.attendmaybe.total}}</span>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="wall-item-actions-right hidden-xs">
|
|
|
|
|
{{* Put additional actions in a dropdown menu *}}
|
|
|
|
|
<span role="presentation" class="separator"></span>
|
|
|
|
|
<span class="more-links btn-group{{if $item.thread_level > 1}} dropup{{/if}}">
|
|
|
|
|
<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></button>
|
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenuOptions-{{$item.id}}">
|
|
|
|
@ -449,17 +472,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
{{/if}}
|
|
|
|
|
</ul>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="wall-item-actions-right hidden-xs">
|
|
|
|
|
{{* Event attendance buttons *}}
|
|
|
|
|
{{if $item.isevent}}
|
|
|
|
|
<span class="vote-event">
|
|
|
|
|
<button type="button" class="btn btn-xs btn-default button-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>
|
|
|
|
|
<button type="button" class="btn btn-xs btn-default button-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>
|
|
|
|
|
<button type="button" class="btn btn-xs btn-default button-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>
|
|
|
|
|
</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<span class="pull-right checkbox">
|
|
|
|
|
{{if $item.drop && $item.drop.pagedrop}}
|
|
|
|
|
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" id="checkbox-{{$item.id}}" class="item-select" value="{{$item.id}}" />
|
|
|
|
@ -473,16 +485,16 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
{{* Buttons for like and dislike *}}
|
|
|
|
|
{{if $item.vote}}
|
|
|
|
|
{{if $item.vote.like}}
|
|
|
|
|
<button type="button" class="btn button-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}});" ><i class="fa fa-thumbs-up" aria-hidden="true"></i></button>
|
|
|
|
|
<button type="button" class="btn button-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}});" ><i class="fa fa-thumbs-up" aria-hidden="true"></i> {{$item.responses.like.total}}</button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{if $item.vote.dislike}}
|
|
|
|
|
<button type="button" class="btn button-likes{{if $item.responses.dislike.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}});" ><i class="fa fa-thumbs-down" aria-hidden="true"></i></button>
|
|
|
|
|
<button type="button" class="btn button-likes{{if $item.responses.dislike.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}});" ><i class="fa fa-thumbs-down" aria-hidden="true"></i>{{$item.responses.dislike.total}}</button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{* Button to open the comment text field *}}
|
|
|
|
|
{{if $item.comment_html}}
|
|
|
|
|
<button type="button" class="btn button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting" aria-hidden="true"></i></button>
|
|
|
|
|
<button type="button" class="btn button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting" aria-hidden="true"></i> {{$item.responses.comment.total}}</button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{if $item.vote.announce OR $item.vote.share}}
|
|
|
|
@ -526,11 +538,9 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
|
|
|
|
|
{{* Event attendance buttons *}}
|
|
|
|
|
{{if $item.isevent}}
|
|
|
|
|
<div class="btn-group btn-group-event" role="group">
|
|
|
|
|
<button type="button" class="btn btn-default button-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>
|
|
|
|
|
<button type="button" class="btn btn-default button-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>
|
|
|
|
|
<button type="button" class="btn btn-default button-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>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="button" class="btn button-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> {{$item.responses.attendyes.total}}</button>
|
|
|
|
|
<button type="button" class="btn button-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> {{$item.responses.attendno.total}}</button>
|
|
|
|
|
<button type="button" class="btn button-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> {{$item.responses.attendmaybe.total}}</button>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{if $item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.follow_thread || $item.ignore || ($item.drop && $item.drop.dropping)}}
|
|
|
|
@ -615,15 +625,7 @@ as the value of $top_child_total (this is done at the end of this file)
|
|
|
|
|
<div class="wall-item-links"></div>
|
|
|
|
|
|
|
|
|
|
{{* Display likes, dislike and attendance stats *}}
|
|
|
|
|
{{if $item.emojis}}
|
|
|
|
|
{{foreach $item.emojis as $emoji}}
|
|
|
|
|
{{if $emoji.icon.fa}}
|
|
|
|
|
<span class="wall-item-emoji" title="{{$emoji.title}}"><i class="fa {{$emoji.icon.fa}}" aria-hidden="true"></i> {{$emoji.total}}</span>
|
|
|
|
|
{{else}}
|
|
|
|
|
<span class="wall-item-emoji" title="{{$emoji.title}}">{{$emoji.emoji}} {{$emoji.total}}</span>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/foreach}}
|
|
|
|
|
{{elseif $item.responses}}
|
|
|
|
|
{{if !$item.emojis && $item.responses}}
|
|
|
|
|
<div class="wall-item-responses">
|
|
|
|
|
{{foreach $item.responses as $verb=>$response}}
|
|
|
|
|
<div class="wall-item-{{$verb}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
|
|
|
|
|