Skip to content
Snippets Groups Projects
Commit 244d00ed authored by David Siegfried's avatar David Siegfried
Browse files

prevent php8-warnings, closes #2612

Closes #2612

Merge request studip/studip!1762
parent fd50b7a4
No related branches found
No related tags found
No related merge requests found
<div style="font-size: 12px;"> <div style="font-size: 12px;">
<p style="font-weight: bold;"><?= _('Verweissensitive Grafik') . ': ' ?></p> <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 style="font-style: italic; font-size: 10px;"><?= _('Hinweis: Positionen der Verweise können nicht dargestellt werden.')?></p>
<p> <p>
<? if ($files[0]): ?> <? if (isset($files[0])): ?>
<img src="<?= htmlReady($files[0]->getDownloadURL()); ?>"> <img src="<?= htmlReady($files[0]->getDownloadURL()); ?>" alt="<?= htmlReady($files[0]->name) ?>">
<span style="font-style:italic"><?= htmlReady($files[0]->name); ?></span> <span style="font-style:italic"><?= htmlReady($files[0]->name) ?></span>
<? endif; ?> <? endif ?>
</p> </p>
<p><?= _('Verweise'). ': ' ?></p> <? if (!empty($payload['shapes'])) : ?>
<ul> <p><?= _('Verweise') ?>: </p>
<? foreach($payload['shapes'] as $shape): ?> <ul>
<li> <? foreach($payload['shapes'] as $shape): ?>
<?= htmlReady($shape['title']); ?>,<?= htmlReady($shape['data']['text']); ?><? if ($shape['link_type'] === 'external'): ?>, <li>
<a href="<?= htmlReady($shape['target_external']); ?>"><?= htmlReady($shape['target_external']); ?></a> <?= htmlReady($shape['title']) ?>,<?= htmlReady($shape['data']['text']) ?><? if ($shape['link_type'] === 'external'): ?>,
<? endif; ?> <a href="<?= htmlReady($shape['target_external']); ?>"><?= htmlReady($shape['target_external']) ?></a>
</li> <? endif ?>
<? endforeach; ?> </li>
</ul> <? endforeach ?>
</div> </ul>
\ No newline at end of file <? endif ?>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment