1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 11:04:18 +02:00

RSS template upgraded to v2.x spec. Bootstrap 5 styling fixes.

This commit is contained in:
Cameron
2021-01-03 07:54:43 -08:00
parent c3c830d296
commit 3b0ff5d4ef
7 changed files with 69 additions and 52 deletions

View File

@@ -603,7 +603,7 @@ class poll
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>
<span class="sr-only visually-hidden">'.$val.'%</span>
</div>
</div>';
@@ -1006,7 +1006,7 @@ class poll_shortcodes extends e_shortcode
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>
<span class="sr-only visually-hidden">'.$val.'%</span>
</div>
</div>';

View File

@@ -103,8 +103,8 @@ $POLL_DISALLOWED_END = "
";
/* ################################# */
/* template for forum polls when user HASN'T voted*/
// template for forum polls when user HASN'T voted
$POLL_FORUM_NOTVOTED_START = "
<div style='text-align:center; margin-left: auto; margin-right: auto;'>
@@ -216,7 +216,7 @@ $POLL_TEMPLATE['results']['start'] = "
";
$POLL_TEMPLATE['results']['item'] = "
<strong>{OPTION}</strong><small class='pull-right float-right'><a href='#' class='e-tip' title=\"{VOTES}\">{PERCENTAGE}</a></small>
<strong>{OPTION}</strong><small class='pull-right float-right float-end'><a href='#' class='e-tip' title=\"{VOTES}\">{PERCENTAGE}</a></small>
{BAR}
";