Add CSS classes to content-filter wrapper
This commit is contained in:
parent
2d1942a1fa
commit
d603bf062d
1 changed files with 4 additions and 4 deletions
|
@ -1431,15 +1431,15 @@ function apply_content_filter($html, array $reasons)
|
||||||
{
|
{
|
||||||
if (count($reasons)) {
|
if (count($reasons)) {
|
||||||
$rnd = random_string(8);
|
$rnd = random_string(8);
|
||||||
$content_filter_html = '<ul>';
|
$content_filter_html = '<ul class="content-filter-reasons">';
|
||||||
foreach ($reasons as $reason) {
|
foreach ($reasons as $reason) {
|
||||||
$content_filter_html .= '<li>' . htmlspecialchars($reason) . '</li>' . PHP_EOL;
|
$content_filter_html .= '<li>' . htmlspecialchars($reason) . '</li>' . PHP_EOL;
|
||||||
}
|
}
|
||||||
$content_filter_html .= '</ul>
|
$content_filter_html .= '</ul>
|
||||||
<div id="content-filter-wrap-' . $rnd . '" class="fakelink" onclick=openClose(\'content-filter-' . $rnd . '\'); >' .
|
<p><span id="content-filter-wrap-' . $rnd . '" class="fakelink content-filter-button" onclick=openClose(\'content-filter-' . $rnd . '\'); >' .
|
||||||
L10n::t('Click to open/close') .
|
L10n::t('Click to open/close') .
|
||||||
'</div>
|
'</span></p>
|
||||||
<div id="content-filter-' . $rnd . '" style="display: none;">';
|
<div id="content-filter-' . $rnd . '" class="content-filter-content" style="display: none;">';
|
||||||
|
|
||||||
$html = $content_filter_html . $html . '</div>';
|
$html = $content_filter_html . $html . '</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue