1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +02:00

Fixes - Poll menu breaking layout.

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

@ -506,8 +506,10 @@ class poll
$text .= preg_replace("/\{(.*?)\}/e", '$\1', ($type == "forum" ? $POLL_FORUM_VOTED_LOOP : $POLL_VOTED_LOOP));
$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;
case 'disallowed':
@ -565,9 +567,14 @@ class poll
{
if(deftrue('BOOTSTRAP',false))
{
return "<div class='progress'>
<div class='bar' style='width: ".intval($perc)."%;'></div>
</div>";
$val = intval($perc);
return '
<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
{