adding alt infiormation on link icon

This commit is contained in:
Antoine M 2024-04-02 16:40:59 +02:00
parent d019a60d50
commit 103be02310

View File

@ -25,7 +25,7 @@ $renolution_datas = get_field('renolution_datas');
<p class="question_explanation"><?php echo $renolution_datas['demande_description'] ?></p> <p class="question_explanation"><?php echo $renolution_datas['demande_description'] ?></p>
<a class="question_url" href="<?php echo $renolution_datas['demande_lien']['url'] ?>" target="<?php echo $renolution_datas['demande_lien']['target'] ?>"> <a class="question_url" href="<?php echo $renolution_datas['demande_lien']['url'] ?>" target="<?php echo $renolution_datas['demande_lien']['target'] ?>">
<?php echo $renolution_datas['demande_lien']['title'] ?> <?php echo $renolution_datas['demande_lien']['title'] ?>
<img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt=''> <img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt="<?php echo __("(s'ouvre dans une nouvelle fenêtre)", "homegrade-theme__texte-fonctionnel") ?>">
</a> </a>
</div> </div>
@ -35,7 +35,7 @@ $renolution_datas = get_field('renolution_datas');
<p class="question_explanation"><?php echo $renolution_datas['prime_description'] ?></p> <p class="question_explanation"><?php echo $renolution_datas['prime_description'] ?></p>
<a class="question_url" href="<?php echo $renolution_datas['prime_lien']['url'] ?>" target="<?php echo $renolution_datas['prime_lien']['target'] ?>"> <a class="question_url" href="<?php echo $renolution_datas['prime_lien']['url'] ?>" target="<?php echo $renolution_datas['prime_lien']['target'] ?>">
<?php echo $renolution_datas['prime_lien']['title'] ?> <?php echo $renolution_datas['prime_lien']['title'] ?>
<img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt=''> <img class="icon" src='<?php echo get_template_directory_uri() ?>/resources/img/graphic-assets/icone-external-link.svg' alt="<?php echo __("(s'ouvre dans une nouvelle fenêtre)", "homegrade-theme__texte-fonctionnel") ?>">
</a> </a>
</div> </div>