Skip to content

Commit

Permalink
#183 Bugfix target lien de menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-noel committed Sep 16, 2020
1 parent 3f8f341 commit 1a66778
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions menu-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<span class="opener"><?php echo $link[ 'title_link' ]; ?></span>
<?php echo $link[ 'submenu' ]; ?>
<?php else: ?>
<a href="<?php echo $link[ 'link' ]; ?>" target="<?php echo $link[ 'target_link' ]; ?>" <?php if ($link[ 'target_link' ] === '_blank'): ?> rel="noopener noreferrer" <?php endif; ?>>
<?php echo !empty($link['icon']) ? "<i class='{$link['icon']}' aria-hidden='true'></i> {$link[ 'title_link' ]}" : $link[ 'title_link' ]; ?>
<a href="<?php echo $link[ 'link' ]; ?>"<?php if ($link[ 'target_link' ]): ?> target="_blank" rel="noopener noreferrer" <?php endif; ?>>
<?php echo !empty($link['icon']) ? "<i class='{$link['icon']}' aria-hidden='true'></i> " : ''; ?><?php echo $link[ 'title_link' ]; ?>
</a>
<?php endif; ?>

Expand Down
4 changes: 2 additions & 2 deletions menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<span class="opener"><?php echo $link[ 'title_link' ]; ?></span>
<?php echo $link[ 'submenu' ]; ?>
<?php else: ?>
<a href="<?php echo $link[ 'link' ]; ?>" target="<?php echo $link[ 'target_link' ]; ?>" <?php if ($link[ 'target_link' ] === '_blank'): ?> rel="noopener noreferrer" <?php endif; ?>>
<?php echo !empty($link['icon']) ? "<i class='{$link['icon']}' aria-hidden='true'></i> {$link[ 'title_link' ]}" : $link[ 'title_link' ]; ?>
<a href="<?php echo $link[ 'link' ]; ?>"<?php if ($link[ 'target_link' ]): ?> target="_blank" rel="noopener noreferrer" <?php endif; ?>>
<?php echo !empty($link['icon']) ? "<i class='{$link['icon']}' aria-hidden='true'></i> " : ''; ?><?php echo $link[ 'title_link' ]; ?>
</a>
<?php endif; ?>

Expand Down

0 comments on commit 1a66778

Please sign in to comment.