Skip to content
Snippets Groups Projects
Commit 0ec03ae3 authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #20869 [finc] adding missing external link view helper in finc templates

* encapsulate shorthand if correctly
parent 8a6760dc
No related merge requests found
......@@ -181,8 +181,13 @@ $thumbnailAlignment = $this->record($this->driver)->getThumbnailAlignment('list'
}
if (!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?>
</a>
<?= $this->externalLink(
$this->escapeHtmlAttr($this->proxyUrl($current['url'])),
'<i class="fa fa-external-link" aria-hidden="true"></i>'
. ($current['url'] == $current['desc'] ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])),
['class' => 'fulltext'],
true
) ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
......
......@@ -160,10 +160,13 @@ $i = 0;
<?php if (!is_array($urls)) $urls = [];
if (!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new">
<i class="fa fa-external-link" aria-hidden="true"></i>
<?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?>
</a>
<?= $this->externalLink(
$this->escapeHtmlAttr($this->proxyUrl($current['url'])),
'<i class="fa fa-external-link" aria-hidden="true"></i>'
. ($current['url'] == $current['desc'] ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])),
['class' => 'fulltext'],
true
) ?>
<br/>
<?php endforeach; ?>
<?php endif; ?>
......
......@@ -171,10 +171,13 @@ if ($cover):
<?php if (!is_array($urls)) $urls = [];
if (!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new">
<i class="fa fa-external-link" aria-hidden="true"></i>
<?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?>
</a>
<?= $this->externalLink(
$this->escapeHtmlAttr($this->proxyUrl($current['url'])),
'<i class="fa fa-external-link" aria-hidden="true"></i>'
. ($current['url'] == $current['desc'] ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])),
['class' => 'fulltext'],
true
) ?>
<br/>
<?php endforeach; ?>
<?php endif; ?>
......
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