mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +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 . '"';
|
$href = 'data-toggle="collapse" data-parent="#accordion" href="#collapse' . $uid . '"';
|
||||||
if (!empty($value->href)) {
|
if (!empty($value->href)) {
|
||||||
$href = 'href="' . $global['webSiteRootURL'] . 'admin/?page=' . $value->href . '"';
|
$href = 'href="' . $global['webSiteRootURL'] . 'admin/?page=' . $value->href . '"';
|
||||||
|
$href .= ' id="page_' . $value->href . '"';
|
||||||
}
|
}
|
||||||
if (!empty($_REQUEST['page']) && $_REQUEST['page'] == $value->href) {
|
if (!empty($_REQUEST['page']) && $_REQUEST['page'] == $value->href) {
|
||||||
$panel = 'panel-primary';
|
$panel = 'panel-primary';
|
||||||
|
@ -379,4 +380,4 @@ if (!empty($includeHead) && file_exists($includeHead)) {
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
$_page->print();
|
$_page->print();
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -303,7 +303,7 @@ $tToleranceSide = 0.2;
|
||||||
<strong class="text-danger hideIfCompressed"><?php echo __("Admin Menu"); ?></strong>
|
<strong class="text-danger hideIfCompressed"><?php echo __("Admin Menu"); ?></strong>
|
||||||
<ul class="nav navbar" style="margin-bottom: 10px;">
|
<ul class="nav navbar" style="margin-bottom: 10px;">
|
||||||
<li>
|
<li>
|
||||||
<a href="#" onclick="avideoModalIframeFull(webSiteRootURL + 'admin/');
|
<a id="adminPanelLink" href="#" onclick="avideoModalIframeFull(webSiteRootURL + 'admin/');
|
||||||
return false;">
|
return false;">
|
||||||
<i class="fas fa-star"></i>
|
<i class="fas fa-star"></i>
|
||||||
<span class="menuLabel">
|
<span class="menuLabel">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue