From b7ba297ae69e22c8c69f85f7e09b671b3e604841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20David?= Date: Mon, 18 Nov 2024 17:06:57 +0100 Subject: [PATCH] =?UTF-8?q?Tohle=20asi=20n=C4=9Bco=20rozbije=20(=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/Schedule/detail.latte | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/Modules/Fof/DefaultModule/templates/Schedule/detail.latte b/app/Modules/Fof/DefaultModule/templates/Schedule/detail.latte index 85e1ca3b..d28ff198 100644 --- a/app/Modules/Fof/DefaultModule/templates/Schedule/detail.latte +++ b/app/Modules/Fof/DefaultModule/templates/Schedule/detail.latte @@ -106,9 +106,10 @@

{$group['name'][$lang]}

{var $itemsToSkip = [1]} + {var $competitionDetail = 661} {foreach $group['items'] as $item} - {if !in_array($item['itemId'], $itemsToSkip)} + {if !in_array($item['itemId'], $itemsToSkip)}{if $item['itemId'] != $competitionDetail}
{if !($group['name'][$lang] == $item['name'][$lang])}
@@ -119,7 +120,20 @@ {$item['longDescription'][$lang]??$item['description'][$lang]|noescape}
- {/if} + {else} +
+ {if !($group['name'][$lang] == $item['name'][$lang])} +
+ {$item['name'][$lang]} +
+ {/if} +
+
+ {include '../competition_schedule.latte'} +
+
+
+ {/if}{/if} {/foreach} {php $key = $newKey} {/foreach}