-
Notifications
You must be signed in to change notification settings - Fork 2
/
team_members_template.php
123 lines (65 loc) · 3.28 KB
/
team_members_template.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
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
namespace ots_pro;
?>
<?php get_header(); ?>
<div class="sc-single-wrapper">
<?php while ( have_posts() ) : the_post(); ?>
<div class="sc_team_single_member">
<div class="sc_single_side" itemscope itemtype="http://schema.org/Person">
<div class="inner">
<?php \ots\member_avatar(); ?>
<h2 class="name" itemprop="name"><?php echo the_title(); ?></h2>
<h3 class="title" itemprop="jobtitle"><?php echo get_post_meta( get_the_ID(), 'team_member_title', true ); ?></h3>
<?php if ( get_option( \ots\Options::SHOW_SINGLE_SOCIAL ) == 'on' ) : ?>
<div class="social">
<?php \ots\do_member_social_links(); ?>
</div>
<?php endif; ?>
</div>
</div>
<div class="sc_single_main sc-skills">
<?php $quote = get_post_meta( get_the_ID(), 'team_member_quote', true ); ?>
<?php if ( !empty( $quote ) ) : ?>
<div class="sc_personal_quote">
<span class="sc_team_icon-quote-left"></span>
<span class="sc_personal_quote_content"><?php esc_html_e( $quote ); ?></span>
</div>
<?php endif; ?>
<?php the_content(); ?>
<?php if( get_post_meta( get_the_ID(), 'team_member_article_bool', true ) == 'on' ) : ?>
<div class="articles">
<h2><?php esc_html_e( get_post_meta( get_the_ID(), 'team_member_article_title', true ) ); ?></h2>
<div class="sc_member_articles">
<?php foreach( \ots\get_member_articles() as $article ) : ?>
<div class="article">
<a href="<?php the_permalink( $article ); ?>"><?php echo get_the_title( $article ); ?></a>
</div>
<?php endforeach; ?>
<div class="clear"></div>
</div>
</div>
<?php endif; ?>
</div>
<div class="sc_team_single_skills">
<?php if ( get_post_meta( get_the_ID(), 'team_member_skill_bool', true ) == 'on' ) : ?>
<div class="inner">
<h3 class="skills-title"><?php esc_html_e( get_post_meta( get_the_ID(), 'team_member_skill_title', true ) ); ?></h3>
<?php do_member_skills(); ?>
</div>
<?php endif; ?>
<?php if ( get_post_meta( get_the_ID(), 'team_member_tags_bool', true ) == 'on' ) : ?>
<div class="inner">
<div class="sc-tags">
<h3 class="skills-title"><?php esc_html_e( get_post_meta( get_the_ID(), 'team_member_tags_title', true ) ); ?></h3>
<?php $tags = explode( ',', get_post_meta( get_the_ID(), 'team_member_tags', true ) ); ?>
<?php foreach( $tags as $tag ) : ?>
<span class="sc-single-tag"><?php esc_html_e( $tag ); ?></span>
<?php endforeach; ?>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php get_footer(); ?>