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> <td>
<?php <?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; ?> echo $bild; ?>
<?php <?php
if ($row->aktueller_verein_id == null) if ($row->aktueller_verein_id == null)
@@ -17,22 +17,22 @@ function htmlentities_noquotes_utf8($s) {
function addOnLoad($function) { function addOnLoad($function) {
?> ?>
<script language="JavaScript"> <script language="JavaScript">
function addLoadEvent(func) { function addLoadEvent(func) {
var oldonload = window.onload; var oldonload = window.onload;
if (typeof window.onload != 'function') { if (typeof window.onload != 'function') {
window.onload = func; window.onload = func;
}
else {
window.onload = function () {
if (oldonload) {
oldonload();
}
func();
}
}
} }
else {
window.onload = function () {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function () {<?php echo $function; ?>}); addLoadEvent(function () {<?php echo $function; ?>});
</script> </script>
<?php <?php
} }
@@ -227,7 +227,7 @@ function bildIdentisch($typ1, $id1, $typ2, $id2) {
} }
function teamImage($teamId, $vereinId, $width = 240, $height = 240) { function teamImage($teamId, $vereinId, $width = 240, $height = 240) {
$url = bildURL("mannschaften", $teamId, 0, 0, $width, $height); $url = bildURL("mannschaften", $teamId, 0, 0, $width, $height);
if ($url == null) { if ($url == null) {
$url = bildURL("vereine", $vereinId, 0, 0, $width, $height); $url = bildURL("vereine", $vereinId, 0, 0, $width, $height);
@@ -237,9 +237,9 @@ function teamImage($teamId, $vereinId, $width = 240, $height = 240) {
} }
function playerImage($playerId, $gender, $width = 180, $height = 240) { function playerImage($playerId, $gender, $width = 180, $height = 240) {
$url = bildURL("spieler", $playerId, $width, $height, 0,0,'', $gender == 'M' ? 'm' : 'w'); $url = bildURL("spieler", $playerId, $width, $height, 0,0,'', $gender == 'M' ? 'm' : 'w');
if ($url == null) { if ($url == null) {
$url = bildURL("mannschaftsmitglieder", $playerId, $width, $height, 0,0,''); $url = bildURL("mannschaftsmitglieder", $playerId, $width, $height, 0,0,'');
} }
return $url; return $url;
@@ -350,7 +350,7 @@ function bildURL($typ, $id, $fixed_width = 0, $fixed_height = 0, $max_width = 0,
#crop=250,250,left #crop=250,250,left
#crop=250,250,right #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_path;
global $sportsmanager_joomla_url; 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; $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 = "") { 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_exploded = explode("/", $typ);
$typ = $typ_exploded[0]; $typ = $typ_exploded[0];
$typ_prefix = count($typ_exploded) > 1 ? $typ_exploded[1] : ""; $typ_prefix = count($typ_exploded) > 1 ? $typ_exploded[1] : "";
@@ -525,22 +528,22 @@ function lightBoxHeader($lightbox_class = "lightbox") {
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
//<!-- //<!--
function show<?php echo $lightbox_class; ?>() { function show<?php echo $lightbox_class; ?>() {
document.getElementById("<?php echo $lightbox_class; ?>").style.display = "inline"; document.getElementById("<?php echo $lightbox_class; ?>").style.display = "inline";
document.getElementById("<?php echo $lightbox_class; ?>").style.visibility = "visible"; document.getElementById("<?php echo $lightbox_class; ?>").style.visibility = "visible";
document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.display = "inline"; document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.display = "inline";
document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.visibility = "visible"; document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.visibility = "visible";
} }
function hide<?php echo $lightbox_class; ?>() { function hide<?php echo $lightbox_class; ?>() {
document.getElementById("<?php echo $lightbox_class; ?>").style.display = "none"; document.getElementById("<?php echo $lightbox_class; ?>").style.display = "none";
document.getElementById("<?php echo $lightbox_class; ?>").style.visibility = "hidden"; document.getElementById("<?php echo $lightbox_class; ?>").style.visibility = "hidden";
document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.display = "none"; document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.display = "none";
document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.visibility = "hidden"; document.getElementById("<?php echo $lightbox_class . "_close"; ?>").style.visibility = "hidden";
} }
//--> //-->
</script> </script>
<?php <?php
} }