From a7d5abf456235259c297026b8861b1cc9719b252 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Briseno <94071409+dgarciabriseno@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:43:04 -0500 Subject: [PATCH] Fix empty links (again) (#423) * Revert "Fix empty links (#422)" This reverts commit 3929160594c6f7315488240cc077be1bc0ab9fed. * Add sr-only text to empty links --- index.php | 17 ++--------------- resources/css/helioviewer-base.css | 6 +++++- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index 0757473b7..834988307 100644 --- a/index.php +++ b/index.php @@ -6,19 +6,6 @@ embed minimal */ - - function url(){ - $url = sprintf( - "%s://%s", - isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http', - $_SERVER['SERVER_NAME'] - ); - // Deal with localhost nonstandard ports - if ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) { - $url .= ":".$_SERVER['SERVER_PORT']; - } - return $url; - } $hv_output = getenv('HV_OUTPUT'); $outputType = false; @@ -511,7 +498,7 @@ function url(){
@@ -634,7 +621,7 @@ function url(){