]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/templates/photo_item.tpl
Fix: Notes can be posted again. Never use "defaults" with "false" (#5551)
[friendica.git] / view / theme / quattro / templates / photo_item.tpl
index 12c43eb0b2aa25ebf7cfb120d7b7f92c2ef8d05e..6dfacdb78c680632e27d048867ed883109461806 100644 (file)
@@ -6,7 +6,7 @@
                                        <img src="{{$thumb}}" class="contact-photo{{$sparkle}}" id="wall-item-photo-{{$id}}" alt="{{$name}}" />
                                </a>
                        </div>
-                       <div class="wall-item-location">{{$location}}</div>     
+                       <div class="wall-item-location">{{$location}}</div>
                </div>
                <div class="wall-item-content">
                        {{if $title}}<h2><a href="{{$plink.href}}">{{$title}}</a></h2>{{/if}}
                        <div class="wall-item-actions-author">
                                <a href="{{$profile_url}}" target="redir" title="{{$linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$sparkle}}">{{$name}}</span></a> <span class="wall-item-ago" title="{{$localtime}}">{{$ago}}</span>
                        </div>
-                       
+
                        <div class="wall-item-actions-social">
                        {{if $star}}
                                <a href="#" id="star-{{$id}}" onclick="dostar({{$id}}); return false;"  class="{{$star.classdo}}"  title="{{$star.do}}">{{$star.do}}</a>
                                <a href="#" id="unstar-{{$id}}" onclick="dostar({{$id}}); return false;"  class="{{$star.classundo}}"  title="{{$star.undo}}">{{$star.undo}}</a>
                                <a href="#" id="tagger-{{$id}}" onclick="itemTag({{$id}}); return false;" class="{{$star.classtagger}}" title="{{$star.tagger}}">{{$star.tagger}}</a>
                        {{/if}}
-                       
+
                        {{if $vote}}
-                               <a href="#" id="like-{{$id}}" title="{{$vote.like.0}}" onclick="dolike({{$id}},'like'); return false">{{$vote.like.1}}</a>
-                               <a href="#" id="dislike-{{$id}}" title="{{$vote.dislike.0}}" onclick="dolike({{$id}},'dislike'); return false">{{$vote.dislike.1}}</a>
+                               <a href="#" id="like-{{$id}}"{{if $item.responses.like.self}} class="active{{/if}}" title="{{$vote.like.0}}" onclick="dolike({{$id}},'like'); return false">{{$vote.like.1}}</a>
+                               <a href="#" id="dislike-{{$id}}"{{if $item.responses.dislike.self}} class="active{{/if}}" title="{{$vote.dislike.0}}" onclick="dolike({{$id}},'dislike'); return false">{{$vote.dislike.1}}</a>
                        {{/if}}
-                                               
+
                        {{if $vote.share}}
                                <a href="#" id="share-{{$id}}" title="{{$vote.share.0}}" onclick="jotShare({{$id}}); return false">{{$vote.share.1}}</a>
-                       {{/if}}                 
+                       {{/if}}
                        </div>
-                       
+
                        <div class="wall-item-actions-tools">
 
                                {{if $drop.pagedrop}}
@@ -60,7 +60,7 @@
                                        <a class="icon edit s16" href="{{$edpost.0}}" title="{{$edpost.1}}"></a>
                                {{/if}}
                        </div>
-                       
+
                </div>
        </div>
        <div class="wall-item-bottom">
@@ -73,7 +73,7 @@
                </div>
                {{/if}}
        </div>
-       
-       
+
+
 </div>