Skip to content

Commit

Permalink
Mise à jour pour la version beta1 du CMS.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-noel committed Apr 26, 2020
1 parent 5a76063 commit d09a644
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
9 changes: 9 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3492,3 +3492,12 @@ table.alt tfoot {
position: relative;
top: -8px;
}

.article_date_time{
margin-bottom: 1.5em;
}
.article_img img{
display: block;
margin: 0px auto;
margin-bottom: 1.5em;
}
2 changes: 2 additions & 0 deletions html.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<?php endif; ?>
<meta name="description" content="<?php echo $description ?>"/>
<meta name="keywords" content="<?php echo $keyboard ?>"/>
<meta name="generator" content="<?php echo $generator; ?>"/>

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<link rel="stylesheet" href="<?php echo $base_theme; ?>assets/css/main.css" />
Expand Down
12 changes: 12 additions & 0 deletions node-show-article.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

<div class="article_img">
<?php echo $fields[ 'image' ][ 'field_display' ]; ?>
</div>
<div class="article_date_time">
<i class="fa fa-calendar-alt"></i>
<?php echo strftime('%d.%B.%Y', $node[ 'date_created' ]); ?>
-
<i class="fa fa-clock"></i>
~<?php echo $fields[ 'reading_time' ][ 'field_value' ] . ' ' . t('minute(s)'); ?>
</div>
<?php echo $fields[ 'body' ][ 'field_display' ]; ?>
26 changes: 18 additions & 8 deletions views-news-index.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@

<section class="wrapper style3 container special">
<div class="row">
<?php if ($nodes): ?>
<?php foreach ($nodes as $node): ?>
<?php $node[ 'field' ] = unserialize($node[ 'field' ]); ?>
<?php if ($news): ?>
<?php foreach ($news as $new): ?>

<div class="col-6 col-12-narrower">
<section>
<a class="image featured" href="#">
<img src="<?php echo $new[ 'field' ][ 'image' ][ 'field_value' ]; ?>" alt="Illustration <?php echo $new[ 'title' ]; ?>">
</a>
<header>
<h3><a href="<?php echo $node[ 'link_view' ]; ?>"><?php echo $node[ 'title' ]; ?></a></h3>
<h3><a href="<?php echo $new[ 'link_view' ]; ?>"><?php echo $new[ 'title' ]; ?></a></h3>
</header>
<small><?php echo date('F d, Y', $node[ 'created' ]); ?></small>
<p><?php echo $node[ 'field' ][ 'summary' ]; ?></p>
<a href="<?php echo $node[ 'link_view' ]; ?>" class="button">En savoir plus</a>
<small><?php echo date('F d, Y', $new[ 'date_created' ]); ?></small> ~
<small><?php echo $new[ 'field' ][ 'reading_time' ][ 'field_value' ] . ' ' . t('minute(s)'); ?></small>

<p><?php echo $new[ 'field' ][ 'summary' ][ 'field_display' ]; ?></p>
<a href="<?php echo $new[ 'link_view' ]; ?>" class="button"><?php echo t('Learn more'); ?></a>
</section>
</div>
<?php endforeach; ?>
<?php else: ?>
<div class="col-md-12">
<?php echo $paginate; ?>
</div>
<div class="col-md-12">
<a type="application/rss+xml" href="<?php echo $link_rss; ?>" title="Flux RSS"><i class="fa fa-rss-square" aria-hidden="true"></i></a>
</div>
<?php else: ?>

<div class="col-12 col-12-narrower">
<p><?php echo $default; ?></p>
Expand Down

0 comments on commit d09a644

Please sign in to comment.