Fix some missing traductions in the single

This commit is contained in:
Gilles Van Assche 2025-09-25 11:59:36 +02:00
parent 07d3a1e84e
commit 5f502c81a7

View File

@ -50,6 +50,21 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
<h1><?php the_title(); ?></h1>
<?php the_post_thumbnail();?>
<div class="barre"></div>
<?php if (ICL_LANGUAGE_CODE == 'en'): ?>
<p class="auteur">Writing : <?php echo get_the_author();?></p>
<p class="tempsDeLecture">Allow 
<?php
if(!empty(get_field('temps_de_lecture'))):
echo get_field('temps_de_lecture');
else:
?>
<span class="eta"></span> 
<?php
endif;
?>
minutes to read this article :)
</p>
<?php else: ?>
<p class="auteur">Rédaction : <?php echo get_the_author();?></p>
<p class="tempsDeLecture">Comptez 
<?php
@ -63,6 +78,7 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
?>
minutes pour lire cet article :)
</p>
<?php endif; ?>
<div class="contenu"><?php the_content(); ?></div>
</div>
<div class="col-lg-4 sidebar">
@ -72,7 +88,11 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
if( have_rows('sujet_en_lien') ):
// loop through the rows of data
?>
<?php if (ICL_LANGUAGE_CODE == 'en'): ?>
<?php else: ?>
<h2 class="sujets">Sujets en relation avec cet article</h2>
<?php endif; ?>
<?php
while ( have_rows('sujet_en_lien') ) : the_row();
// display a sub field value
@ -125,7 +145,11 @@ $wpseo_primary_term = new WPSEO_Primary_Term( 'category', get_the_id() );
?>
<div class="crawler"></div>
<div class="domaineBloc">
<?php if (ICL_LANGUAGE_CODE == 'en'): ?>
<h2 class="domaines">What we do</h2>
<?php else: ?>
<h2 class="domaines">Nos domaines dactivité</h2>
<?php endif; ?>
<?php
wp_nav_menu( array(
'menu' => 'domaines - beta',