-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-team.php
executable file
·69 lines (54 loc) · 2.21 KB
/
page-team.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
<?php
/**
* Template Name: Team
*
* @package Shiftwp
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article class="page">
<header class="page-title">
<h1><?php the_title(); ?></h1>
</header>
<?php the_content(); ?>
<ul class="listing users">
<?php
$blogusers = get_users( array(
'meta_query' => array(
array(
'key' => 'corder',
'type' => 'numeric',
'value' => 0,
'compare' => '>',
),
),
'orderby' => 'meta_value',
) );
foreach ( $blogusers as $user ) { ?>
<li id="user-<?php echo $user->ID; ?>">
<a href="/people/<?php echo $user->user_nicename; ?>">
<?php
$avatar = get_user_meta($user->ID, 'avatar', true);
echo wp_get_attachment_image( $avatar, 'thumbnail' );
?>
<span class="name">
<strong><?php echo esc_html( $user->display_name ); ?></strong>
<?php echo esc_html( $user->job_title ); ?>
</span>
<span class="info">
<?php if( get_user_meta($user->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($user->ID, 'e-mail', true) ); ?></p><?php } ?>
<?php if( get_user_meta($user->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($user->ID, 'phone', true) ); ?></p><?php } ?>
<?php if( get_user_meta($user->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($user->ID, 'twitter', true) ); ?></p><?php } ?>
<span class="button">View Profile</span>
</span>
</a>
</li>
<?php } ?>
</ul>
</article>
<?php endwhile; // end of the loop. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer(); ?>