]> git.mxchange.org Git - friendica.git/commitdiff
Adapting the changes to search_item.tpl as well
authorMichael Vogel <icarus@dabo.de>
Mon, 30 May 2016 03:21:57 +0000 (05:21 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 30 May 2016 03:21:57 +0000 (05:21 +0200)
view/theme/frio/templates/search_item.tpl

index 1f2b761703907977e6d112b0463cb6bdda802004..9722a6e1d44e4aa5c5bc63298be91adf96a171e8 100644 (file)
 
                                        {{* Buttons for like and dislike *}}
                                        {{if $item.vote}}
-                                       <div class="vote-like pull-left">
+                                               {{if $item.vote.like}}
                                                <a role="button" href="#" class="button-likes" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="dolike({{$item.id}},'like'); return false;">{{$item.vote.like.0}}</a>
+                                               {{/if}}
 
-                                               {{if $item.vote.dislike}}
+                                               {{if $item.vote.like AND $item.vote.dislike}}
                                                <span role="presentation" class="separator">&nbsp;•&nbsp;</span>
+                                               {{/if}}
+
+                                               {{if $item.vote.dislike}}
                                                <a role="button" href="#" class="button-likes" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false;">{{$item.vote.dislike.0}}</a>
                                                {{/if}}
 
-                                               {{if $item.comment}}<span role="presentation" class="separator">&nbsp;•&nbsp;</span>{{/if}}
-                                       </div>
+                                               {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
+                                               <span role="presentation" class="separator">&nbsp;•&nbsp;</span>
+                                               {{/if}}
                                        {{/if}}
 
                                        {{* Butten to open the comment text field *}}
                                        {{if $item.comment}}
-                                       <div id="button-reply" class="pull-left">
-                                               <a role="button" class="" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});">{{$item.switchcomment}} </a>
-                                       </div>
+                                       <a role="button" class="" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});">{{$item.switchcomment}} </a>
                                        {{/if}}
 
                                        {{* Button for sharing the item *}}
                                        {{if $item.vote}}
-                                               {{if $item.vote.share}}
+                                               {{if ($item.vote.like OR $item.vote.dislike OR $item.comment) AND $item.vote.share}}
                                                <span role="presentation" class="separator">&nbsp;•&nbsp;</span>
+                                               {{/if}}
+                                               {{if $item.vote.share}}
                                                <a role="button" href="#" class="" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false;"><i class="fa fa-retweet"></i>&nbsp;{{$item.vote.share.0}}</a>
                                                {{/if}}
                                        {{/if}}