aboutsummaryrefslogtreecommitdiff
path: root/www/ajaxVote.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:38:02 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-02 09:38:02 +0000
commitcee739e6278020dd4d79a5dcd86465c6c6a44a6c (patch)
treeac1399996ba74719599c5619fef93f0a536bc532 /www/ajaxVote.php
parentb622fda3ad7679dd0b0daaa9c45c86efc5abdaeb (diff)
downloadsemanticscuttle-cee739e6278020dd4d79a5dcd86465c6c6a44a6c.tar.gz
semanticscuttle-cee739e6278020dd4d79a5dcd86465c6c6a44a6c.tar.bz2
add horizontal voting links and switch config setting
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@498 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/ajaxVote.php')
-rw-r--r--www/ajaxVote.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/ajaxVote.php b/www/ajaxVote.php
index 27eb62c..3e603da 100644
--- a/www/ajaxVote.php
+++ b/www/ajaxVote.php
@@ -9,12 +9,19 @@ $bs = SemanticScuttle_Service_Factory::get('Bookmark');
$ts = SemanticScuttle_Service_Factory::get('Template');
$bmrow = $bs->getBookmark($bookmark);
+switch ($GLOBALS['votingMode']) {
+case 2:
+ $template = 'bookmarks-vote-horizontal.inc.tpl.php';
+ break;
+default:
+ $template = 'bookmarks-vote.inc.tpl.php';
+}
+
header('Content-Type: text/xml; charset=utf-8');
echo '<voteresult><bookmark>' . $bookmark . '</bookmark>'
. '<html xmlns="http://www.w3.org/1999/xhtml">';
$ts->loadTemplate(
- 'bookmarks-vote.inc.tpl.php',
- array('row' => $bmrow)
+ $template, array('row' => $bmrow)
);
echo '</html></voteresult>';