From bf6c0b19b95c08f090427f6c415b9ac96cf0dc81 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Thu, 24 Jan 2019 16:45:14 +0100 Subject: [PATCH] Navigation links --- article.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/article.php b/article.php index 8282be7..72c9ae1 100644 --- a/article.php +++ b/article.php @@ -18,6 +18,11 @@ <!-- Unfortunately, CSS means everything's got to be inline. --> <p>Article numéro: <?php echo article_number(article_id()); ?>, <?php echo count_words(article_markdown()); ?> mots <?php if(comments_open()): ?>, <?php echo total_comments();?> <?php echo pluralise(total_comments(), "commentaire", "s") ?>.<?php endif; ?> <?php echo article_custom_field('attribution'); ?></p> + <ul style="list-style:none;box-sizing:border-box"> + <li style="float:left;padding:15px"><a href="<?php echo article_previous_url()?>">Article précédent</a></li> + <li style="float:left;padding:15px"><a href="<?php echo article_category_url()?>">Tous les articles de la catégorie <?php echo article_category();?></a></li> + <li style="float:left;padding:15px"><a href="<?php echo article_next_url()?>">Article suivant</a></li> + </ul> </section> </section> -- GitLab