mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Add ID attribute to admin panel link for improved accessibility
This commit is contained in:
parent
9cf18bde1b
commit
410dc349ca
2 changed files with 3 additions and 2 deletions
|
@ -251,6 +251,7 @@ if (!empty($includeHead) && file_exists($includeHead)) {
|
|||
$href = 'data-toggle="collapse" data-parent="#accordion" href="#collapse' . $uid . '"';
|
||||
if (!empty($value->href)) {
|
||||
$href = 'href="' . $global['webSiteRootURL'] . 'admin/?page=' . $value->href . '"';
|
||||
$href .= ' id="page_' . $value->href . '"';
|
||||
}
|
||||
if (!empty($_REQUEST['page']) && $_REQUEST['page'] == $value->href) {
|
||||
$panel = 'panel-primary';
|
||||
|
|
|
@ -303,7 +303,7 @@ $tToleranceSide = 0.2;
|
|||
<strong class="text-danger hideIfCompressed"><?php echo __("Admin Menu"); ?></strong>
|
||||
<ul class="nav navbar" style="margin-bottom: 10px;">
|
||||
<li>
|
||||
<a href="#" onclick="avideoModalIframeFull(webSiteRootURL + 'admin/');
|
||||
<a id="adminPanelLink" href="#" onclick="avideoModalIframeFull(webSiteRootURL + 'admin/');
|
||||
return false;">
|
||||
<i class="fas fa-star"></i>
|
||||
<span class="menuLabel">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue