theme_poll_bar
modules/poll/poll.module, строка 454
- Версии
- 5
theme_poll_bar($title, $percentage, $votes, $block)
Код
<?php
function theme_poll_bar($title, $percentage, $votes, $block) {
if ($block) {
$output = '<div class="text">'. $title .'</div>';
$output .= '<div class="bar"><div style="width: '. $percentage .'%;" class="foreground"></div></div>';
$output .= '<div class="percent">'. $percentage .'%</div>';
}
else {
$output = '<div class="text">'. $title .'</div>';
$output .= '<div class="bar"><div style="width: '. $percentage .'%;" class="foreground"></div></div>';
$output .= '<div class="percent">'. $percentage .'% ('. $votes .')</div>';
}
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии