mirror of
https://github.com/e107inc/e107.git
synced 2025-07-15 03:56:20 +02:00
Fixes #377 - Poll menu breaking layout.
This commit is contained in:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user