renalming and moving blocks
This commit is contained in:
parent
b0ad775849
commit
39294f94e5
|
|
@ -1,36 +0,0 @@
|
||||||
<?php
|
|
||||||
// $latest_posts_details = get_field('latest_posts_details');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<section class="section_latest_news">
|
|
||||||
<h2 class="section_title">Lastest Articles</h2>
|
|
||||||
|
|
||||||
<div class="articles_container">
|
|
||||||
<?php
|
|
||||||
|
|
||||||
$recent_posts = wp_get_recent_posts(array(
|
|
||||||
'numberposts' => 4, // Number of recent posts thumbnails to display
|
|
||||||
'post_status' => 'publish' // Show only the published posts
|
|
||||||
));
|
|
||||||
|
|
||||||
|
|
||||||
foreach ($recent_posts as $key => $post) {
|
|
||||||
$post_date = date_i18n('j F Y', strtotime($post['post_date']));
|
|
||||||
?>
|
|
||||||
<div class="article_card">
|
|
||||||
<p>qsdqsd</p>
|
|
||||||
<?php echo get_the_post_thumbnail($post['ID'], 'full', array('class' => 'article_thumbnail')); ?>
|
|
||||||
<div class="card_inner">
|
|
||||||
<h4 class="post_date"> <?php echo $post_date ?> </h4>
|
|
||||||
<h3 class="post_title"><?php echo $post['post_title'] ?></h3>
|
|
||||||
<p><?php echo $post['post_excerpt'] ?></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"name": "acf/home-header",
|
|
||||||
"title": "Home — Section d'accueil",
|
|
||||||
"category": "client-blocks",
|
|
||||||
"multiple": false,
|
|
||||||
"icon": {
|
|
||||||
"foreground": "#ffbb00",
|
|
||||||
"src": "admin-site-alt"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"Couverture",
|
|
||||||
"home",
|
|
||||||
"Accueil",
|
|
||||||
"Section d'accueil",
|
|
||||||
"Header"
|
|
||||||
],
|
|
||||||
"acf": {
|
|
||||||
"mode": "auto",
|
|
||||||
"renderTemplate": "home-header.php"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
<?php
|
|
||||||
$home_header = get_field('home_header_datas');
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<section class="home-header header_top">
|
|
||||||
<div class="home-header__content">
|
|
||||||
<h1 class="home-header__title">
|
|
||||||
<?php echo $home_header['title'] ?>
|
|
||||||
</h1>
|
|
||||||
<a class="cta" href="<?php echo $home_header['cta']['url'] ?>">
|
|
||||||
<?php echo $home_header['cta']['title'] ?>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<img class="home-header__cover" src='<?php echo $home_header['cover_illustration']['url'] ?>' alt=''>
|
|
||||||
</section>
|
|
||||||
Loading…
Reference in New Issue
Block a user