Merge pull request #341 from bachandi/mainmenubutton

Add config option to show a main menu button.
This commit is contained in:
Jordi Sanfeliu 2021-08-26 17:46:58 +02:00 committed by GitHub
commit de6d9e19c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -499,6 +499,10 @@ EOF
push(@output, " <table class='cgi-header-table' >\n");
push(@output, " <tr>\n");
if(lc($config{enable_mainmenu_button} || "") eq "y") {
push(@output, " <span style='color:#888888;position:fixed;left:3em;font-size:32px;letter-spacing:-1px;'><a href='" . $config{url} . "/index.html' style='text-decoration:none;'>&#8962;</a>\n");
}
if(lc($config{enable_back_button} || "") eq "y") {
push(@output, " <span style='color:#888888;position:fixed;left:1em;font-size:32px;letter-spacing:-1px;'><a href='javascript:history.back()' style='text-decoration:none;'>&#9664;</a>\n");
}