-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
executable file
·149 lines (122 loc) · 5.5 KB
/
author.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
/**
* Author profile
*
* @package Shiftwp
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
global $wp_query;
$curauth = $wp_query->get_queried_object();
?>
<article class="hentry author">
<section class="entry-content">
<div id="profile" class="tabs-container">
<header>
<h1>Profile</h1>
</header>
<?php echo wpautop($curauth->description, false); ?>
<?php if( get_user_meta($curauth->ID, 'e-mail', true)) { ?><p><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-envelope-o fa-stack-1x fa-inverse"></i></span> <?php echo esc_html( get_user_meta($curauth->ID, 'e-mail', true) ); ?></p><?php } ?>
<?php if( get_user_meta($curauth->ID, 'phone', true)) { ?><p><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-phone fa-stack-1x fa-inverse"></i></span> <?php echo esc_html( get_user_meta($curauth->ID, 'phone', true) ); ?></p><?php } ?>
<?php if( get_user_meta($curauth->ID, 'linked_in', true) ) { ?><p><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-linkedin fa-stack-1x fa-inverse"></i></span> <a href="<?php echo esc_html( get_user_meta($curauth->ID, 'linked_in', true) ); ?>">Linked In Profile</a></p><?php } ?>
<?php if( get_user_meta($curauth->ID, 'googleplus', true) ) { ?><p><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-google-plus fa-stack-1x fa-inverse"></i></span> <a href="<?php echo esc_html( get_user_meta($curauth->ID, 'googleplus', true) ); ?>">Google+</a></p><?php } ?>
<?php if( get_user_meta($curauth->ID, 'twitter', true) ) { ?><p><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-twitter fa-stack-1x fa-inverse"></i></span> @<?php echo esc_html( get_user_meta($curauth->ID, 'twitter', true) ); ?></p><?php } ?>
</div>
<div id="comment" class="tabs-container">
<header class="entry-header">
<h1>Comment</h1>
</header>
<?php
// Display connected pages
foreach ( $current_user_posts as $post ) : setup_postdata( $post ); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php
endforeach;
wp_reset_postdata();?>
<h1><a href="https://twitter.com/shift_org">@Shift_org</a></h1>
<div id="twitter"
<?php if( get_user_meta($curauth->ID, 'twitter_search_terms', true) ) { ?> data-hashtag="<?php echo get_user_meta($curauth->ID, 'twitter_search_terms', true); ?>"<?php } ?>
<?php if( get_user_meta($curauth->ID, 'twitter', true) ) { ?> data-username="<?php echo get_user_meta($curauth->ID, 'twitter', true); ?>"<?php } ?>
></div>
</div>
<div id="research" class="tabs-container">
<header class="entry-header">
<h1>Research</h1>
</header>
<?php
// Display connected pages
if ( $connected_research->have_posts() ) :
?>
<?php while ( $connected_research->have_posts() ) : $connected_research->the_post(); ?>
<div class="cleaning"></div>
<a target="_blank" class="research-image" href="<?php echo get_post_meta( get_the_ID(), 'file_url', true ); ?>"><?php the_post_thumbnail(array('class' => 'research')); ?></a>
<div class="col c5">
<h3><a target="_blank" href="<?php echo get_post_meta( get_the_ID(), 'file_url', true ); ?>"><?php the_title(); ?></a></h3>
<p><?php the_date(); ?></p>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
<?php
// Prevent weirdness
wp_reset_postdata();
endif;
?>
</div>
<div id="products" class="tabs-container">
<header class="entry-header">
<h1>Products</h1>
</header>
<?php
// Display connected pages
if ( $connected_product->have_posts() ) : ?>
<ul class="listing products">
<?php while ( $connected_product->have_posts() ) : $connected_product->the_post(); ?>
<li id="project-<?php echo $user->id; ?>">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('thumbnail'); ?>
<p class="name">
<strong><?php the_title(); ?></strong>
<?php echo get_post_meta( get_the_ID(), 'what_does_it_do', true ); ?>
</p>
</a>
</li>
<?php endwhile; ?>
</ul>
<?php
// Prevent weirdness
wp_reset_postdata();
endif;
?>
</div>
<?php if(get_user_meta($curauth->ID, 'coverage', true)) { ?>
<div id="coverage" class="tabs-container">
<header class="entry-header">
<h1>Coverage</h1>
</header>
<?php echo wpautop(get_user_meta($curauth->ID, 'coverage', true)); ?>
</div>
<?php } ?>
</section>
<?php /*
<ul>
<li><?php echo $curauth->aim; ?></li>
<li><?php echo $curauth->display_name; ?></li>
<li><?php echo $curauth->first_name; ?></li>
<li><?php echo $curauth->ID; ?></li>
<li><?php echo $curauth->jabber; ?></li>
<li><?php echo $curauth->last_name; ?></li>
<li><?php echo $curauth->nickname; ?></li>
<li><?php echo $curauth->user_email; ?></li>
<li><?php echo $curauth->user_login; ?></li>
<li><?php echo $curauth->user_nicename; ?></li>
<li><?php echo $curauth->user_registered; ?></li>
<li><?php echo $curauth->user_url; ?></li>
<li><?php echo $curauth->yim; ?></li>
</ul>
*/ ?>
</article>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>