seamless chantier metabox
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2024-12-10 12:15:23 +01:00
parent 43409893b3
commit abf3ecc992

View File

@ -110,6 +110,7 @@ function render_custom_chantier_box_content($post)
if ($chantiers->have_posts()) { if ($chantiers->have_posts()) {
echo '<h3> Chantiers réalisé par l\'entreprise </h3>';
echo '<ul>'; echo '<ul>';
while ($chantiers->have_posts()) { while ($chantiers->have_posts()) {
$chantiers->the_post(); $chantiers->the_post();
@ -118,6 +119,7 @@ function render_custom_chantier_box_content($post)
} }
echo '</ul>'; echo '</ul>';
} else { } else {
echo '<h3> Chantiers réalisé par l\'entreprise </h3>';
echo '<p style="font-size: 1rem;">Aucun chantier pour cette entreprise.</p>'; echo '<p style="font-size: 1rem;">Aucun chantier pour cette entreprise.</p>';
} }
} }