-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
64 lines (59 loc) · 1.69 KB
/
home.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php get_header(); ?>
<div class="section-top section-top-blog">
<div class="section-top-text">
<div class="section-top-title">お知らせ</div>
<div class="section-top-en">NEWS</div>
</div>
</div>
<div class="section-bread">
<?php
if (function_exists('bcn_display')) {
bcn_display();
}
?>
</div>
<div class="individual-blog-body">
<article class="individual-blog-items">
<?php
if (have_posts()) : while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" class="individual-blog-item">
<div class="individual-blog-img">
<?php the_post_thumbnail(); ?>
</div>
<div class="blog-body">
<p class="blog-category">
<?php
$category = get_the_category();
echo $category[0]->cat_name;
?>
</p>
<div class="blog-title"><?php the_title(); ?></div>
<div class="blog-date"><?php the_time(get_option('date_format')); ?></div>
</div>
</a>
<?php endwhile;
endif; ?>
<div class="blog-pagenation">
<?php if (paginate_links()) : //ページが1ページ以上あれば以下を表示
?>
<!-- pagenation -->
<div class="pagenation">
<?php
echo
paginate_links(
array(
'end_size' => 0,
'mid_size' => 1,
'prev_next' => true,
'prev_text' => '前へ',
'next_text' => '次へ',
)
);
?>
</div><!-- /pagenation -->
<?php endif; ?>
</div>
</article>
<?php get_template_part('includes/sidebar'); ?>
</div>
<?php get_footer(); ?>