From a12027bc06ecefd5bf08c3766276e00f2b0ee73d Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Sat, 26 Jan 2019 12:07:56 +0100
Subject: [PATCH] Fix image + hide empty links next / prev

---
 article.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/article.php b/article.php
index f687936..d548ebd 100644
--- a/article.php
+++ b/article.php
@@ -1,10 +1,10 @@
 <?php theme_include('header'); ?>
 		<section class="content wrap" id="article-<?php echo article_id(); ?>">
         <div class="row" style="padding:70px">
-         <div class="col-md-4 col-sd-12">
+         <div class="col-md-5 col-sd-12">
 			<?php echo article_img(article_slug());?>
         </div>
-        <div class="col-md-8 col-sd-12">
+        <div class="col-md-7 col-sd-12">
             <h2>
             <?php echo article_title(); ?>
             </h2>
@@ -19,9 +19,13 @@
                 <p>Article num&eacute;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">
+            <?php if(!empty(article_previous_url())):?>
             <li style="float:left;padding:15px"><a href="<?php echo article_previous_url()?>">Article précédent</a></li>
+            <?php endif?>
             <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>
+            <?php if(!empty(article_next_url())):?>
             <li style="float:left;padding:15px"><a href="<?php echo article_next_url()?>">Article suivant</a></li>
+            <?php endif?>
             </ul>
 			</section>
 		</section>
-- 
GitLab