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 class="content-meta">
|
||||
<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 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">
|
||||
<?php echo $last_issue->post_title; ?>
|
||||
</h3>
|
||||
<h4 class="block-dernieres-dynamiques__issue-description-title">Édito</h4>
|
||||
<p class="block-dernieres-dynamiques__issue-description">
|
||||
<?php echo $last_issue->post_excerpt; ?>
|
||||
</p>
|
||||
|
|
@ -89,10 +89,14 @@ $issue_related_articles = new WP_Query(array(
|
|||
<div class="article-card">
|
||||
<div class="content-meta">
|
||||
<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>
|
||||
|
||||
|
||||
<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">
|
||||
<?php
|
||||
|
|
@ -104,6 +108,15 @@ $issue_related_articles = new WP_Query(array(
|
|||
<?php endif; ?>
|
||||
|
||||
</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>
|
||||
|
|
@ -111,7 +124,13 @@ $issue_related_articles = new WP_Query(array(
|
|||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<button class="related-articles__show-all">
|
||||
Tout afficher
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<?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);
|
||||
|
||||
?>
|
||||
<section <?php echo get_block_wrapper_attributes(); ?>>
|
||||
<!-- <section <?php echo get_block_wrapper_attributes(); ?>>
|
||||
<h2>lalala actualités</h2>
|
||||
<?php if ($query->have_posts()) : ?>
|
||||
<div class="swiper latest-news-swiper">
|
||||
|
|
@ -181,4 +200,4 @@ $query = new WP_Query(array(
|
|||
|
||||
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
</section> -->
|
||||
|
|
@ -52,7 +52,6 @@ $issue_related_articles = new WP_Query(array(
|
|||
</div>
|
||||
<div class="content-meta">
|
||||
<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 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">
|
||||
<?php echo $last_issue->post_title; ?>
|
||||
</h3>
|
||||
<h4 class="block-dernieres-dynamiques__issue-description-title">Édito</h4>
|
||||
<p class="block-dernieres-dynamiques__issue-description">
|
||||
<?php echo $last_issue->post_excerpt; ?>
|
||||
</p>
|
||||
|
|
@ -89,10 +89,14 @@ $issue_related_articles = new WP_Query(array(
|
|||
<div class="article-card">
|
||||
<div class="content-meta">
|
||||
<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>
|
||||
|
||||
|
||||
<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">
|
||||
<?php
|
||||
|
|
@ -104,6 +108,15 @@ $issue_related_articles = new WP_Query(array(
|
|||
<?php endif; ?>
|
||||
|
||||
</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>
|
||||
|
|
@ -111,7 +124,13 @@ $issue_related_articles = new WP_Query(array(
|
|||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<button class="related-articles__show-all">
|
||||
Tout afficher
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<?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);
|
||||
|
||||
?>
|
||||
<section <?php echo get_block_wrapper_attributes(); ?>>
|
||||
<!-- <section <?php echo get_block_wrapper_attributes(); ?>>
|
||||
<h2>lalala actualités</h2>
|
||||
<?php if ($query->have_posts()) : ?>
|
||||
<div class="swiper latest-news-swiper">
|
||||
|
|
@ -181,4 +200,4 @@ $query = new WP_Query(array(
|
|||
|
||||
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
</section> -->
|
||||
Loading…
Reference in New Issue
Block a user