-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-person-header.php
70 lines (49 loc) · 1.71 KB
/
content-person-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
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Post Header Meta (Full and Short)
*/
// No direct access
if ( ! defined( 'ABSPATH' ) ) exit;
// Get data
// $position, $phone, $email, $urls
extract( ctfw_person_data() );
?>
<!-- <div class="person-profile-card"> -->
<?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 clearfix">
<div class="uplifted-entry-title-meta">
<?php if ( ctfw_has_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">
<?php if ( $position ) : ?>
<li class="uplifted-person-position entry-meta-item">
<i class="genericon genericon-user"></i>
<?php echo esc_html( $position ); ?>
</li>
<?php endif; ?>
<?php if ( $phone ) : ?>
<li class="uplifted-person-phone entry-meta-item">
<i class="genericon genericon-phone"></i>
<?php echo esc_html( $phone ); ?>
</li>
<?php endif; ?>
<?php if ( $email || $urls ) : ?>
<?php if ( $email ) : ?>
<li class="uplifted-person-email entry-meta-item">
<i class="genericon genericon-mail"></i>
<a href="mailto:<?php echo antispambot( $email, true ); ?>"><?php echo antispambot( $email ); ?></a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
</div> <!-- /uplifted-entry-title-meta -->
</header> <!-- /uplifted-entry-header -->
<!-- </div> /person-profile-card -->