diff --git a/functions.php b/functions.php index 1d4d287a3b9b152ddcf8958c470ed31ff14ef5bc..fe667bd7cd9943c3eb1a372329aab335b559f5b5 100644 --- a/functions.php +++ b/functions.php @@ -117,7 +117,7 @@ function article_img_ext($slug){ function article_img($slug){ $ext = article_img_ext($slug); if($ext != ""){ - echo '<img class="odd" width="300px" src="'.article_img_url($slug).'.'.$ext.'" />'; + echo '<img style="max-width:300px;max-height:200px" src="'.article_img_url($slug).'.'.$ext.'" />'; } } diff --git a/single_article.php b/single_article.php index 9fc06500a3f198660df6f2c796435455f089a335..0aaf64f48055dcf302b3eba6b29ee45e56b6e613 100644 --- a/single_article.php +++ b/single_article.php @@ -1,16 +1,20 @@ <article class="wrap"> - <h2> - <a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_img(article_slug());?><?php echo article_title(); ?></a> - </h2> - - <div class="contents"> - <?php echo article_description(); ?> - </div> - - <footer> - <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> - Posté <time datetime="<?php echo date(DATE_W3C, article_time()); ?>"><?php echo relative_time(article_time()); ?></time> par <?php echo article_author('real_name'); ?>. - </footer> - </article> + <div class="row"> + <div class="col-md-6 col-sd-12"> + <a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_img(article_slug());?></a> + </div> + <div class="col-md-6 col-sd-12"> + <h2 style="padding:0px"> + <a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_title(); ?></a> + </h2> + <div class="contents"> + <?php echo article_description(); ?> + </div> + </div> + <footer> + <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> + Posté <time datetime="<?php echo date(DATE_W3C, article_time()); ?>"><?php echo relative_time(article_time()); ?></time> par <?php echo article_author('real_name'); ?>. + </footer> +</article>