Skip to content
Snippets Groups Projects
Commit 9bc8e30f authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

BIEST #723

Merge request studip/studip!853
parent fca7f5cf
No related branches found
No related tags found
No related merge requests found
<div style="font-size: 12px;">
<p style="font-weight: bold;"><?= _('Verweissensitive Grafik') . ': ' ?></p>
<p style="font-style: italic; font-size: 10px;"><?= _('Hinweis: Positionen der Verweise können nicht dargestellt werden.')?></p>
<p>
<? if ($files[0]): ?>
<img src="<?= htmlReady($files[0]->getDownloadURL()); ?>">
<span style="font-style:italic"><?= htmlReady($files[0]->name); ?></span>
<? endif; ?>
</p>
<p><?= _('Verweise'). ': ' ?></p>
<ul>
<? foreach($payload['shapes'] as $shape): ?>
<li>
<?= htmlReady($shape['title']); ?>,<?= htmlReady($shape['data']['text']); ?><? if ($shape['link_type'] === 'external'): ?>,
<a href="<?= htmlReady($shape['target_external']); ?>"><?= htmlReady($shape['target_external']); ?></a>
<? endif; ?>
</li>
<? endforeach; ?>
</ul>
</div>
\ No newline at end of file
<h5><?= sprintf(_('Block-Typ: %s'), htmlReady($title)) ?></h5>
<p><?= htmlReady($payload['text']) ?></p>
<h5><?= sprintf(_('Block-Typ: %s'), htmlReady($title)) ?></h5>
<p><?= htmlReady($payload['title']) ?></p>
<p><?= htmlReady($payload['url']) ?></p>
<div style="font-size: 12px;">
<p style="font-weight: bold;"><?= _('Link') . ': ' ?></p>
<p>
<?= _('Titel') . ' => ' . htmlReady($payload['title']) ?>,
<?= _('URL') . '=>' ?> <a href="<?= htmlReady($payload['url']) ?>"><?= htmlReady($payload['url']) ?></a>
</p>
</div>
\ No newline at end of file
<h5><?= sprintf(_('Block-Typ: %s'), htmlReady($title)) ?></h5>
<div style="font-size: 12px;">
<?= formatReady($payload['text']) ?>
</div>
<h5><?= sprintf(_('Block-Typ: %s'), htmlReady($title)) ?></h5>
<p><?= htmlReady($payload['text']) ?></p>
\ No newline at end of file
<div style="font-size: 12px;">
<p style="font-weight: bold;"><?= _('Video') . ': ' ?></p>
<p>
<?= htmlReady($payload['title']); ?>,
<? if ($files[0]): ?>
<a href="<?= htmlReady($files[0]->getDownloadURL()) ?>"><?= htmlReady($files[0]->name); ?></a>
<? endif; ?>
</p>
</div>
\ No newline at end of file
<h3><?= sprintf(_('Container-Typ: %s'), htmlReady($title)) ?></h3>
<? foreach ($payload['sections'] as $section): ?>
<h4><?= htmlReady($section['name']) ?></h4>
<? foreach ($section['blocks'] as $block_id): ?>
......@@ -8,8 +7,6 @@
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
<? endif; ?>
<? else: ?>
<p><?= _('Block konnte nicht gefunden werden') ?></p>
<? endif; ?>
<? endforeach ?>
<? endforeach ?>
<h3><?= sprintf(_('Container-Typ: %s'), htmlReady($title)) ?></h3>
<? foreach ($payload['sections'][0]['blocks'] as $block_id): ?>
<? $block = $container->blocks->find($block_id); ?>
<? if ($block): ?>
......@@ -6,7 +5,5 @@
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
<? endif; ?>
<? else: ?>
<p><?= _('Block konnte nicht gefunden werden') ?></p>
<? endif; ?>
<? endforeach ?>
<h3><?= sprintf(_('Container-Typ: %s'), htmlReady($title)) ?></h3>
<? foreach ($payload['sections'] as $section): ?>
<h4><?= htmlReady($section['name']) ?></h4>
<? foreach ($section['blocks'] as $block_id): ?>
......@@ -8,8 +7,6 @@
<? if ($block_html_template): ?>
<?= $block_html_template->render(); ?>
<? endif; ?>
<? else: ?>
<p><?= _('Block konnte nicht gefunden werden') ?></p>
<? endif; ?>
<? endforeach ?>
<? endforeach; ?>
<? endforeach ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment