mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
fix: display disciplines under each other in admin and public tournament view
This commit is contained in:
@@ -444,7 +444,14 @@ static function turniere($turniere): void
|
|||||||
if (!empty($turnier->disziplinen)) {
|
if (!empty($turnier->disziplinen)) {
|
||||||
?>
|
?>
|
||||||
<br/>
|
<br/>
|
||||||
<small><?php echo $turnier->disziplinen; ?></small>
|
<small>
|
||||||
|
<?php
|
||||||
|
$parts = preg_split('/,(?![^()]*\))/m', $turnier->disziplinen);
|
||||||
|
$parts = array_map('trim', $parts); // remove extra spaces
|
||||||
|
foreach ($parts as $discipline) {
|
||||||
|
echo $discipline . "<br>";
|
||||||
|
} ?>
|
||||||
|
</small>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -374,7 +374,16 @@ class HTML_sportsmanager_admin
|
|||||||
echo htmlentities_utf8($row->turnierbezeichnung);
|
echo htmlentities_utf8($row->turnierbezeichnung);
|
||||||
if (!empty($row->disziplinen)) {
|
if (!empty($row->disziplinen)) {
|
||||||
?>
|
?>
|
||||||
<br/><small><?php echo $row->disziplinen; ?></small>
|
<br/>
|
||||||
|
<small>
|
||||||
|
<?php
|
||||||
|
$parts = preg_split('/,(?![^()]*\))/m', $row->disziplinen);
|
||||||
|
$parts = array_map('trim', $parts); // remove extra spaces
|
||||||
|
foreach ($parts as $discipline) {
|
||||||
|
echo $discipline . "<br>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</small>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user