Skip to content

Commit

Permalink
imp: Allow to click on link title to open its URL
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Jul 28, 2023
1 parent 3aacd09 commit 0646a3d
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions src/views/links/show.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,32 @@

<div class="section">
<?php if ($link->image_filename): ?>
<img
class="section__image"
alt=""
src="<?= url_media('large', $link->image_filename) ?>"
/>
<a
target="_blank"
rel="noopener noreferrer"
href="<?= protect($link->url) ?>"
tabindex="-1"
>
<img
class="section__image"
alt="<?= protect($link->title) ?>"
src="<?= url_media('large', $link->image_filename) ?>"
/>
</a>
<?php endif; ?>

<div class="section__title">
<h1><?= protect($link->title) ?></h1>
<h1>
<a
class="anchor--hidden"
target="_blank"
rel="noopener noreferrer"
href="<?= protect($link->url) ?>"
tabindex="-1"
>
<?= protect($link->title) ?>
</a>
</h1>
</div>

<p class="section__intro">
Expand Down

0 comments on commit 0646a3d

Please sign in to comment.