aboutsummaryrefslogtreecommitdiff
path: root/www/ajaxVote.php
diff options
context:
space:
mode:
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>';