Remove some bad style bits, fix wiki tables, remove flashbang, add history to topbar
This commit is contained in:
@@ -380,8 +380,23 @@ class NextBestNetworkTemplate extends BaseTemplate {
|
||||
if(preg_match( '/specialpages|whatlinkshere/', $key )) {
|
||||
$divideditems[] = [];
|
||||
}
|
||||
unset($item['icon']);
|
||||
$divideditems[$key] = $item;
|
||||
}
|
||||
|
||||
// Add page history link at bottom
|
||||
$views = $this->data['view_urls'];
|
||||
if( isset( $views['history'] ) ) {
|
||||
if (
|
||||
array_key_exists( 'attributes', $views['history'] ) && false !== strpos( $views['history']['attributes'], 'selected' )
|
||||
|| array_key_exists( 'class', $views['history'] ) && false !== strpos( $views['history']['class'], 'selected' )
|
||||
) {
|
||||
$divideditems['history'] = array_shift( $this->data['namespace_urls'] );
|
||||
} else {
|
||||
$divideditems['history'] = $views['history'];
|
||||
}
|
||||
}
|
||||
|
||||
return [[
|
||||
'href' => '#',
|
||||
'html' => $html,
|
||||
@@ -1239,29 +1254,29 @@ $skin->renderBrand();
|
||||
echo '
|
||||
<li class="nav-item dropdown">
|
||||
<button class="btn btn-link nav-link px-0 px-lg-2 py-2 dropdown-toggle d-flex align-items-center" id="bd-theme" type="button" aria-expanded="false" data-bs-toggle="dropdown" data-bs-display="static" aria-label="Toggle theme">
|
||||
<i class="bi bi-circle-half"></i>
|
||||
<span class="fa fa-adjust" aria-hidden="true"></span>
|
||||
<span class="d-lg-none ms-2" id="bd-theme-text">Toggle theme</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme-text">
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false">
|
||||
<i class="bi bi-sun-fill"></i>
|
||||
Light
|
||||
<i class="bi bi-check2 d-none" aria-hidden="true"></i>
|
||||
<span class="fa fa-sun" aria-hidden="true"></span>
|
||||
<span class="ms-2">Light</span>
|
||||
<span class="fa fa-check d-none ms-auto" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false">
|
||||
<i class="bi bi-moon-stars-fill"></i>
|
||||
Dark
|
||||
<i class="bi bi-check2 d-none" aria-hidden="true"></i>
|
||||
<span class="fa fa-moon" aria-hidden="true"></span>
|
||||
<span class="ms-2">Dark</span>
|
||||
<span class="fa fa-check d-none ms-auto" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true">
|
||||
<i class="bi bi-circle-half"></i>
|
||||
Auto
|
||||
<i class="bi bi-check2 d-none" aria-hidden="true"></i>
|
||||
<span class="fa fa-adjust" aria-hidden="true"></span>
|
||||
<span class="ms-2">Auto</span>
|
||||
<span class="fa fa-check ms-auto" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user