-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
42 lines (30 loc) · 895 Bytes
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Studio Val
*/
get_header();
// === Graphic blocks definition
$blocks = [
studio_define_graphic_block('primary', 'large'),
studio_define_graphic_block('dark', 'medium'),
];
?>
<main id="content" class="st-single">
<?php
while (have_posts()) :
the_post();
echo studio_generate_graphic_blocks($blocks);
echo get_template_part('template-parts/breadcrumbs');
get_template_part('template-parts/single/single', 'thumbnail');
get_template_part('template-parts/single/single', 'content');
get_template_part('template-parts/single/single', 'related-posts');
echo '<div class="st-link-notification">' . __('Lien copié dans le presse-papier', 'studio-val') . '</div>';
endwhile;
?>
</main>
<?php
get_footer();