-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-artist.php
144 lines (105 loc) · 4.43 KB
/
single-artist.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
<?php
get_header();
$container = get_theme_mod( 'understrap_container_type' );
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
?>
<div class="wrapper site-main posts" id="wrapper-index">
<section class="header-section"></section>
<div class="p-5">
<?php the_title( '<h1 class="entry-title text-center brand-blue text-uppercase brand-bold">', '</h1>' ); ?>
</div>
<div class="container">
<div class="row mb-5">
<div class="col-md-4">
<div class="text-center">
<img src="<?=get_the_post_thumbnail_url( $post->ID, 'full' ); ?>" alt="<?the_title();?>">
</div>
</div>
<div class="col-md-8">
<div class="row mb-4">
<div class="col-md-6">
<div class="">
Artist: <?php the_field( 'directory_first_name' ); ?> <?php the_field( 'directory_last_name' ); ?>
</div>
</div>
<div class="col-md-6">
<div class="">
Business: <?php the_field( 'business_name' ); ?>
</div>
</div>
</div>
<div class="row mb-4">
<div class="col-md-6">
<div class="">
From: <?php the_field( 'from_location' ); ?>
</div>
</div>
<div class="col-md-6">
<div class="">
Medium: <?php the_field( 'medium' ); ?>
</div>
</div>
</div>
<div class="mb-4">
Booth: <?php the_field( 'booth_number' ); ?>
</div>
<div class="mb-4">
Biography:<br>
<div class="brand-thin"><?php the_field( 'biography' ); ?></div>
</div>
</div>
</div>
<div class="text-center mb-5">
Social Links:<br>
/ <a href="<?php the_field( 'external_link' ); ?>" target="_blank"><i class="fa fa-globe"></i> Website Link</a> /
<?php if ( have_rows( 'social_links' ) ) : ?>
<?php while ( have_rows( 'social_links' ) ) : the_row(); ?>
<?php
$net = null;
switch (get_sub_field( 'network' )) {
case 'facebook':
$net = 'facebook';
break;
case 'twitter':
$net = 'twitter';
break;
case 'instagram':
$net = 'instagram';
break;
case 'youtube':
$net = 'youtube';
break;
case 'etsy':
$net = 'etsy';
break;
case 'linkedin':
$net = 'linkedin';
break;
case 'pinterest':
$net = 'pinterest';
break;
}
?>
<?php ; ?>
<a href="<?php the_sub_field( 'url' ); ?>" target="_blank"><i class="fa fa-<?=$net;?>"></i> <?=ucfirst($net);?></a> /
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="mb-5 text-center">
Artist Gallery:<br>
<?php $artist_gallery_images = get_field( 'artist_gallery' ); ?>
<?php if ( $artist_gallery_images ) : ?>
<?php foreach ( $artist_gallery_images as $artist_gallery_image ): ?>
<a href="<?php echo $artist_gallery_image['url']; ?>">
<img src="<?php echo $artist_gallery_image['sizes']['thumbnail']; ?>" alt="<?php echo $artist_gallery_image['alt']; ?>" />
</a>
<p><?php echo $artist_gallery_image['caption']; ?></p>
<?php endforeach; ?>
<?php endif; ?>
</div>
<div class="mb-5 text-center">
Similar Artists:<br>
</div>
</div>
</div>
<?php get_footer(); ?>