Skip to content

Commit 5fb5468

Browse files
added: html markup add for every single post render
1 parent 1ca3ded commit 5fb5468

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

assets/css/widgets/author-posts.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@
5555
}
5656

5757
/* post layout style */
58+
5859
.wcf--author-posts {
59-
display: flex;
60+
display: grid;
61+
grid-template-columns: 410px 1fr;
62+
}
63+
.wcf--author-posts__posts{
64+
display: grid;
65+
grid-template-columns: repeat(2, 1fr);
66+
border-inline-start: 1px solid #1212121A;
67+
}
68+
.wcf--author-posts__posts__item {
69+
border-style: solid;
70+
border-width: 0px 1px 1px 0px;
71+
border-color: #1212121A;
72+
padding: 0px 25px 20px 25px;
73+
margin: 0px 0px 0px 0px;
74+
text-align: start;
6075
}

widgets/author-posts.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,21 @@ protected function render() {
235235
while ( $query->have_posts() ) {
236236
$query->the_post();
237237
?>
238-
<div class="wcf--author-posts__posts__item">
239-
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
240-
<p><?php the_excerpt(); ?></p>
241-
</div>
238+
<article class="wcf--author-post">
239+
<div class="wcf-post-taxonomy">
240+
<a href="#" class="aae-cat-politics">tt</a>
241+
</div>
242+
<div class="wcf--author-post-thumb">
243+
<img src="" alt="">
244+
</div>
245+
<h3 class="wcf-post-title">
246+
<a href="#"><span class="highlight"></a>
247+
</h3>
248+
<div class="wcf-post-meta">
249+
<span class="wcf-post-date"></span>
250+
<span class="wcf-post-author"></span>
251+
</div>
252+
</article>
242253
<?php
243254
}
244255
wp_reset_postdata();

0 commit comments

Comments
 (0)