REFACTORING adjusting last block version
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7bf5d5d5fc
commit
a9ac439f25
|
|
@ -52,7 +52,6 @@ $issue_related_articles = new WP_Query(array(
|
||||||
</div>
|
</div>
|
||||||
<div class="content-meta">
|
<div class="content-meta">
|
||||||
<span class="content-meta__type content-meta__type--revue">Revue</span>
|
<span class="content-meta__type content-meta__type--revue">Revue</span>
|
||||||
<span class="content-meta__reading-time"><?php echo calculate_reading_time($last_issue->post_content); ?> minutes de lecture</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-dernieres-dynamiques__issue-content-wrapper">
|
<div class="block-dernieres-dynamiques__issue-content-wrapper">
|
||||||
|
|
@ -61,6 +60,7 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<h3 class="block-dernieres-dynamiques__issue-title">
|
<h3 class="block-dernieres-dynamiques__issue-title">
|
||||||
<?php echo $last_issue->post_title; ?>
|
<?php echo $last_issue->post_title; ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
<h4 class="block-dernieres-dynamiques__issue-description-title">Édito</h4>
|
||||||
<p class="block-dernieres-dynamiques__issue-description">
|
<p class="block-dernieres-dynamiques__issue-description">
|
||||||
<?php echo $last_issue->post_excerpt; ?>
|
<?php echo $last_issue->post_excerpt; ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -89,10 +89,14 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<div class="article-card">
|
<div class="article-card">
|
||||||
<div class="content-meta">
|
<div class="content-meta">
|
||||||
<span class="content-meta__type content-meta__type--article">Article</span>
|
<span class="content-meta__type content-meta__type--article">Article</span>
|
||||||
<span class="content-meta__reading-time"><?php echo calculate_reading_time($article->post_content); ?> minutes de lecture</span>
|
<!-- <span class="content-meta__reading-time"><?php echo calculate_reading_time($article->post_content); ?> minutes de lecture</span> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4 class="article-card__title"><?php echo $article->post_title; ?></h4>
|
|
||||||
|
<a href="<?php echo get_the_permalink($article->ID); ?>" class="article-card__link">
|
||||||
|
|
||||||
|
<h4 class="article-card__title"><?php echo $article->post_title; ?></h4>
|
||||||
|
</a>
|
||||||
|
|
||||||
<ul class="article-card__tags">
|
<ul class="article-card__tags">
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -104,6 +108,15 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<a class="article-card__link-button" href="<?php echo get_the_permalink($article->ID); ?>">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$svg_path = get_template_directory() . '/resources/img/carhop-fleche-full.svg';
|
||||||
|
if (file_exists($svg_path)) {
|
||||||
|
echo file_get_contents($svg_path);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -111,7 +124,13 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<button class="related-articles__show-all">
|
||||||
|
Tout afficher
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -149,7 +168,7 @@ $query = new WP_Query(array(
|
||||||
// wp_enqueue_script('swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true);
|
// wp_enqueue_script('swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<section <?php echo get_block_wrapper_attributes(); ?>>
|
<!-- <section <?php echo get_block_wrapper_attributes(); ?>>
|
||||||
<h2>lalala actualités</h2>
|
<h2>lalala actualités</h2>
|
||||||
<?php if ($query->have_posts()) : ?>
|
<?php if ($query->have_posts()) : ?>
|
||||||
<div class="swiper latest-news-swiper">
|
<div class="swiper latest-news-swiper">
|
||||||
|
|
@ -181,4 +200,4 @@ $query = new WP_Query(array(
|
||||||
|
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</section>
|
</section> -->
|
||||||
|
|
@ -52,7 +52,6 @@ $issue_related_articles = new WP_Query(array(
|
||||||
</div>
|
</div>
|
||||||
<div class="content-meta">
|
<div class="content-meta">
|
||||||
<span class="content-meta__type content-meta__type--revue">Revue</span>
|
<span class="content-meta__type content-meta__type--revue">Revue</span>
|
||||||
<span class="content-meta__reading-time"><?php echo calculate_reading_time($last_issue->post_content); ?> minutes de lecture</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="block-dernieres-dynamiques__issue-content-wrapper">
|
<div class="block-dernieres-dynamiques__issue-content-wrapper">
|
||||||
|
|
@ -61,6 +60,7 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<h3 class="block-dernieres-dynamiques__issue-title">
|
<h3 class="block-dernieres-dynamiques__issue-title">
|
||||||
<?php echo $last_issue->post_title; ?>
|
<?php echo $last_issue->post_title; ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
<h4 class="block-dernieres-dynamiques__issue-description-title">Édito</h4>
|
||||||
<p class="block-dernieres-dynamiques__issue-description">
|
<p class="block-dernieres-dynamiques__issue-description">
|
||||||
<?php echo $last_issue->post_excerpt; ?>
|
<?php echo $last_issue->post_excerpt; ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -89,10 +89,14 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<div class="article-card">
|
<div class="article-card">
|
||||||
<div class="content-meta">
|
<div class="content-meta">
|
||||||
<span class="content-meta__type content-meta__type--article">Article</span>
|
<span class="content-meta__type content-meta__type--article">Article</span>
|
||||||
<span class="content-meta__reading-time"><?php echo calculate_reading_time($article->post_content); ?> minutes de lecture</span>
|
<!-- <span class="content-meta__reading-time"><?php echo calculate_reading_time($article->post_content); ?> minutes de lecture</span> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4 class="article-card__title"><?php echo $article->post_title; ?></h4>
|
|
||||||
|
<a href="<?php echo get_the_permalink($article->ID); ?>" class="article-card__link">
|
||||||
|
|
||||||
|
<h4 class="article-card__title"><?php echo $article->post_title; ?></h4>
|
||||||
|
</a>
|
||||||
|
|
||||||
<ul class="article-card__tags">
|
<ul class="article-card__tags">
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -104,6 +108,15 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<a class="article-card__link-button" href="<?php echo get_the_permalink($article->ID); ?>">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$svg_path = get_template_directory() . '/resources/img/carhop-fleche-full.svg';
|
||||||
|
if (file_exists($svg_path)) {
|
||||||
|
echo file_get_contents($svg_path);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -111,7 +124,13 @@ $issue_related_articles = new WP_Query(array(
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<button class="related-articles__show-all">
|
||||||
|
Tout afficher
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -149,7 +168,7 @@ $query = new WP_Query(array(
|
||||||
// wp_enqueue_script('swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true);
|
// wp_enqueue_script('swiper-js', 'https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js', array(), null, true);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<section <?php echo get_block_wrapper_attributes(); ?>>
|
<!-- <section <?php echo get_block_wrapper_attributes(); ?>>
|
||||||
<h2>lalala actualités</h2>
|
<h2>lalala actualités</h2>
|
||||||
<?php if ($query->have_posts()) : ?>
|
<?php if ($query->have_posts()) : ?>
|
||||||
<div class="swiper latest-news-swiper">
|
<div class="swiper latest-news-swiper">
|
||||||
|
|
@ -181,4 +200,4 @@ $query = new WP_Query(array(
|
||||||
|
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</section>
|
</section> -->
|
||||||
Loading…
Reference in New Issue
Block a user