Skip to content
Snippets Groups Projects
Verified Commit d2465bb6 authored by David Beniamine's avatar David Beniamine
Browse files

Better blog articles presentation

parent c65230b3
Branches
No related tags found
No related merge requests found
......@@ -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.'" />';
}
}
......
<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>
<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&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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment