Skip to content
Snippets Groups Projects
Commit 7f7b53dd authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #16523 [fid_adlr] display only fid-medien link

* set regex
parent 149ada63
Branches
Tags
No related merge requests found
......@@ -7,10 +7,12 @@
<?php $maxDisplayLength = 50; ?>
<?php if (!empty($urls)): ?>
<?php foreach ($urls as $current): ?>
<?php if (preg_match_all('/fid\-medien/', $current['url'])): ?>
<a href="<?= $this->escapeHtmlAttr($this->proxyUrl($current['url'])) ?>" target="_blank"><i
class="icon icon-external-link" aria-hidden="true"></i>
<?= $this->truncate($this->escapeHtml($current['desc']), $maxDisplayLength) ?>
</a><br/>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php /* finc-specific snippet - #9274 - replaces if ($openUrlActive): ... - CK */ ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment