summaryrefslogtreecommitdiff
path: root/data/templates/bookmarks-vote.inc.tpl.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:30:33 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:30:33 +0000
commitf01fb1362274426d5ebcc4339c4c300a079bbb8e (patch)
tree25d98f299b77dc0c482a39972106f980a79047e2 /data/templates/bookmarks-vote.inc.tpl.php
parent10f59ea7718e30804ceaffec807b184d838d5ed0 (diff)
downloadsemanticscuttle-f01fb1362274426d5ebcc4339c4c300a079bbb8e.tar.gz
semanticscuttle-f01fb1362274426d5ebcc4339c4c300a079bbb8e.tar.bz2
move bookmark thumbnail code in separate template file
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@436 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data/templates/bookmarks-vote.inc.tpl.php')
-rw-r--r--data/templates/bookmarks-vote.inc.tpl.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php
index 89818f8..37a58c1 100644
--- a/data/templates/bookmarks-vote.inc.tpl.php
+++ b/data/templates/bookmarks-vote.inc.tpl.php
@@ -8,19 +8,24 @@
if (!$GLOBALS['enableVoting']) {
return;
}
-echo '<span class="vote-badge">';
+if ($row['hasVoted']) {
+ $classes = 'vote-badge vote-badge-inactive';
+} else {
+ $classes = 'vote-badge';
+}
+echo '<span class="' . $classes . '">';
if (!$row['hasVoted']) {
echo '<a class="vote-for" href="'
. createVoteURL(true, $row['bId']) . '">+</a>';
} else {
- echo '<span class="vote-against-i">+</span>';
+ echo '<span class="vote-for-inactive">+</span>';
}
echo '<span class="voting">' . $row['bVoting'] . '</span>';
if (!$row['hasVoted']) {
echo '<a class="vote-against" href="'
. createVoteURL(false, $row['bId']) . '">-</a>';
} else {
- echo '<span class="vote-against-i">-</span>';
+ echo '<span class="vote-against-inactive">-</span>';
}
echo '</span>';
?> \ No newline at end of file