This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
97 lines (78 loc) · 1.91 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/**
* @package WordPress
* @subpackage modest3
*/
get_header();
?>
<article id="content"
role="main">
<?php
if (have_posts()) :
while (have_posts()) :
the_post();
?>
<?php
$the_id = get_the_ID();
?>
<header class="entry-header">
<?php
//post_icon($the_id,array(120,120));
?>
<h1 class="post-title"><?php the_title(); ?></h1>
<?php
edit_the_link($the_id);
?>
</header>
<footer class="meta-container">
<div class="postmeta-project">
<?php
the_project_list_of_the_post($the_id);
?>
</div>
</footer>
<div class="entry-body">
<?php
the_content('続きを読む');
?>
</div>
<footer class="entry-footer">
<div class="postmeta">
<p class="postmeta-title">投稿者</p>
<address class="postmeta-content author">
<?php
the_author_post_link_with_avatar(48);
?>
</address>
<p class="postmeta-title">投稿日</p>
<div class="postmeta-content">
投稿日時
<?php
the_time_of_the_post($the_id);
?>
</div>
<?php if (get_the_modified_date('Y年n月j日') != get_the_time('Y年n月j日')) : ?>
<p class="postmeta-title">更新日</p>
<div class="postmeta-content">
更新日時
<?php
the_time_of_final_edit();
?>
</div>
<?php endif; ?>
</div>
<?php
//wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
//$post_type = get_post_type($the_id);
//the_tags_post_type( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>', $post_type);
?>
</footer>
<?php comments_template(); ?>
<?php
endwhile;
else:
echo '<p>Sorry, no posts matched your criteria</p>';
endif;
?>
</article>
<?php get_footer(); ?>