-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
186 lines (159 loc) · 6.67 KB
/
Copy pathfront-page.php
File metadata and controls
186 lines (159 loc) · 6.67 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php get_header(); ?>
<div class="hero">
<div class="container">
<div class="intro">
<div class="intro__wrap">
<h1 class='intro__title'>Dan Brown</h1>
<p class="intro__text">I am a creator, <a href="http://www.github.com/slightlyoffbeat" target="blank">developer</a>, product guy, strategist, homebrewer, <a href="https://www.strava.com/athletes/573766" target="_blank">runner</a>,
sock enthusiast, beard evangelist, writer, drummer, adventurer, Oxford comma advocate,
and <a target="_blank" href="https://www.linkedin.com/in/slightlyoffbeat">human Swiss Army Knife</a>.</p>
<?php
if( have_rows('social_links', 'options') ):
while ( have_rows('social_Links', 'options') ) : the_row();
?>
<a target="_blank" href="<?php the_sub_field('social_link')?>"><i class="intro__icon fa fa-<?php the_sub_field('social_icon')?>" aria-hidden="true"></i></a>
<?php
endwhile;
else :
endif;
?>
</div>
<span class="scroll-down"><span>Scroll Down</span></span>
</div> <!--/hero-wrap-->
</div>
</div>
<?php
$featured_1x1_1 = get_field('featured_1x1-1', 'option');
$featured_1x1_2 = get_field('featured_1x1-2', 'option');
$featured_1x1_3 = get_field('featured_1x1-3', 'option');
$featured_1x2_1 = get_field('featured_1x2-1', 'option');
$featured_2x2 = get_field('featured_2x2', 'option');
$featured_1x3 = get_field('featured_1x3', 'option');
?>
<div class="work home-slate">
<div class="container">
<h2 class="section-title">My Work</h2>
<a class="work__link" href="<?php echo get_permalink( $featured_1x1_1 ) ?>">
<div class="work__item work__item--1x1">
<div style="background-image: url('<?php the_field('1x1-image', $featured_1x1_1); ?>')"
class="work__photo"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_1x1_1 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_1x1_1); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
<a class="work__link" href="<?php echo get_permalink( $featured_1x2_1 ) ?>">
<div class="work__item work__item--1x2">
<div style="background-image: url('<?php the_field('1x2-image', $featured_1x2_1); ?>')" class="work__photo"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_1x2_1 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_1x2_1); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
<a class="work__link" href="<?php echo get_permalink( $featured_2x2 ) ?>">
<div class="work__item work__item--2x2">
<div style="background-image: url('<?php the_field('2x2-image', $featured_2x2); ?>')"
class="work__photo work__photo--double"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_2x2 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_2x2); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
<a class="work__link" href="<?php echo get_permalink( $featured_1x1_2 ) ?>">
<div class="work__item work__item--1x1">
<div style="background-image: url('<?php the_field('1x1-image', $featured_1x1_2); ?>')"
class="work__photo"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_1x1_2 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_1x1_2); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
<a class="work__link" href="<?php echo get_permalink( $featured_1x1_3 ) ?>">
<div class="work__item work__item--1x1">
<div style="background-image: url('<?php the_field('1x1-image', $featured_1x1_3); ?>')"
class="work__photo"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_1x1_3 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_1x1_3); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
<a class="work__link" href="<?php echo get_permalink( $featured_1x3 ) ?>">
<div class="work__item work__item--1x3">
<div style="background-image: url('<?php the_field('1x3-image', $featured_1x3); ?>')"
class="work__photo"></div>
<div class="work__hover">
<div class="work__hover-outer">
<div class="work__hover-inner">
<div class="work__hover-content">
<h4><?php echo get_the_title( $featured_1x3 ) ?></h4>
<span class="work__info"><?php the_field('role', $featured_1x3); ?></span>
</div>
</div>
</div>
</div>
</div>
</a>
</div> <!--/container-->
</div> <!--/work-->
<!-- <div class="snippet home-slate">
<div class="container">
<h2 class="section-title">Words I've Written</h2>
<div class="snippet__post">
<h3 class="snippet__title">Switching to all-grain brewing: Building my MLT.</h3>
<span class="snippet__meta">Beer / May 1, 2016</span>
<a class="button snippet__button">Read More</a>
</div>
<div class="snippet__post">
<h3 class="snippet__title">Switching to all-grain brewing: Building my MLT.</h3>
<span class="snippet__meta">Beer / May 1, 2016</span>
<a class="button snippet__button">Read More</a>
</div>
<div class="snippet__post">
<h3 class="snippet__title">Switching to all-grain brewing: Building my MLT.</h3>
<span class="snippet__meta">Beer / May 1, 2016</span>
<a class="button snippet__button">Read More</a>
</div>
</div>
</div> -->
<div class="insta home-slate">
<div class="container">
<h2 class="section-title">Me IRL</h2>
<div id="instafeed"></div>
</div>
</div> <!--/insta-->
<?php get_footer(); ?>