Skip to content

Commit

Permalink
Fix template indentation: Related/Similar/item.phtml (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Jan 14, 2025
1 parent d318776 commit 9f78f74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions themes/bootstrap3/templates/Related/Similar/item.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
$formats = $data->getFormats();
$format = $formats[0] ?? null;
$icon = $format
? preg_replace('/[^a-z0-9]/', '', strtolower($format))
: 'default';
? preg_replace('/[^a-z0-9]/', '', strtolower($format))
: 'default';

if ($format) {
$attrs['title'] = $format;
$attrs['title'] = $format;
}
?>
<a class="related__title" href="<?=$this->escapeHtmlAttr($this->recordLinker()->getUrl($data))?>">
Expand Down
6 changes: 3 additions & 3 deletions themes/bootstrap5/templates/Related/Similar/item.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
$formats = $data->getFormats();
$format = $formats[0] ?? null;
$icon = $format
? preg_replace('/[^a-z0-9]/', '', strtolower($format))
: 'default';
? preg_replace('/[^a-z0-9]/', '', strtolower($format))
: 'default';

if ($format) {
$attrs['title'] = $format;
$attrs['title'] = $format;
}
?>
<a class="related__title" href="<?=$this->escapeHtmlAttr($this->recordLinker()->getUrl($data))?>">
Expand Down

0 comments on commit 9f78f74

Please sign in to comment.