1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-15 12:06:19 +02:00

Fixes #377 - Poll menu breaking layout.

This commit is contained in:
Cameron
2014-05-22 17:43:54 -07:00
parent 255a449858
commit 6d649de543

View File

@ -506,8 +506,10 @@ class poll
$text .= preg_replace("/\{(.*?)\}/e", '$\1', ($type == "forum" ? $POLL_FORUM_VOTED_LOOP : $POLL_VOTED_LOOP)); $text .= preg_replace("/\{(.*?)\}/e", '$\1', ($type == "forum" ? $POLL_FORUM_VOTED_LOOP : $POLL_VOTED_LOOP));
$count ++; $count ++;
} }
$text .= preg_replace("/\{(.*?)\}/e", '$\1', ($type == "forum" ? $POLL_FORUM_VOTED_END : $POLL_VOTED_END));
} }
$text .= preg_replace("/\{(.*?)\}/e", '$\1', ($type == "forum" ? $POLL_FORUM_VOTED_END : $POLL_VOTED_END));
break; break;
case 'disallowed': case 'disallowed':
@ -565,9 +567,14 @@ class poll
{ {
if(deftrue('BOOTSTRAP',false)) if(deftrue('BOOTSTRAP',false))
{ {
return "<div class='progress'> $val = intval($perc);
<div class='bar' style='width: ".intval($perc)."%;'></div> return '
</div>"; <div class="progress">
<div class="bar progress-bar" role="progressbar" aria-valuenow="'.$val.'" aria-valuemin="0" aria-valuemax="100" style="width: '.$val.'%;">
<span class="sr-only">'.$val.'%</span>
</div>
</div>';
} }
else else
{ {