">
            <?php 
if (isset($_SESSION['auth'])) {
    echo '
                        <label for="comment">Commenter</label><br>' . '<textarea name="comment" id="comment" placeholder="Écrire un commentaire ..."></textarea><br>' . '<input type="submit">
                        ';
} else {
    echo '<p class="warning">Veuillez vous connecter pour pouvoir commenter.</p>';
}
?>
            <br>&nbsp;
        </form>

        <div class="show-comments">
            <?php 
if (CommentModel::noComment($this->pdo, $id)) {
    echo '<p>Aucun commentaire.</p>';
} else {
    echo '<br><br><button id="show-more">En afficher plus</button>';
}
?>
        </div>
    </section>
</main>

<?php 
include 'footer.php';
?>
<script src="/assets/js/comment.js"></script>
</body>
</html>