Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Resources/contao/templates/mm_attr_file.html5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php if (is_array($this->src)): ?>
<?php if (\is_array($this->src)): ?>
<ul class="file<?= $this->additional_class ?>">
<?php foreach ($this->src as $arrFile):
$title =
Expand All @@ -12,7 +12,7 @@

<?php if ($this->settings->get('file_showLink')): ?>
<?php if ($this->settings->get('file_showImage')): ?>
<a class="cboxElement" data-lightbox="<?= $arrFile['lb'] ?>" title="<?= $title ?>"
<a class="cboxElement" data-lightbox="<?= $arrFile['lb'] ?? '' ?>" title="<?= $title ?>"
href="<?= $arrFile['imageUrl'] ?>">
<?php else: ?>
<a title="<?= $title ?>" href="<?= $arrFile['url'] ?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<?php if ($this->settings->get('file_showLink')): ?>
<?php if ($this->settings->get('file_showImage')): ?>
<a class="cboxElement" data-lightbox="<?= $arrFile['lb'] ?>" title="<?= $arrFile['alt'] ?>"
<a class="cboxElement" data-lightbox="<?= $arrFile['lb'] ?? '' ?>" title="<?= $arrFile['alt'] ?>"
href="<?= $arrFile['imageUrl'] ?>">
<?php else: ?>
<a title="<?= $arrFile['alt'] ?>" href="<?= $arrFile['url'] ?>">
Expand Down