-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
executable file
·110 lines (108 loc) · 4.79 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
get_header();
?>
<div class="container" id="content">
<div class="section-title">
<h2>
<span class="pb-0">
<div class="mainheading">
<h1 class="sitetitle">
<?php
echo __("Posts by ", "superware") . get_the_author_meta( "display_name");
?>
</h1>
</div>
</span>
</h2>
<span class="author-description">
<?php
the_author_meta( "description" );
?>
</span>
</div>
<?php
if (have_posts() ):
?>
<!-- Begin Featured -->
<section class="featured-posts mt-4">
<div class="card-columns listfeaturedtag">
<?php
while(have_posts()) :
the_post();
?>
<!-- begin post -->
<div class="card">
<div class="row">
<div class="col-md-5 wrapthumbnail">
<a href="<?php the_permalink(); ?>">
<div class="thumbnail" style="background-image: url(<?php echo esc_url(get_the_post_thumbnail_url(get_the_ID(), "large")); ?>);">
</div>
</a>
</div>
<div class="col-md-7">
<div class="card-block">
<h2 class="card-title">
<a href="<?php the_permalink(); ?>">
<?php
the_title();
?>
</a>
</h2>
<h4 class="card-text">
<?php echo wp_trim_words( get_the_content(), 15, '...' ); ?>
</h4>
<div class="metafooter">
<div class="wrapfooter">
<span class="meta-footer-thumb">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ); ?>">
<img class="author-thumb" src="<?php echo esc_url(get_avatar_url(get_the_author_meta("ID"))); ?>" alt="<?php the_title(); ?>">
</a>
</span>
<span class="author-meta">
<span class="post-name">
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ); ?>">
<?php
echo esc_html(wp_trim_words(get_the_author_meta("display_name"), 1));
?>
</a>
</span>
<br />
<span class="post-date">
<?php
echo get_the_date();
?>
</span>
</span>
<span class="post-read-more">
<a href="<?php the_permalink(); ?>">
<svg class="svgIcon-use" width="25" height="25" viewbox="0 0 25 25">
<path d="M19 6c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14.66h.012c.01.103.045.204.12.285a.5.5 0 0 0 .706.03L12.5 16.85l5.662 4.126a.508.508 0 0 0 .708-.03.5.5 0 0 0 .118-.285H19V6zm-6.838 9.97L7 19.636V6c0-.55.45-1 1-1h9c.55 0 1 .45 1 1v13.637l-5.162-3.668a.49.49 0 0 0-.676 0z" fill-rule="evenodd"></path>
</svg>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end post -->
<?php
endwhile;
?>
</div>
<div class="post-pagination mt-4 w-max mx-auto">
<div class="row">
<div class="col">
<?php
the_posts_pagination();
?>
</div>
</div>
</div>
</section>
<!-- End Featured -->
<?php
else: get_template_part('template-parts/not-found');
endif;
get_footer();