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 3b1b61e..88f71eb 100644
--- a/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php
+++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view.html.php
@@ -2242,12 +2242,12 @@ global $params;
?>
team_id, 28, 28, 0, 0, 'border="0"');
+ $bild = bildHTML("mannschaften", $team->team_id, 50, 50, 0, 0, 'border="0"');
if ($bild != null) {
echo $bild;
}
else if ($team->verein_id != null) {
- $bild = yoothemeBild("vereine", $team->verein_id, 28, 28, 0, 0, 'border="0"');
+ $bild = bildHTML("vereine", $team->verein_id, 50, 28, 0, 0, 'border="0"');
if ($bild != null)
echo $bild;
}
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 1442897..3c8d71e 100644
--- a/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php
+++ b/src/structure/components/com_sportsmanager/views/sportsmanager/view_tools.php
@@ -385,6 +385,45 @@ function yoothemeBild($typ, $id, $resize = '', $zusatz = "", $alternativ)
return ' ';
}
+/*
+Quick and dirty DTFL Logo Bilder
+*/
+
+function logoBilder($typ, $id, $resize = '', $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] : "";
+ $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 = "") {
global $sportsmanager_joomla_path;
global $sportsmanager_joomla_url;
|