-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
executable file
·66 lines (55 loc) · 1.56 KB
/
single.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
<?php
/**
*
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
get_header();
?>
<main id="site-content" role="main">
<div class="entry-content" style="margin: 200px !important;">
<?php if ( have_rows( 'group_1' ) ) : ?>
<?php while ( have_rows( 'group_1' ) ) :
the_row(); ?>
<?php if ( have_rows( 'group_2' ) ) : ?>
<?php while ( have_rows( 'group_2' ) ) :
the_row(); ?>
<?php if ( have_rows( 'group_3' ) ) : ?>
<?php while ( have_rows( 'group_3' ) ) :
the_row(); ?>
<?php if ( $testing = get_sub_field( 'testing' ) ) : ?>
<?php echo esc_html( $testing ); ?>
<?php endif; ?>
<?php if ( $colors = get_sub_field( 'colors' ) ) : ?>
<?php if( $colors ): ?>
<ul>
<?php foreach( $colors as $color ): ?>
<li><span class="color-<?php echo $color['value']; ?>"><?php echo $color['label']; ?></span></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
<?php $founders = get_field( 'founders' );
if( $founders ): ?>
<ul class="volunteers-list">
<?php foreach( $founders as $founder ):
$avatar = get_avatar_url($founder->ID);
?>
<li>
<img src="<?php echo esc_attr(get_avatar_url($founder->ID)); ?>" alt="author-avatar" />
<a href="<?php echo esc_attr($founder->user_url); ?>"><?php echo $founder->display_name; ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>