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
/
Copy pathauthor.php
95 lines (80 loc) · 1.98 KB
/
author.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
<?php
/**
* @package WordPress
* @subpackage modest3
* authorを表示するためのテンプレート
*/
get_header();
?>
<article id="content"
role="main">
<?php
if (have_posts()) :
$user_data = get_userdata($author);
?>
<header class="entry-header">
<h1 class="post-title">
<?php
echo get_avatar($user_data->ID, 48);
echo esc_html($user_data->display_name);
?>
</h1>
</header>
<?php the_author_data($user_data); ?>
<div class="entry-body">
<?php
echo esc_html($user_data->description);
?>
</div>
<section id="author-latest-topics-list">
<?php
$cat_id = get_post_meta($post->ID, 'catid', true);
?>
<h2>投稿したトピック</h2>
<?php
while (have_posts()) :
the_post();
$the_id = get_the_ID();
?>
<article class="feed-article">
<header>
<?php
/*
* articles title
*/
$link = get_permalink();
$titleText = get_the_title();
echo '<h1 class="feed-article-title"><a href="'. esc_attr($link) .'">'. esc_html($titleText) .'</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>
<div class="postmeta">
<p class="postmeta-title">投稿日時</p>
<div class="postmeta-content">
<?php
the_time_of_the_post($the_id);
?>
</div>
</div>
</footer>
</article>
<?php
endwhile;
else:
echo '<p>Sorry, no posts matched your criteria</p>';
endif;
?>
<nav class="navigation">
<?php navigation_bar(); ?>
</nav>
</section>
</article>
<?php get_footer(); ?>