Mercurial > defr > drupal > core
view modules/poll/poll-bar-block.tpl.php @ 20:e3d20ebd63d1 tip
Added tag 6.9 for changeset 3edae6ecd6c6
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:16:10 +0100 |
parents | c1f4ac30525a |
children |
line wrap: on
line source
<?php // $Id: poll-bar-block.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $ /** * @file poll-bar-block.tpl.php * Display the bar for a single choice in a poll * * Variables available: * - $title: The title of the poll. * - $votes: The number of votes for this choice * - $total_votes: The number of votes for this choice * - $percentage: The percentage of votes for this choice. * - $vote: The choice number of the current user's vote. * - $voted: Set to TRUE if the user voted for this choice. * * @see template_preprocess_poll_bar() */ ?> <div class="text"><?php print $title; ?></div> <div class="bar"> <div style="width: <?php print $percentage; ?>%;" class="foreground"></div> </div> <div class="percent"> <?php print $percentage; ?>% </div>