From cee739e6278020dd4d79a5dcd86465c6c6a44a6c Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:38:02 +0000 Subject: 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 --- www/ajaxVote.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'www/ajaxVote.php') 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 '' . $bookmark . '' . ''; $ts->loadTemplate( - 'bookmarks-vote.inc.tpl.php', - array('row' => $bmrow) + $template, array('row' => $bmrow) ); echo ''; -- cgit v1.2.3