Merge pull request #12543 from MrPetovan/task/12489-screen-reader-part-7
Turn show comments element into a full-fledged button
This commit is contained in:
commit
938f3d80c8
4 changed files with 240 additions and 408 deletions
|
@ -1,156 +1,233 @@
|
||||||
|
{{if $mode == display}}
|
||||||
|
{{else}}
|
||||||
{{if $item.comment_firstcollapsed}}
|
{{if $item.comment_firstcollapsed}}
|
||||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
{{if $item.thread_level<3}}
|
||||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
<button type="button" class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
||||||
{{$item.num_comments}} - {{$item.show_text}}
|
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
||||||
</span>
|
{{$item.num_comments}} - {{$item.show_text}}
|
||||||
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
</span>
|
||||||
{{$item.num_comments}} - {{$item.hide_text}}
|
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
||||||
</span>
|
{{$item.num_comments}} - {{$item.hide_text}}
|
||||||
</div>
|
</span>
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
</button>
|
||||||
{{/if}}
|
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||||
{{if $item.thread_level==1}}
|
{{else}}
|
||||||
<span class="commented" style="display: none;">{{$item.commented}}</span>
|
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: block;">
|
||||||
<span class="received" style="display: none;">{{$item.received}}</span>
|
{{/if}}
|
||||||
<span class="created" style="display: none;">{{$item.created_date}}</span>
|
{{/if}}
|
||||||
<span class="uriid" style="display: none;">{{$item.uriid}}</span>
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
<div id="tread-wrapper-{{$item.uriid}}" class="tread-wrapper {{$item.toplevel}} {{if $item.toplevel}} h-entry {{else}} u-comment h-cite {{/if}}">
|
|
||||||
<a name="{{$item.id}}"></a>
|
|
||||||
<div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}">
|
|
||||||
<div class="wall-item-content-wrapper {{$item.indent}} {{$item.shiny}}" id="wall-item-content-wrapper-{{$item.id}}">
|
|
||||||
{{if $item.reshared}}
|
|
||||||
<p class="wall-item-announce wall-item-responses" id="wall-item-announce-{{$item.id}}">{{$item.reshared nofilter}}</p>
|
|
||||||
{{/if}}
|
|
||||||
<div class="wall-item-info{{if $item.owner_url}} wallwall{{/if}}" id="wall-item-info-{{$item.id}}">
|
|
||||||
{{if $item.owner_url}}
|
|
||||||
<div class="wall-item-photo-wrapper wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}">
|
|
||||||
<a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-photo-link" id="wall-item-ownerphoto-link-{{$item.id}}">
|
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-arrowphoto-wrapper"><img src="images/larrow.gif" alt="{{$item.wall}}" /></div>
|
|
||||||
{{/if}}
|
|
||||||
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}} p-author h-card" id="wall-item-photo-wrapper-{{$item.id}}"
|
|
||||||
onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
|
|
||||||
onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
|
|
||||||
<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-photo-link u-url" id="wall-item-photo-link-{{$item.id}}">
|
|
||||||
<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>
|
|
||||||
<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>
|
|
||||||
<div class="wall-item-photo-menu" id="wall-item-photo-menu-{{$item.id}}">
|
|
||||||
<ul>
|
|
||||||
{{$item.item_photo_menu_html nofilter}}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
{{if $item.thread_level!=1}}<div class="children u-comment h-cite">{{/if}}
|
||||||
<div class="wall-item-photo-end"></div>
|
|
||||||
<div class="wall-item-wrapper" id="wall-item-wrapper-{{$item.id}}">
|
|
||||||
{{if $item.lock}}<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="{{$item.lock}}" onclick="lockview(event, 'item', {{$item.id}});" /></div>
|
|
||||||
{{else}}<div class="wall-item-lock"></div>{{/if}}
|
|
||||||
<div class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location_html nofilter}}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-author">
|
|
||||||
<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" 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}}" 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 />
|
|
||||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}"><time class="dt-published" title="{{$item.localtime}}" datetime="{{$item.utc}}">{{$item.ago}}</time><span class="pinned">{{$item.pinned}}</span></div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-content" id="wall-item-content-{{$item.id}}">
|
|
||||||
<div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}" dir="auto">{{$item.title}}</div>
|
|
||||||
<div class="wall-item-title-end"></div>
|
|
||||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}">
|
|
||||||
<span class="e-content" dir="auto">{{$item.body_html nofilter}}<span>
|
|
||||||
<div class="body-tag">
|
|
||||||
{{if !$item.suppress_tags}}
|
|
||||||
{{foreach $item.tags as $tag}}
|
|
||||||
<span class="tag">{{$tag nofilter}}</span>
|
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{if $item.has_cats}}
|
|
||||||
<div class="categorytags"><span>{{$item.txt_cats}} {{foreach $item.categories as $cat}}<span class="p-category"><a href="{{$cat.url}}">{{$cat.name}}</a></span>{{if $cat.removeurl}} <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a>{{/if}} {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.has_folders}}
|
<div aria-hidden="true" class="wall-item-decor">
|
||||||
<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}}">[{{$remove}}]</a>{{/if}}{{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.edited}}
|
|
||||||
<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-tools" id="wall-item-tools-{{$item.id}}">
|
|
||||||
{{if $item.vote}}
|
|
||||||
<div class="wall-item-like-buttons" id="wall-item-like-buttons-{{$item.id}}">
|
|
||||||
<a href="#" class="icon like{{if $item.responses.like.self}} active{{/if}}" title="{{$item.vote.like.0}}" onclick="doActivityItem({{$item.id}}, 'like'{{if $item.responses.like.self}}, true{{/if}}); return false"></a>
|
|
||||||
{{if $item.vote.dislike}}<a href="#" class="icon dislike{{if $item.responses.dislike.self}} active{{/if}}" title="{{$item.vote.dislike.0}}" onclick="doActivityItem({{$item.id}},'dislike'{{if $item.responses.dislike.self}}, true{{/if}}); return false"></a>{{/if}}
|
|
||||||
{{if $item.vote.announce}}<a href="#" class="icon recycle{{if $item.responses.announce.self}} active{{/if}}" title="{{$item.vote.announce.0}}" onclick="doActivityItem({{$item.id}},'announce'{{if $item.responses.announce.self}}, true{{/if}}); return false"></a>{{/if}}
|
|
||||||
{{if $item.vote.share}}<a href="#" class="icon share wall-item-share-buttons" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false"></a>{{/if}}
|
|
||||||
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
{{if $item.remote_comment}}
|
|
||||||
<div class="wall-item-links-wrapper"><a href="{{$item.remote_comment.2}}" title="{{$item.remote_comment.0}}" target="_blank" rel="noopener noreferrer" class="icon remote-link{{$item.sparkle}} u-url"></a></div>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.plink}}
|
|
||||||
<div class="wall-item-links-wrapper"><a href="{{$item.plink.href}}" title="{{$item.plink.title}}" target="_blank" rel="noopener noreferrer" class="icon remote-link{{$item.sparkle}} u-url"></a></div>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.edpost}}
|
|
||||||
<a class="editpost icon pencil" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"></a>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.pin}}
|
{{if $item.thread_level<7}}
|
||||||
<a href="#" id="pinned-{{$item.id}}" onclick="doPin({{$item.id}}); return false;" class="pin-item icon {{$item.ispinned}}" title="{{$item.pin.toggle}}"></a>
|
<div class="wall-item-container {{$item.indent}} {{$item.shiny}} {{$item.network}} thread_level_{{$item.thread_level}}" id="item-{{$item.guid}}">
|
||||||
{{/if}}
|
{{else}}
|
||||||
{{if $item.star}}
|
<div class="wall-item-container {{$item.indent}} {{$item.shiny}} {{$item.network}} thread_level_7" id="item-{{$item.guid}}">
|
||||||
<a href="#" id="starred-{{$item.id}}" onclick="doStar({{$item.id}}); return false;" class="star-item icon {{$item.isstarred}}" title="{{$item.star.toggle}}"></a>
|
{{/if}}
|
||||||
{{/if}}
|
{{if $item.thread_level==1}}
|
||||||
{{if $item.tagger}}
|
<span class="commented" style="display: none;">{{$item.commented}}</span>
|
||||||
<a href="#" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="tag-item icon tagged" title="{{$item.tagger.add}}"></a>
|
<span class="received" style="display: none;">{{$item.received}}</span>
|
||||||
{{/if}}
|
<span class="created" style="display: none;">{{$item.created_date}}</span>
|
||||||
{{if $item.filer}}
|
<span class="uriid" style="display: none;">{{$item.uriid}}</span>
|
||||||
<a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer}}"></a>
|
{{/if}}
|
||||||
{{/if}}
|
<div class="wall-item-item">
|
||||||
{{if $item.isevent }}
|
<div class="wall-item-info">
|
||||||
<div class="wall-item-attend-wrapper">
|
<div class="contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}} p-author h-card">
|
||||||
<a href="#" id="attendyes-{{$item.id}}" class="icon attendyes{{if $item.responses.attendyes.self}} active{{/if}}" onclick="doActivityItem({{$item.id}}, 'attendyes'{{if $item.responses.attendyes.self}}, true{{/if}}); return false;" title="{{$item.attend.0}}"></a>
|
<!-- <a aria-hidden="true" href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="contact-photo-link u-url" id="wall-item-photo-link-{{$item.id}}"></a> -->
|
||||||
<a href="#" id="attendno-{{$item.id}}" class="icon attendno{{if $item.responses.attendno.self}} active{{/if}}" onclick="doActivityItem({{$item.id}}, 'attendno'{{if $item.responses.attendno.self}}, true{{/if}}); return false;" title="{{$item.attend.1}}"></a>
|
<img src="{{$item.thumb}}" class="contact-photo {{$item.sparkle}} p-name u-photo" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
|
||||||
<a href="#" id="attendmaybe-{{$item.id}}" class="icon attendmaybe{{if $item.responses.attendmaybe.self}} active{{/if}}" onclick="doActivityItem({{$item.id}}, 'attendmaybe'{{if $item.responses.attendmaybe.self}}, true{{/if}}); return false;" title="{{$item.attend.2}}"></a>
|
<ul role="menu" aria-haspopup="true" class="contact-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
|
||||||
</div>
|
{{$item.item_photo_menu_html nofilter}}
|
||||||
{{/if}}
|
</ul>
|
||||||
<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-{{$item.id}}">
|
|
||||||
{{if $item.drop && $item.drop.dropping}}<a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drophide" title="{{$item.drop.delete}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);"></a>{{/if}}
|
|
||||||
</div>
|
|
||||||
{{if $item.drop && $item.drop.pagedrop}}<input type="checkbox" onclick="checkboxhighlight(this);" title="{{$item.drop.select}}" class="item-select" name="itemselected[]" value="{{$item.id}}" />{{/if}}
|
|
||||||
<div class="wall-item-delete-end"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-wrapper-end"></div>
|
|
||||||
{{if $item.responses}}
|
|
||||||
{{foreach $item.responses as $verb=>$response}}
|
|
||||||
<div class="wall-item-{{$verb}} {{$item.indent}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
|
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.threaded}}
|
|
||||||
{{if $item.comment_html}}
|
|
||||||
<div class="wall-item-comment-wrapper {{$item.indent}}">
|
|
||||||
{{$item.comment_html nofilter}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="wall-item-outside-wrapper-end {{$item.indent}}"></div>
|
</div>
|
||||||
</div>
|
{{if $item.owner_url}}
|
||||||
{{foreach $item.children as $child}}
|
<div aria-hidden="true" class="contact-photo-wrapper mframe wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}">
|
||||||
{{include file="{{$child.template}}" item=$child}}
|
<a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="contact-photo-link u-url" id="wall-item-ownerphoto-link-{{$item.id}}">
|
||||||
{{/foreach}}
|
<img src="{{$item.owner_photo}}" class="contact-photo {{$item.osparkle}} p-name u-photo" id="wall-item-ownerphoto-{{$item.id}}" alt="{{$item.owner_name}}" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-actions-author">
|
||||||
|
<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}">{{$item.name}}</span></a>
|
||||||
|
{{if $item.owner_url}}{{$item.via}} <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
||||||
|
<span class="wall-item-ago">
|
||||||
|
{{if $item.plink}}<a title="{{$item.plink.title}}" href="{{$item.plink.href}}" class="u-url" style="color: #999"><time class="dt-published" datetime="{{$item.utc}}">{{$item.created}}</time></a>{{else}} <time class="dt-published" datetime="{{$item.utc}}">{{$item.created}}</time> {{/if}}
|
||||||
|
{{if $item.owner_self}}
|
||||||
|
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.direction}}
|
||||||
|
{{include file="sub/direction.tpl" direction=$item.direction}}
|
||||||
|
{{/if}}
|
||||||
|
<span class="pinned">{{$item.pinned}}</span>
|
||||||
|
</span>
|
||||||
|
{{if $item.lock}}<span class="icon s10 lock fakelink" onclick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}">{{$item.lock}}</span>{{/if}}
|
||||||
|
<span class="wall-item-network" title="{{$item.app}}">
|
||||||
|
{{$item.network_name}}
|
||||||
|
</span>
|
||||||
|
<div class="wall-item-network-end"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{if $item.flatten}}
|
<div itemprop="description" class="wall-item-content">
|
||||||
<div class="wall-item-comment-wrapper">
|
{{if $item.title}}<h2 dir="auto"><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name" dir="auto">{{$item.title}}</a></h2>{{/if}}
|
||||||
{{$item.comment_html nofilter}}
|
<div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" dir="auto">{{$item.body_html nofilter}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
<div class="wall-item-bottom">
|
||||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
<div class="wall-item-links">
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-tags">
|
||||||
|
{{if !$item.suppress_tags}}
|
||||||
|
{{foreach $item.hashtags as $tag}}
|
||||||
|
<span class="tag">{{$tag nofilter}}</span>
|
||||||
|
{{/foreach}}
|
||||||
|
{{foreach $item.mentions as $tag}}
|
||||||
|
<span class="mention">{{$tag nofilter}}</span>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
{{foreach $item.folders as $cat}}
|
||||||
|
<span class="folder p-category">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||||
|
{{/foreach}}
|
||||||
|
{{foreach $item.categories as $cat}}
|
||||||
|
<span class="category p-category"><a href="{{$cat.url}}">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||||
|
{{/foreach}}
|
||||||
|
</div>
|
||||||
|
{{if $item.edited}}
|
||||||
|
<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-bottom">
|
||||||
|
<div class="wall-item-links">
|
||||||
|
{{if $item.plink}}<a role="button" title="{{$item.plink.orig_title}}" href="{{$item.plink.orig}}"><i class="icon-link icon-large"><span class="sr-only">{{$item.plink.orig_title}}</span></i></a>{{/if}}
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-actions">
|
||||||
|
<div class="wall-item-actions-social">
|
||||||
|
{{if $item.threaded}}
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.remote_comment}}
|
||||||
|
<a role="button" title="{{$item.remote_comment.0}}" href="{{$item.remote_comment.2}}"><i class="icon-commenting"><span class="sr-only">{{$item.remote_comment.1}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.comment_html}}
|
||||||
|
<a role="button" id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" title="{{$item.switchcomment}}"><i class="icon-commenting"><span class="sr-only">{{$item.switchcomment}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.isevent}}
|
||||||
|
<a role="button" id="attendyes-{{$item.id}}"{{if $item.responses.attendyes.self}} class="active"{{/if}} title="{{$item.attend.0}}" onclick="doActivityItem({{$item.id}}, 'attendyes'{{if $item.responses.attendyes.self}}, true{{/if}}); return false;"><i class="icon-ok icon-large"><span class="sr-only">{{$item.attend.0}}</span></i></a>
|
||||||
|
<a role="button" id="attendno-{{$item.id}}"{{if $item.responses.attendno.self}} class="active"{{/if}} title="{{$item.attend.1}}" onclick="doActivityItem({{$item.id}}, 'attendno'{{if $item.responses.attendno.self}}, true{{/if}}); return false;"><i class="icon-remove icon-large"><span class="sr-only">{{$item.attend.1}}</span></i></a>
|
||||||
|
<a role="button" id="attendmaybe-{{$item.id}}"{{if $item.responses.attendmaybe.self}} class="active"{{/if}} title="{{$item.attend.2}}" onclick="doActivityItem({{$item.id}}, 'attendmaybe'{{if $item.responses.attendmaybe.self}}, true{{/if}}); return false;"><i class="icon-question icon-large"><span class="sr-only">{{$item.attend.2}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.vote}}
|
||||||
|
{{if $item.vote.like}}
|
||||||
|
<a role="button" id="like-{{$item.id}}"{{if $item.responses.like.self}} class="active"{{/if}} title="{{$item.vote.like.0}}" onclick="doActivityItem({{$item.id}}, 'like'{{if $item.responses.like.self}}, true{{/if}}); return false"><i class="icon-thumbs-up icon-large"><span class="sr-only">{{$item.vote.like.0}}</span></i></a>
|
||||||
|
{{/if}}{{if $item.vote.dislike}}
|
||||||
|
<a role="button" id="dislike-{{$item.id}}"{{if $item.responses.dislike.self}} class="active"{{/if}} title="{{$item.vote.dislike.0}}" onclick="doActivityItem({{$item.id}}, 'dislike'{{if $item.responses.dislike.self}}, true{{/if}}); return false"><i class="icon-thumbs-down icon-large"><span class="sr-only">{{$item.vote.dislike.0}}</span></i></a>
|
||||||
|
{{/if}}{{if $item.vote.announce}}
|
||||||
|
<a role="button" id="announce-{{$item.id}}"{{if $item.responses.announce.self}} class="active"{{/if}} title="{{$item.vote.announce.0}}" onclick="doActivityItem({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}}); return false"><i class="icon-retweet icon-large"><span class="sr-only">{{$item.vote.announce.0}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.vote.share}}
|
||||||
|
<a role="button" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false"><i class="icon-share icon-large"><span class="sr-only">{{$item.vote.share.0}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.pin}}
|
||||||
|
<a role="button" id="pin-{{$item.id}}" onclick="doPin({{$item.id}}); return false;" class="{{$item.pin.classdo}}" title="{{$item.pin.do}}"><i class="icon-circle icon-large"><span class="sr-only">{{$item.pin.do}}</span></i></a>
|
||||||
|
<a role="button" id="unpin-{{$item.id}}" onclick="doPin({{$item.id}}); return false;" class="{{$item.pin.classundo}}" title="{{$item.pin.undo}}"><i class="icon-remove-circle icon-large"><span class="sr-only">{{$item.pin.undo}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.star}}
|
||||||
|
<a role="button" id="star-{{$item.id}}" onclick="doStar({{$item.id}}); return false;" class="{{$item.star.classdo}}" title="{{$item.star.do}}"><i class="icon-star icon-large"><span class="sr-only">{{$item.star.do}}</span></i></a>
|
||||||
|
<a role="button" id="unstar-{{$item.id}}" onclick="doStar({{$item.id}}); return false;" class="{{$item.star.classundo}}" title="{{$item.star.undo}}"><i class="icon-star-empty icon-large"><span class="sr-only">{{$item.star.undo}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.ignore}}
|
||||||
|
<a role="button" id="ignore-{{$item.id}}" onclick="doIgnoreThread({{$item.id}}); return false;" class="{{$item.ignore.classdo}}" title="{{$item.ignore.do}}"><i class="icon-bell-slash icon-large"><span class="sr-only">{{$item.ignore.do}}</span></i></a>
|
||||||
|
<a role="button" id="unignore-{{$item.id}}" onclick="doIgnoreThread({{$item.id}}); return false;" class="{{$item.ignore.classundo}}" title="{{$item.ignore.undo}}"><i class="icon-bell-slash-o icon-large"><span class="sr-only">{{$item.ignore.undo}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.tagger}}
|
||||||
|
<a role="button" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="{{$item.tagger.class}}" title="{{$item.tagger.add}}"><i class="icon-tags icon-large"><span class="sr-only">{{$item.tagger.add}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.filer}}
|
||||||
|
<a role="button" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer}}"><i class="icon-folder-close icon-large"><span class="sr-only">{{$item.filer}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wall-item-location">{{$item.location_html nofilter}}</div>
|
||||||
|
|
||||||
|
<div class="wall-item-actions-isevent">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wall-item-actions-tools">
|
||||||
|
|
||||||
|
{{if $item.drop && $item.drop.pagedrop}}
|
||||||
|
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.drop && $item.drop.dropping}}
|
||||||
|
<a role="button" href="item/drop/{{$item.id}}/{{$item.return}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}"><i class="icon-trash icon-large"><span class="sr-only">{{$item.drop.delete}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.edpost}}
|
||||||
|
<a role="button" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="icon-edit icon-large"><span class="sr-only">{{$item.edpost.1}}</span></i></a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-bottom">
|
||||||
|
<div class="wall-item-links">
|
||||||
|
</div>
|
||||||
|
{{if $item.responses}}
|
||||||
|
{{foreach $item.responses as $verb=>$response}}
|
||||||
|
<div class="wall-item-{{$verb}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{if $item.threaded}}{{if $item.comment_html}}
|
||||||
|
<div class="wall-item-bottom">
|
||||||
|
<div class="wall-item-links">
|
||||||
|
</div>
|
||||||
|
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">
|
||||||
|
{{$item.comment_html nofilter}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{foreach $item.children as $child}}
|
||||||
|
{{if $item.type == tag}}
|
||||||
|
{{include file="wall_item_tag.tpl" item=$child}}
|
||||||
|
{{else}}
|
||||||
|
{{include file="{{$item.template}}" item=$child}}
|
||||||
|
{{/if}}
|
||||||
|
{{/foreach}}
|
||||||
|
|
||||||
|
{{if $item.thread_level!=1}}</div>{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
{{if $mode == display}}
|
||||||
|
{{else}}
|
||||||
|
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.total_comments_num}}
|
||||||
|
{{if $item.threaded}}{{if $item.comment_html}}{{if $item.thread_level==1}}
|
||||||
|
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment_html nofilter}}</div>
|
||||||
|
{{/if}}{{/if}}{{/if}}
|
||||||
|
|
||||||
|
{{if $item.flatten}}
|
||||||
|
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment_html nofilter}}</div>
|
||||||
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
{{if $item.threaded}}{{if $item.comment_html}}{{if $item.thread_level==1}}
|
||||||
|
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment_html nofilter}}</div>
|
||||||
|
{{/if}}{{/if}}{{/if}}
|
||||||
|
|
||||||
|
{{if $item.flatten}}
|
||||||
|
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment_html nofilter}}</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
|
@ -2069,12 +2069,12 @@ wall-item-comment-wrapper.well hr {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
.hide-comments-outer {
|
.hide-comments-outer {
|
||||||
|
display: block;
|
||||||
background-color: rgba(0, 0, 0, 0.03);
|
background-color: rgba(0, 0, 0, 0.03);
|
||||||
padding: 0.5em;
|
padding: 0.3em 10px;
|
||||||
border-radius: 0.5em 0.5em 0 0;
|
width: 100%;
|
||||||
}
|
border: none;
|
||||||
.hide-comments-total {
|
text-align: left;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -28,29 +28,17 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
{{if $mode == display}}
|
{{if $mode == display}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if $item.comment_firstcollapsed}}
|
{{if $item.comment_firstcollapsed}}
|
||||||
{{*
|
|
||||||
<div align="center" style="margin-top:-34px;">
|
|
||||||
<div class="hide-comments-outer btn btn-default" onclick="showHideComments({{$item.id}});">
|
|
||||||
<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">{{$item.hide_text}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
|
||||||
*}}
|
|
||||||
|
|
||||||
{{if $item.thread_level<3}}
|
{{if $item.thread_level<3}}
|
||||||
<div class="hide-comments-outer-wrapper">
|
<button type="button" class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
||||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
||||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
<i class="fa fa-caret-right" aria-hidden="true"></i>
|
||||||
<i class="fa fa-caret-right" aria-hidden="true"></i>
|
{{$item.num_comments}} - {{$item.show_text}}
|
||||||
{{$item.num_comments}} - {{$item.show_text}}
|
</span>
|
||||||
</span>
|
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
||||||
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
<i class="fa fa-caret-down" aria-hidden="true"></i>
|
||||||
<i class="fa fa-caret-down" aria-hidden="true"></i>
|
{{$item.num_comments}} - {{$item.hide_text}}
|
||||||
{{$item.num_comments}} - {{$item.hide_text}}
|
</span>
|
||||||
</span>
|
</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||||
{{else}}
|
{{else}}
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: block;">
|
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: block;">
|
||||||
|
|
|
@ -1,233 +0,0 @@
|
||||||
{{if $mode == display}}
|
|
||||||
{{else}}
|
|
||||||
{{if $item.comment_firstcollapsed}}
|
|
||||||
{{if $item.thread_level<3}}
|
|
||||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
|
||||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
|
||||||
{{$item.num_comments}} - {{$item.show_text}}
|
|
||||||
</span>
|
|
||||||
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
|
||||||
{{$item.num_comments}} - {{$item.hide_text}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
|
||||||
{{else}}
|
|
||||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: block;">
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.thread_level!=1}}<div class="children u-comment h-cite">{{/if}}
|
|
||||||
|
|
||||||
<div aria-hidden="true" class="wall-item-decor">
|
|
||||||
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{if $item.thread_level<7}}
|
|
||||||
<div class="wall-item-container {{$item.indent}} {{$item.shiny}} {{$item.network}} thread_level_{{$item.thread_level}}" id="item-{{$item.guid}}">
|
|
||||||
{{else}}
|
|
||||||
<div class="wall-item-container {{$item.indent}} {{$item.shiny}} {{$item.network}} thread_level_7" id="item-{{$item.guid}}">
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.thread_level==1}}
|
|
||||||
<span class="commented" style="display: none;">{{$item.commented}}</span>
|
|
||||||
<span class="received" style="display: none;">{{$item.received}}</span>
|
|
||||||
<span class="created" style="display: none;">{{$item.created_date}}</span>
|
|
||||||
<span class="uriid" style="display: none;">{{$item.uriid}}</span>
|
|
||||||
{{/if}}
|
|
||||||
<div class="wall-item-item">
|
|
||||||
<div class="wall-item-info">
|
|
||||||
<div class="contact-photo-wrapper mframe{{if $item.owner_url}} wwfrom{{/if}} p-author h-card">
|
|
||||||
<!-- <a aria-hidden="true" href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="contact-photo-link u-url" id="wall-item-photo-link-{{$item.id}}"></a> -->
|
|
||||||
<img src="{{$item.thumb}}" class="contact-photo {{$item.sparkle}} p-name u-photo" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
|
|
||||||
<ul role="menu" aria-haspopup="true" class="contact-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
|
|
||||||
{{$item.item_photo_menu_html nofilter}}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{{if $item.owner_url}}
|
|
||||||
<div aria-hidden="true" class="contact-photo-wrapper mframe wwto" id="wall-item-ownerphoto-wrapper-{{$item.id}}">
|
|
||||||
<a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="contact-photo-link u-url" id="wall-item-ownerphoto-link-{{$item.id}}">
|
|
||||||
<img src="{{$item.owner_photo}}" class="contact-photo {{$item.osparkle}} p-name u-photo" id="wall-item-ownerphoto-{{$item.id}}" alt="{{$item.owner_name}}" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-actions-author">
|
|
||||||
<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}">{{$item.name}}</span></a>
|
|
||||||
{{if $item.owner_url}}{{$item.via}} <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
|
||||||
<span class="wall-item-ago">
|
|
||||||
{{if $item.plink}}<a title="{{$item.plink.title}}" href="{{$item.plink.href}}" class="u-url" style="color: #999"><time class="dt-published" datetime="{{$item.utc}}">{{$item.created}}</time></a>{{else}} <time class="dt-published" datetime="{{$item.utc}}">{{$item.created}}</time> {{/if}}
|
|
||||||
{{if $item.owner_self}}
|
|
||||||
{{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.direction}}
|
|
||||||
{{include file="sub/direction.tpl" direction=$item.direction}}
|
|
||||||
{{/if}}
|
|
||||||
<span class="pinned">{{$item.pinned}}</span>
|
|
||||||
</span>
|
|
||||||
{{if $item.lock}}<span class="icon s10 lock fakelink" onclick="lockview(event, 'item', {{$item.id}});" title="{{$item.lock}}">{{$item.lock}}</span>{{/if}}
|
|
||||||
<span class="wall-item-network" title="{{$item.app}}">
|
|
||||||
{{$item.network_name}}
|
|
||||||
</span>
|
|
||||||
<div class="wall-item-network-end"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div itemprop="description" class="wall-item-content">
|
|
||||||
{{if $item.title}}<h2 dir="auto"><a href="{{$item.plink.href}}" class="{{$item.sparkle}} p-name" dir="auto">{{$item.title}}</a></h2>{{/if}}
|
|
||||||
<div class="wall-item-body e-content {{if !$item.title}}p-name{{/if}}" dir="auto">{{$item.body_html nofilter}}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-bottom">
|
|
||||||
<div class="wall-item-links">
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-tags">
|
|
||||||
{{if !$item.suppress_tags}}
|
|
||||||
{{foreach $item.hashtags as $tag}}
|
|
||||||
<span class="tag">{{$tag nofilter}}</span>
|
|
||||||
{{/foreach}}
|
|
||||||
{{foreach $item.mentions as $tag}}
|
|
||||||
<span class="mention">{{$tag nofilter}}</span>
|
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
{{foreach $item.folders as $cat}}
|
|
||||||
<span class="folder p-category">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
|
||||||
{{/foreach}}
|
|
||||||
{{foreach $item.categories as $cat}}
|
|
||||||
<span class="category p-category"><a href="{{$cat.url}}">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
|
||||||
{{/foreach}}
|
|
||||||
</div>
|
|
||||||
{{if $item.edited}}
|
|
||||||
<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-bottom">
|
|
||||||
<div class="wall-item-links">
|
|
||||||
{{if $item.plink}}<a role="button" title="{{$item.plink.orig_title}}" href="{{$item.plink.orig}}"><i class="icon-link icon-large"><span class="sr-only">{{$item.plink.orig_title}}</span></i></a>{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-actions">
|
|
||||||
<div class="wall-item-actions-social">
|
|
||||||
{{if $item.threaded}}
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.remote_comment}}
|
|
||||||
<a role="button" title="{{$item.remote_comment.0}}" href="{{$item.remote_comment.2}}"><i class="icon-commenting"><span class="sr-only">{{$item.remote_comment.1}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.comment_html}}
|
|
||||||
<a role="button" id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" title="{{$item.switchcomment}}"><i class="icon-commenting"><span class="sr-only">{{$item.switchcomment}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.isevent}}
|
|
||||||
<a role="button" id="attendyes-{{$item.id}}"{{if $item.responses.attendyes.self}} class="active"{{/if}} title="{{$item.attend.0}}" onclick="doActivityItem({{$item.id}}, 'attendyes'{{if $item.responses.attendyes.self}}, true{{/if}}); return false;"><i class="icon-ok icon-large"><span class="sr-only">{{$item.attend.0}}</span></i></a>
|
|
||||||
<a role="button" id="attendno-{{$item.id}}"{{if $item.responses.attendno.self}} class="active"{{/if}} title="{{$item.attend.1}}" onclick="doActivityItem({{$item.id}}, 'attendno'{{if $item.responses.attendno.self}}, true{{/if}}); return false;"><i class="icon-remove icon-large"><span class="sr-only">{{$item.attend.1}}</span></i></a>
|
|
||||||
<a role="button" id="attendmaybe-{{$item.id}}"{{if $item.responses.attendmaybe.self}} class="active"{{/if}} title="{{$item.attend.2}}" onclick="doActivityItem({{$item.id}}, 'attendmaybe'{{if $item.responses.attendmaybe.self}}, true{{/if}}); return false;"><i class="icon-question icon-large"><span class="sr-only">{{$item.attend.2}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.vote}}
|
|
||||||
{{if $item.vote.like}}
|
|
||||||
<a role="button" id="like-{{$item.id}}"{{if $item.responses.like.self}} class="active"{{/if}} title="{{$item.vote.like.0}}" onclick="doActivityItem({{$item.id}}, 'like'{{if $item.responses.like.self}}, true{{/if}}); return false"><i class="icon-thumbs-up icon-large"><span class="sr-only">{{$item.vote.like.0}}</span></i></a>
|
|
||||||
{{/if}}{{if $item.vote.dislike}}
|
|
||||||
<a role="button" id="dislike-{{$item.id}}"{{if $item.responses.dislike.self}} class="active"{{/if}} title="{{$item.vote.dislike.0}}" onclick="doActivityItem({{$item.id}}, 'dislike'{{if $item.responses.dislike.self}}, true{{/if}}); return false"><i class="icon-thumbs-down icon-large"><span class="sr-only">{{$item.vote.dislike.0}}</span></i></a>
|
|
||||||
{{/if}}{{if $item.vote.announce}}
|
|
||||||
<a role="button" id="announce-{{$item.id}}"{{if $item.responses.announce.self}} class="active"{{/if}} title="{{$item.vote.announce.0}}" onclick="doActivityItem({{$item.id}}, 'announce'{{if $item.responses.announce.self}}, true{{/if}}); return false"><i class="icon-retweet icon-large"><span class="sr-only">{{$item.vote.announce.0}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.vote.share}}
|
|
||||||
<a role="button" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false"><i class="icon-share icon-large"><span class="sr-only">{{$item.vote.share.0}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.pin}}
|
|
||||||
<a role="button" id="pin-{{$item.id}}" onclick="doPin({{$item.id}}); return false;" class="{{$item.pin.classdo}}" title="{{$item.pin.do}}"><i class="icon-circle icon-large"><span class="sr-only">{{$item.pin.do}}</span></i></a>
|
|
||||||
<a role="button" id="unpin-{{$item.id}}" onclick="doPin({{$item.id}}); return false;" class="{{$item.pin.classundo}}" title="{{$item.pin.undo}}"><i class="icon-remove-circle icon-large"><span class="sr-only">{{$item.pin.undo}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.star}}
|
|
||||||
<a role="button" id="star-{{$item.id}}" onclick="doStar({{$item.id}}); return false;" class="{{$item.star.classdo}}" title="{{$item.star.do}}"><i class="icon-star icon-large"><span class="sr-only">{{$item.star.do}}</span></i></a>
|
|
||||||
<a role="button" id="unstar-{{$item.id}}" onclick="doStar({{$item.id}}); return false;" class="{{$item.star.classundo}}" title="{{$item.star.undo}}"><i class="icon-star-empty icon-large"><span class="sr-only">{{$item.star.undo}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.ignore}}
|
|
||||||
<a role="button" id="ignore-{{$item.id}}" onclick="doIgnoreThread({{$item.id}}); return false;" class="{{$item.ignore.classdo}}" title="{{$item.ignore.do}}"><i class="icon-bell-slash icon-large"><span class="sr-only">{{$item.ignore.do}}</span></i></a>
|
|
||||||
<a role="button" id="unignore-{{$item.id}}" onclick="doIgnoreThread({{$item.id}}); return false;" class="{{$item.ignore.classundo}}" title="{{$item.ignore.undo}}"><i class="icon-bell-slash-o icon-large"><span class="sr-only">{{$item.ignore.undo}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.tagger}}
|
|
||||||
<a role="button" id="tagger-{{$item.id}}" onclick="itemTag({{$item.id}}); return false;" class="{{$item.tagger.class}}" title="{{$item.tagger.add}}"><i class="icon-tags icon-large"><span class="sr-only">{{$item.tagger.add}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.filer}}
|
|
||||||
<a role="button" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer}}"><i class="icon-folder-close icon-large"><span class="sr-only">{{$item.filer}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wall-item-location">{{$item.location_html nofilter}}</div>
|
|
||||||
|
|
||||||
<div class="wall-item-actions-isevent">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="wall-item-actions-tools">
|
|
||||||
|
|
||||||
{{if $item.drop && $item.drop.pagedrop}}
|
|
||||||
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.drop && $item.drop.dropping}}
|
|
||||||
<a role="button" href="item/drop/{{$item.id}}/{{$item.return}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}"><i class="icon-trash icon-large"><span class="sr-only">{{$item.drop.delete}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
{{if $item.edpost}}
|
|
||||||
<a role="button" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="icon-edit icon-large"><span class="sr-only">{{$item.edpost.1}}</span></i></a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-bottom">
|
|
||||||
<div class="wall-item-links">
|
|
||||||
</div>
|
|
||||||
{{if $item.responses}}
|
|
||||||
{{foreach $item.responses as $verb=>$response}}
|
|
||||||
<div class="wall-item-{{$verb}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output nofilter}}</div>
|
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{if $item.threaded}}{{if $item.comment_html}}
|
|
||||||
<div class="wall-item-bottom">
|
|
||||||
<div class="wall-item-links">
|
|
||||||
</div>
|
|
||||||
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">
|
|
||||||
{{$item.comment_html nofilter}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/if}}{{/if}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
{{foreach $item.children as $child}}
|
|
||||||
{{if $item.type == tag}}
|
|
||||||
{{include file="wall_item_tag.tpl" item=$child}}
|
|
||||||
{{else}}
|
|
||||||
{{include file="{{$item.template}}" item=$child}}
|
|
||||||
{{/if}}
|
|
||||||
{{/foreach}}
|
|
||||||
|
|
||||||
{{if $item.thread_level!=1}}</div>{{/if}}
|
|
||||||
|
|
||||||
|
|
||||||
{{if $mode == display}}
|
|
||||||
{{else}}
|
|
||||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $item.total_comments_num}}
|
|
||||||
{{if $item.threaded}}{{if $item.comment_html}}{{if $item.thread_level==1}}
|
|
||||||
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment_html nofilter}}</div>
|
|
||||||
{{/if}}{{/if}}{{/if}}
|
|
||||||
|
|
||||||
{{if $item.flatten}}
|
|
||||||
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}">{{$item.comment_html nofilter}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
|
||||||
{{if $item.threaded}}{{if $item.comment_html}}{{if $item.thread_level==1}}
|
|
||||||
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment_html nofilter}}</div>
|
|
||||||
{{/if}}{{/if}}{{/if}}
|
|
||||||
|
|
||||||
{{if $item.flatten}}
|
|
||||||
<div class="wall-item-comment-wrapper" id="item-comments-{{$item.id}}" style="display: none;">{{$item.comment_html nofilter}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
Loading…
Reference in a new issue