From 4b15aa67eeec9e48c169da7c2910e9df4203682a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Nu=CC=88bel?= Date: Fri, 19 Feb 2021 16:54:05 +0100 Subject: [PATCH] fix yootheme images --- .../com_sportsmanager/views/sportsmanager/view.html.php | 2 +- .../com_sportsmanager/views/sportsmanager/view_tools.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php b/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php index 4a1da67..ebb1a0a 100644 --- a/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php +++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php @@ -6980,7 +6980,7 @@ global $params; bild_ausblenden ? '' : $row->spieler_id, 'crop=50,50', 'border="1" align="left" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null) + if (($bild = yoothemeBild("spieler", !$details_anzeigen && $row->bild_ausblenden ? '' : $row->spieler_id, '#resize=75', 'border="1" align="left" hspace="8" vspace="2"', $row->geschlecht == 'M' ? 'm' : 'w')) != null) echo $bild; ?> aktueller_verein_id == null) 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 6be5825..1442897 100644 --- a/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php +++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php @@ -350,7 +350,7 @@ function bildURL($typ, $id, $fixed_width = 0, $fixed_height = 0, $max_width = 0, #crop=250,250,left #crop=250,250,right */ -function yoothemeBild($typ, $id, $crop = 'resize=250', $zusatz = "", $alternativ) +function yoothemeBild($typ, $id, $resize = '', $zusatz = "", $alternativ) { global $sportsmanager_joomla_path; global $sportsmanager_joomla_url; @@ -382,7 +382,7 @@ function yoothemeBild($typ, $id, $crop = 'resize=250', $zusatz = "", $alternativ $bildpfad = "images/sportsmanager/" . $typ . "/" . $typ_prefix . $id . "." . $ext; - return ''; + return ''; } function bildHTML($typ, $id, $fixed_width = 0, $fixed_height = 0, $max_width = 0, $max_height = 0, $zusatz = "", $alternativ = "") {