-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
executable file
·217 lines (176 loc) · 7.74 KB
/
front-page.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
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?php get_header();?>
<!-- Main jumbotron for a primary marketing message or call to action -->
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
$image = $image[0]; ?>
<?php else :
$image = get_bloginfo( 'stylesheet_directory') . '/images/default_cat_img.jpg'; ?>
<?php endif; ?>
<div class="jumbotron" style="background-image: url('<?php echo $image; ?>')" >
<div class="container">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</div>
</div>
<div class="container">
<div class="activities">
<div class="row">
<div class="col-sm-2">
<i class="fa fa-desktop fa-5x"></i>
</div>
<div class="col-sm-4">
<h4>DESIGN</h4>
<p class="p1">
Donec id elit non mi porta gravida at eget metus.
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
<div class="col-sm-2">
<i class="fa fa-heart fa-5x"></i>
</div>
<div class="col-sm-4">
<h4>COSPLAY</h4>
<p class="p1">
Donec id elit non mi porta gravida at eget metus.
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<i class="fa fa-camera-retro fa-5x"></i>
</div>
<div class="col-sm-4">
<h4>PHOTOGRAPHY</h4>
<p>
Donec id elit non mi porta gravida at eget metus.
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
<div class="col-sm-2">
<i class="fa fa-video-camera fa-5x"></i>
</div>
<div class="col-sm-4">
<h4>VIDEO</h4>
<p>
Donec id elit non mi porta gravida at eget metus.
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
</div>
</div>
</div>
<div class="clearfix">
<div class="projects">
<div class="container">
<h3>Most Recent Projects</h3>
<div class="row">
<div class="container">
<div class="my-work">
<?php
$args = array(
'post_type'=>'portfolio',
'posts_per_page' => 1,
);
$the_query = new WP_Query($args);
?>
<?php if (have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();?>
<div class="col-sm-6 portfolio-piece">
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src($thumbnail_id, 'thumnail-size', true);
?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title(); ?> graphic"><span class='blue-overlay'><h2><?php the_title(); ?></h2></span></a>
</div>
<?php endwhile; endif; wp_reset_postdata();
$args2 = array(
'post_type'=>'cosplay',
'posts_per_page' => 1,
);
$query2 = new WP_Query( $args2 );
?>
<?php if (have_posts()) : while ($query2->have_posts()) : $query2->the_post();?>
<div class="col-sm-6 portfolio-piece">
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src($thumbnail_id, 'thumnail-size', true);
?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title(); ?> graphic"><span class='blue-overlay'><h2><?php the_title(); ?></h2></span></a>
</div>
<?php endwhile; endif; wp_reset_postdata();
$args2 = array(
'post_type'=>'cosplay',
'posts_per_page' => 1,
'offset'=>1,
);
$query2 = new WP_Query( $args2 );
?>
<?php if (have_posts()) : while ($query2->have_posts()) : $query2->the_post();?>
<div class="col-sm-6 portfolio-piece">
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src($thumbnail_id, 'thumnail-size', true);
?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title(); ?> graphic"><span class='blue-overlay'><h2><?php the_title(); ?></h2></span></a>
</div>
<?php endwhile; endif; wp_reset_postdata();
$args = array(
'post_type'=>'portfolio',
'posts_per_page' => 1,
'offset'=> 1,
);
$the_query = new WP_Query($args);
?>
<?php if (have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();?>
<div class="col-sm-6 portfolio-piece">
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src($thumbnail_id, 'thumnail-size', true);
?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title(); ?> graphic"><span class='blue-overlay'><h2><?php the_title(); ?></h2></span></a>
</div>
<?php endwhile; endif; wp_reset_postdata();
?>
</div>
</div>
</div>
<a href="portfolio" class="see-more">view all my work ></a>
</div>
</div>
</div>
<div class="container">
<blockquote>
We do not need magic to transform our world. We carry all of the power we need inside ourselves already.
</blockquote>
<cite>- J.K. Rowling</cite>
</div>
<div class="container">
<div class="latest">
<h3>Latest Blog Posts</h3>
<div class="row">
<?php $the_query = new WP_Query( 'showposts=3' ); ?>
<?php if (have_posts()) : while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<?php
$thumbnail_id = get_post_thumbnail_id();
$thumbnail_url = wp_get_attachment_image_src($thumbnail_id, 'medium', true);
?>
<div class="col-sm-4 blog-front">
<a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_url[0]; ?>" alt="<?php the_title(); ?> graphic"><h4><?php the_title(); ?></h4></a>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
</div>
<!-- Example row of columns -->
<!-- <div class="row">
<div class="col-md-4">
<?php if (dynamic_sidebar('front-left')); ?>
</div>
<div class="col-md-4">
<?php if (dynamic_sidebar('front-center')); ?>
</div>
<div class="col-md-4">
<?php if (dynamic_sidebar('front-right')); ?>
</div>
</div> -->
<?php get_footer(); ?>