Compare commits
No commits in common. "2633843395a4d20b5a9d8580ff0cbe6532a30dcc" and "43d5b67108f623c403f978ee22412282cb74203a" have entirely different histories.
2633843395
...
43d5b67108
|
|
@ -12,7 +12,7 @@ $mainThematique = getMainThematique($thematique);
|
||||||
$thematiqueColorSlug = $mainThematique->slug;
|
$thematiqueColorSlug = $mainThematique->slug;
|
||||||
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
||||||
|
|
||||||
$postDescription = $attributes['postDescription'] ?? null;
|
$postDescription = $attributes['postDescription'];
|
||||||
|
|
||||||
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ $mainThematique = getMainThematique($thematique);
|
||||||
$thematiqueColorSlug = $mainThematique->slug;
|
$thematiqueColorSlug = $mainThematique->slug;
|
||||||
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
$thematique_icon = get_field('taxonomy_pictures', 'thematiques' . '_' . $mainThematique->term_id)['icon'];
|
||||||
|
|
||||||
$postDescription = $attributes['postDescription'] ?? null;
|
$postDescription = $attributes['postDescription'];
|
||||||
|
|
||||||
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
$coverUrl = $postType->name === 'videos-webinaires' && $postThumbnail ? $postThumbnail : ($thematique_icon ? $thematique_icon['url'] : null);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
||||||
$relatedPost = get_post($relatedPostId);
|
$relatedPost = get_post($relatedPostId);
|
||||||
// echo $relatedPost->post_content
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
||||||
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
||||||
|
<!-- <?php echo $relatedPost->post_content ?> -->
|
||||||
<?php echo do_blocks($relatedPost->post_content) ?>
|
<?php echo do_blocks($relatedPost->post_content) ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
$relatedPostId = $attributes['relatedPostId'] ?? null;
|
||||||
$relatedPost = get_post($relatedPostId);
|
$relatedPost = get_post($relatedPostId);
|
||||||
// echo $relatedPost->post_content
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
|
||||||
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
|
||||||
|
<!-- <?php echo $relatedPost->post_content ?> -->
|
||||||
<?php echo do_blocks($relatedPost->post_content) ?>
|
<?php echo do_blocks($relatedPost->post_content) ?>
|
||||||
</section>
|
</section>
|
||||||
Loading…
Reference in New Issue
Block a user