renalming and moving blocks

This commit is contained in:
Antoine M 2024-02-01 19:22:50 +01:00
parent b0ad775849
commit 39294f94e5
4 changed files with 0 additions and 75 deletions

View File

@ -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>

View File

@ -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"
}
}

View File

@ -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>