forked from nehalist/gitsta
-
Notifications
You must be signed in to change notification settings - Fork 2
/
content.php
executable file
·31 lines (28 loc) · 1.07 KB
/
content.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
<div id="post-<?php the_ID(); ?>" <?php post_class('item'); ?>>
<h2 style="margin-top: 0;">
<a href="<?php the_permalink(); ?>" name="<?php the_ID(); ?>" rel="bookmark" class="post-title"><?php the_title(); ?></a>
</h2>
<div name="meta">
<p class="text-muted">
<i class="fa fa-calendar"></i>
<?php
if(trim(get_the_title()) != "") {
echo get_the_date();
} else {
echo '<a href="'. get_the_permalink() .'" name="'. get_the_ID() .'" rel="bookmark">'. get_the_date() .'</a>';
}
?>
<i class="fa fa-user" style="margin-left: 20px;"></i>
<?php
echo get_the_author(', ');
?>
<i class="fa fa-folder-open" style="margin-left: 20px;"></i>
<?php
echo get_the_category_list(', ');
?>
<?php
echo get_the_tag_list('<i class="fa fa-tags" style="margin-left: 20px;"></i> ',', ');
?>
</p>
</div>
</div>