1
0
Fork 0
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:
Daniel Neto 2025-07-05 16:09:16 -03:00
parent 9cf18bde1b
commit 410dc349ca
2 changed files with 3 additions and 2 deletions

View file

@ -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';
@ -379,4 +380,4 @@ if (!empty($includeHead) && file_exists($includeHead)) {
</script>
<?php
$_page->print();
?>
?>

View file

@ -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">