-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
42 lines (37 loc) · 1001 Bytes
/
Copy pathsingle.php
File metadata and controls
42 lines (37 loc) · 1001 Bytes
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 and attachments
*
* @package Cielos
* @since unomoon 1.0.0
*/
get_header(); ?>
<?php
if ( ! has_block('image') ) :
?>
<?php get_template_part('template-parts/featured-image'); ?>
<?php
endif;
?>
<div class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<main id="main" class="lg:col-span-2" role="main" tabindex="-1">
<?php
while (have_posts()) :
the_post();
get_template_part('template-parts/content', 'single');
// スコアリングベースの関連記事を表示
if (function_exists('cielos_display_related_posts')) {
cielos_display_related_posts(get_the_ID(), 6, '関連記事');
}
the_post_navigation();
comments_template();
?>
<div id="cielos-comment-pagination"></div>
<?php endwhile; ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php
get_footer();