From 5029f8e0119657c954fb06bf3adca4cf21a09ada Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Fri, 23 Aug 2024 12:56:11 +0000 Subject: [PATCH] =?UTF-8?q?Courseware:=20PDF-Export=20exportiert=20"unsich?= =?UTF-8?q?tbare"=20Bl=C3=B6cke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3726 Merge request studip/studip!3316 --- templates/courseware/container_types/accordion_container.php | 2 +- templates/courseware/container_types/list_container.php | 2 +- templates/courseware/container_types/tabs_container.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/courseware/container_types/accordion_container.php b/templates/courseware/container_types/accordion_container.php index cbe35f70c4e..2c352e8c611 100644 --- a/templates/courseware/container_types/accordion_container.php +++ b/templates/courseware/container_types/accordion_container.php @@ -2,7 +2,7 @@ <h4><?= htmlReady($section['name']) ?></h4> <? foreach ($section['blocks'] as $block_id): ?> <? $block = $container->blocks->find($block_id); ?> - <? if ($block): ?> + <? if ($block && $block->visible): ?> <? $block_html_template = $block->type->getPdfHtmlTemplate(); ?> <? if ($block_html_template): ?> <?= $block_html_template->render(); ?> diff --git a/templates/courseware/container_types/list_container.php b/templates/courseware/container_types/list_container.php index efe8e952696..a54b058b31a 100644 --- a/templates/courseware/container_types/list_container.php +++ b/templates/courseware/container_types/list_container.php @@ -1,6 +1,6 @@ <? foreach ($payload['sections'][0]['blocks'] as $block_id): ?> <? $block = $container->blocks->find($block_id); ?> - <? if ($block): ?> + <? if ($block && $block->visible): ?> <? $block_html_template = $block->type->getPdfHtmlTemplate(); ?> <? if ($block_html_template): ?> <?= $block_html_template->render(); ?> diff --git a/templates/courseware/container_types/tabs_container.php b/templates/courseware/container_types/tabs_container.php index 24879f598a4..6772026f51f 100644 --- a/templates/courseware/container_types/tabs_container.php +++ b/templates/courseware/container_types/tabs_container.php @@ -2,7 +2,7 @@ <h4><?= htmlReady($section['name']) ?></h4> <? foreach ($section['blocks'] as $block_id): ?> <? $block = $container->blocks->find($block_id); ?> - <? if ($block): ?> + <? if ($block && $block->visible): ?> <? $block_html_template = $block->type->getPdfHtmlTemplate(); ?> <? if ($block_html_template): ?> <?= $block_html_template->render(); ?> -- GitLab