From 8412968cead2b820484e8366bc54451cfada4dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Nu=CC=88bel?= Date: Fri, 19 Feb 2021 16:45:35 +0100 Subject: [PATCH] revert tools --- .../views/sportsmanager/view_tools.php | 110 ++++++------------ 1 file changed, 33 insertions(+), 77 deletions(-) diff --git a/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php b/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php index f582203..81c2765 100644 --- a/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php +++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php @@ -17,22 +17,22 @@ function htmlentities_noquotes_utf8($s) { function addOnLoad($function) { ?> 1 ? $typ_exploded[1] : ""; - $pfad = $sportsmanager_joomla_path . "/images/sportsmanager/" . $typ . "/" . $typ_prefix . $id . "."; - - if (is_file($pfad . "png")) - $ext = "png"; - else if (is_file($pfad . "jpg")) - $ext = "jpg"; - else if (!empty($alternativ)) { - $id = $alternativ; - $pfad = $sportsmanager_joomla_path . "/images/sportsmanager/" . $typ . "/" . $typ_prefix . $id . "."; - if (is_file($pfad . "png")) - $ext = "png"; - else if (is_file($pfad . "jpg")) - $ext = "jpg"; - else - return null; - } - else - return null; - - $time = filemtime($pfad . $ext); - - $bildpfad = "images/sportsmanager/" . $typ . "/" . $typ_prefix . $id . "." . $ext; - - - return ''; -} - -function bildHTML($typ, $id, $fixed_width = 0, $fixed_height = 0, $max_width = 0, $max_height = 0, $zusatz = "", $alternativ = "") { $typ_exploded = explode("/", $typ); $typ = $typ_exploded[0]; $typ_prefix = count($typ_exploded) > 1 ? $typ_exploded[1] : ""; @@ -525,22 +481,22 @@ function lightBoxHeader($lightbox_class = "lightbox") {