]> git.mxchange.org Git - friendica.git/commitdiff
fixed star/unstar
authortommy tomson <thomas.bierey@gmx.de>
Sat, 3 Mar 2012 18:07:55 +0000 (19:07 +0100)
committertommy tomson <thomas.bierey@gmx.de>
Sat, 3 Mar 2012 18:07:55 +0000 (19:07 +0100)
images/star.png [new file with mode: 0755]
images/star_dummy.png [new file with mode: 0644]
view/theme/diabook/icons/isstar.png [new file with mode: 0644]
view/theme/diabook/icons/star.png
view/theme/diabook/icons/star_dummy.png [new file with mode: 0644]
view/theme/diabook/style.css
view/theme/diabook/wall_item.tpl

diff --git a/images/star.png b/images/star.png
new file mode 100755 (executable)
index 0000000..0b00cb1
Binary files /dev/null and b/images/star.png differ
diff --git a/images/star_dummy.png b/images/star_dummy.png
new file mode 100644 (file)
index 0000000..ce11f30
Binary files /dev/null and b/images/star_dummy.png differ
diff --git a/view/theme/diabook/icons/isstar.png b/view/theme/diabook/icons/isstar.png
new file mode 100644 (file)
index 0000000..c955b25
Binary files /dev/null and b/view/theme/diabook/icons/isstar.png differ
index 32eff5a506c913598d177900dd5752777337e622..0b00cb189385f94442edd122a4760d39fe4d3492 100755 (executable)
Binary files a/view/theme/diabook/icons/star.png and b/view/theme/diabook/icons/star.png differ
diff --git a/view/theme/diabook/icons/star_dummy.png b/view/theme/diabook/icons/star_dummy.png
new file mode 100644 (file)
index 0000000..ce11f30
Binary files /dev/null and b/view/theme/diabook/icons/star_dummy.png differ
index d9d88690f0f7420acf707c8d9936aea086e67948..ecd995d5f016710e310d060022d7af6feaa2b364 100644 (file)
 .icon.recycle  { background-image: url("../../../view/theme/diabook/icons/recycle.png");}
 .icon.remote-link { background-image: url("../../../view/theme/diabook/icons/remote.png");}
 .icon.tagged    { background-image: url("../../../view/theme/diabook/icons/tagged.png");}
-.icon.unstarred    { background-image: url("../../../view/theme/diabook/icons/unstarred.png");}
+.icon.unstarred    { background-image: url("../../../view/theme/diabook/icons/star.png");}
 .icon.star    { background-image: url("../../../view/theme/diabook/icons/star.png");}
 .icon.link             { background-image: url("../../../view/theme/diabook/icons/link.png");}
 .icon.lock             { background-image: url("../../../view/theme/diabook/icons/lock.png");}
 .icon.unlock           { background-image: url("../../../view/theme/diabook/icons/unlock.png");}
+.icon.isstar    { background-image: url("../../../view/theme/diabook/icons/isstar.png");}
+
 
 .camera        { background-image: url("../../../view/theme/diabook/icons/camera.png"); 
                          display: block; width: 28px; height: 28px; background-repeat: no-repeat;
index 10d39531635fae78315b9d5080325e73aaa3b0fe..c836d4fbb3fc1b9fe368bab0610dc0538d15e207 100644 (file)
@@ -1,6 +1,6 @@
 {{ if $item.indent }}{{ else }}
 <div class="wall-item-decor">
-       <span class="icon star $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
+       <span class="icon isstar $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
        {{ if $item.lock }}<span class="icon lock fakelink" onclick="lockview(event,$item.id);" title="$item.lock">$item.lock</span>{{ endif }} 
        <img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" />
 </div>
@@ -38,9 +38,7 @@
                </div>
        </div>
        <div class="wall-item-bottom">
-               <div class="wall-item-links">
-                       {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
-               </div>
+               <div></div>
                <div class="wall-item-tags">
                        {{ for $item.tags as $tag }}
                                <span class='tag'>$tag</span>
@@ -54,7 +52,8 @@
                <div class="wall-item-actions">
                        <div class="wall-item-location">$item.location&nbsp;</div>
                        <div class="wall-item-actions-social">
-                               
+                       
+                       
                        {{ if $item.vote }}
                                <a href="#" id="like-$item.id" class="icon like" title="$item.vote.like.0" onclick="dolike($item.id,'like'); return false">$item.vote.like.1</a>
                                <a href="#" id="dislike-$item.id" class="icon dislike" title="$item.vote.dislike.0" onclick="dolike($item.id,'dislike'); return false"></a>
                                                
                        {{ if $item.vote.share }}
                                <a href="#" id="share-$item.id" class="icon recycle" title="$item.vote.share.0" onclick="jotShare($item.id); return false"></a>
-                       {{ endif }}             
+                       {{ endif }}     
                        
                        {{ if $item.star }}
-                               <a href="#" id="star-$item.id" class="icon star" onclick="dostar($item.id); return false;"  class="$item.star.classdo" title="$item.star.do">$item.star.do</a>
-                               <a href="#" id="unstar-$item.id" class="icon unstarred" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">$item.star.undo</a>
+                               <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do" >
+                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
+                               <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">
+                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.undo" /> </a>
                                <a href="#" id="tagger-$item.id" class="icon tagged" onclick="itemTag($item.id); return false;" class="$item.star.classtagger" title="$item.star.tagger">$item.star.tagger</a>
-                       {{ endif }}                     
+                       {{ endif }}     
+                       
+                       {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
+                       
+                                       
                                        
                        </div>