aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2024-08-23 12:56:11 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2024-08-30 14:41:23 +0200
commitfb39f6bdd573bfa0df9cbdbe44f18dfbc0447200 (patch)
tree2f7e2924b74c987c7a0f5f519a3a8cbdb95fa600 /templates
parent4525bd668f35ce4ca674de389bd67523d4d32f2a (diff)
Courseware: PDF-Export exportiert "unsichtbare" Blöcke
Closes #3726 Merge request studip/studip!3316
Diffstat (limited to 'templates')
-rw-r--r--templates/courseware/container_types/accordion_container.php2
-rw-r--r--templates/courseware/container_types/list_container.php2
-rw-r--r--templates/courseware/container_types/tabs_container.php2
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 cbe35f7..2c352e8 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 efe8e95..a54b058 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 24879f5..6772026 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(); ?>