From a11432db93dbfdb0dbc78e1dd384663439799559 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 23 May 2011 06:53:31 +0200 Subject: first try to implement theming support, which currently does not work at all --- .../default/bookmarks-vote-horizontal.inc.tpl.php | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 data/templates/default/bookmarks-vote-horizontal.inc.tpl.php (limited to 'data/templates/default/bookmarks-vote-horizontal.inc.tpl.php') diff --git a/data/templates/default/bookmarks-vote-horizontal.inc.tpl.php b/data/templates/default/bookmarks-vote-horizontal.inc.tpl.php new file mode 100644 index 0000000..c4a9f8e --- /dev/null +++ b/data/templates/default/bookmarks-vote-horizontal.inc.tpl.php @@ -0,0 +1,50 @@ +'; +echo sprintf( + T_('Voting %d'), $row['bVoting'] +) . ' '; + +if (isset($row['hasVoted'])) { + if ($row['vote'] != 1) { + echo '' . T_('Vote for') . ' '; + } else { + echo '' + . T_('Vote for') . ' '; + } + + + if ($row['vote'] != -1) { + echo '' . T_('Vote against') . ''; + } else { + echo '' + . T_('Vote against') . ''; + } +} +echo ''; +?> \ No newline at end of file -- cgit v1.2.3