-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-post-header.php
59 lines (44 loc) · 1.67 KB
/
content-post-header.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
<?php
/**
* Post Header Meta (Full and Short)
*/
// No direct access
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="uplifted-entry-image">
<?php uplifted_post_image(); ?>
</div>
<?php endif; ?>
<div class="uplifted-content-meta">
<header class="uplifted-entry-header uplifted-clearfix">
<div class="uplifted-entry-title-meta">
<?php if ( ctfw_has_title() ) : // might be Status Update with no title ?>
<h1 class="uplifted-entry-title<?php if ( is_singular( get_post_type() ) ) : ?> uplifted-main-title<?php endif; ?>">
<?php uplifted_post_title(); // will be linked on short ?>
</h1>
<?php endif; ?>
<ul class="uplifted-entry-meta">
<li class="uplifted-entry-date">
<i class="genericon genericon-month"></i>
<time datetime="<?php esc_attr( the_time( 'c' ) ); ?>"><?php ctfw_post_date(); ?></time>
</li>
<li class="uplifted-entry-byline">
<i class="genericon genericon-user"></i>
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php the_author(); ?></a>
</li>
<?php if ( $categories = get_the_category_list( __( ', ', 'uplifted' ) ) ) : ?>
<li class="uplifted-entry-category">
<i class="genericon genericon-category"></i>
<?php echo $categories; ?>
</li>
<?php endif; ?>
<?php if ( uplifted_show_comments() ) : ?>
<li class="uplifted-entry-comments-link">
<i class="genericon genericon-comment"></i>
<?php uplifted_comments_link(); ?>
</li>
<?php endif; ?>
</ul>
</div><!-- /uplifted-entry-title-meta -->
</header>