11<div id="tl_buttons">
2- <a href="contao/main.php?do=Videohandbuch" class="header_back" title="<?=$this->backTitle; ?>" accesskey="b"
2+ <a href="contao/main.php?do=Videohandbuch" class="header_back" title="<?= $this->backTitle; ?>" accesskey="b"
33 onclick="Backend.getScrollOffset();">Zurück zur Kategorieübersicht</a>
44</div>
5- <h2 class="sub_headline"><?=$this->Kategoriename ?></h2>
5+ <h2 class="sub_headline"><?= $this->Kategoriename ?></h2>
66
77<div class="tl_listing_container" id="tl_contaoacademy">
88
99 <?php if (!$this->Videos): ?>
1010 <p>KEINE INHALTE VERFÜGBAR!</p>
1111 <?php else: ?>
1212
13- <h3>Bitte ein Video auswählen:</h3>
14- <ol class="ca-list">
15- <?php foreach ($this->Videos as $objVideo): ?>
16- <li class="ca-item video_<?= $objVideo->videoid ?>"">
17- <a data-lightbox="inline" data-videoid="<?= $objVideo->videoid ?>"
18- class="video-open"
19- href="#vimeo_<?= $objVideo->videoid ?>"><?=$objVideo->headline ?>
20- (<span><?=$objVideo->dauer ?> min</span>)</a>
21- <div style="display: none;">
22- <div class="modal-popup" id="vimeo_<?= $objVideo->videoid ?>">
23- <h3><?=$objVideo->headline ?></h3>
24- <div class='embed-container'>
25- <?php //Platzhalter iframe ?>
26- </div>
13+ <h3>Bitte ein Video auswählen:</h3>
14+ <ol class="ca-list">
15+ <?php foreach ($this->Videos as $objVideo): ?>
16+ <li class="ca-item video_<?= $objVideo->videoid ?>"">
17+ <a data-lightbox="inline" data-videoid="<?= $objVideo->videoid ?>"
18+ class="video-open"
19+ href="#vimeo_<?= $objVideo->videoid ?>"><?= $objVideo->headline ?>
20+ (<span><?= $objVideo->dauer ?> min</span>)</a>
21+ <div style="display: none;">
22+ <div class="modal-popup" id="vimeo_<?= $objVideo->videoid ?>">
23+ <h3><?= $objVideo->headline ?></h3>
24+ <div class='embed-container'>
25+ <?php //Platzhalter iframe ?>
26+ </div>
2727
28- <?php if ($objVideo->content): ?>
29- <div class="ca_content">
30- <?php foreach ($objVideo->content as $objContent): ?>
31- <div class="ca_text">
32- <h3><?=$objContent->headline ?></h3>
33- <?=base64_decode($objContent->text) ?>
34- </div>
35- <?php endforeach; ?>
28+ <?php if ($objVideo->content): ?>
29+ <div class="ca_content">
30+ <?php foreach ($objVideo->content as $objContent): ?>
31+ <?php $txtOutput = base64_decode($objContent->text) ?>
32+ <?php $internalLink = preg_match('{{news_url::\d*}}', $txtOutput); ?>
33+ <?php if ($internalLink == 1): ?>
34+ <?php $txtOutput = strip_tags($txtOutput, '<p>'); ?>
35+ <?php endif; ?>
36+ <div class="ca_text">
37+ <h3><?= $objContent->headline ?></h3>
38+ <?= $txtOutput; ?>
3639 </div>
37- <?php endif ; ?>
40+ <?php endforeach ; ?>
3841 </div>
39- </div>
40- </li>
41- <?php endforeach; ?>
42- </ol>
43- <?php endif; ?>
42+ <?php endif; ?>
43+ </div>
44+ </div>
45+ </li>
46+ <?php endforeach; ?>
47+ </ol>
48+ <?php endif; ?>
0 commit comments