forked from bigemployee/BigBlankTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-profile.php
39 lines (39 loc) · 2.18 KB
/
content-profile.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
<?php
/**
* The template used for displaying registered custom post type
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('profile'); ?> <?php schema(false, 'Person'); ?>>
<header class="entry-header">
<?php if (has_post_thumbnail()): ?>
<div id="featured-header">
<?php the_post_thumbnail('post-thumbnail', 'itemprop=image'); ?>
</div>
<?php endif; ?>
<?php the_title('<h1 class="entry-title" ' . schema('name', false, false) . '>', '</h1>'); ?>
<?php $title = get_post_meta(get_the_ID(), 'title', true); ?>
<?php $facebook = get_post_meta(get_the_ID(), 'facebook', true); ?>
<?php $twitter = get_post_meta(get_the_ID(), 'twitter', true); ?>
<?php $google_plus = get_post_meta(get_the_ID(), 'google+', true); ?>
<?php $instagram = get_post_meta(get_the_ID(), 'instagram', true); ?>
<?php $youtube = get_post_meta(get_the_ID(), 'youtube', true); ?>
<?php $pinterest = get_post_meta(get_the_ID(), 'pinterest', true); ?>
<?php bigblank_print($title, '<h2 ' . schema('jobTitle', false, false) . '><em>(', ')</em></h2>'); ?>
<?php bigblank_print($facebook, '<a href="', '"><i class="fa fa-facebook-square"></i></a>'); ?>
<?php bigblank_print($twitter, '<a href="', '"><i class="fa fa-twitter-square"></i></a>'); ?>
<?php bigblank_print($google_plus, '<a href="', '"><i class="fa fa-google-plus-square"></i></a>'); ?>
<?php bigblank_print($instagram, '<a href="', '"><i class="fa fa-instagram"></i></a>'); ?>
<?php bigblank_print($youtube, '<a href="', '"><i class="fa fa-youtube-play"></i></a>'); ?>
<?php bigblank_print($pinterest, '<a href="', '"><i class="fa fa-pinterest"></i></a>'); ?>
<?php if (has_term('', 'department')) : ?>
<span class="entry-meta entry-categories department">
<?php echo get_the_term_list($post->ID, 'department', '', ', ', ''); ?>
</span>
<?php endif; ?>
</header>
<section class="entry-content" <?php schema('description'); ?>>
<?php the_content(); ?>
<?php edit_post_link(__('Edit', 'bigblank')); ?>
</section>
</article>