adding ajouter un chantier in any case even if already have chantiers

This commit is contained in:
Antoine M 2025-04-03 12:29:07 +02:00
parent 5125ad8032
commit 086163521e

View File

@ -125,6 +125,7 @@ function render_custom_chantier_box_content($post)
echo '<li><a href="' . get_edit_post_link() . '"> <img src=' . get_stylesheet_directory_uri() . '/resources/img/icons/document-inspect.svg' . ' /> ' . $chantier_name . '</a></li>';
}
echo '</ul>';
echo '<a href="' . admin_url('post-new.php?post_type=chantiers') . '" class="new-chantier">Ajouter un chantier</a>';
} else {
echo '<h3> Chantiers réalisés</h3>';
echo '<p class="no-results">Aucun chantier pour cette entreprise</p>';