This commit is contained in:
Daniel Goerlich
2021-03-02 17:32:41 +01:00
2 changed files with 37 additions and 34 deletions
@@ -6980,7 +6980,7 @@ global $params;
<td>
<?php
if (($bild = yoothemeBild("spieler", !$details_anzeigen && $row->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; ?>
<?php
if ($row->aktueller_verein_id == null)
@@ -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,10 +382,13 @@ function yoothemeBild($typ, $id, $crop = 'resize=250', $zusatz = "", $alternativ
$bildpfad = "images/sportsmanager/" . $typ . "/" . $typ_prefix . $id . "." . $ext;
return '<img class="el-image" data-src="' . $bildpfad . '#' . $crop . '" ' . $zusatz . ' uk-img />';
return '<img class="el-image" data-src="' . $bildpfad . $resize . '" ' . $zusatz . ' uk-img />';
}
function bildHTML($typ, $id, $fixed_width = 0, $fixed_height = 0, $max_width = 0, $max_height = 0, $zusatz = "", $alternativ = "") {
global $sportsmanager_joomla_path;
global $sportsmanager_joomla_url;
$typ_exploded = explode("/", $typ);
$typ = $typ_exploded[0];
$typ_prefix = count($typ_exploded) > 1 ? $typ_exploded[1] : "";