-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.php
358 lines (315 loc) · 17 KB
/
blog.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<?php
$postid = $_GET["post_id"];
$my_meta = get_post_meta($postid,'_my_meta',TRUE);
?>
<section id="blog">
<div class="header-break">
<h1 class="white-shadow-text">Blog <span class="red"></span></h1>
</div>
<div id="myCarousel4" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<div class="bg-wrapper ">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 paddingnone">
<div class="hovereffect">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('blogs', 'feature-image-2')) :
MultiPostThumbnails::the_post_thumbnail('blogs', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;?>
<div class="overlay" data-target="#myCarousel4" data-slide-to="1">
<h3 class="white-shadow-text"><?php echo the_title();?></h3>
<div class="btn read-more" >View</div> </div>
<?php endwhile; endif;?>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 paddingnone">
<div class="hovereffect">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 1));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post();
?>
<?php
$postid = get_the_ID();
?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('blogs', 'feature-image-2')) :
MultiPostThumbnails::the_post_thumbnail('blogs', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;?>
<div class="overlay" data-target="#myCarousel4" data-slide-to="2">
<h3 class="white-shadow-text"><?php echo the_title();?></h3>
<a class="btn read-more" href="portfolio-single.php?post_id=<?php echo $postid ?>">View</a> </div>
<?php endwhile; endif;?>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 paddingnone">
<div class="hovereffect">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 2));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post();
?>
<?php
$postid = get_the_ID();
?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('blogs', 'feature-image-2')) :
MultiPostThumbnails::the_post_thumbnail('blogs', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;?>
<div class="overlay" data-target="#myCarousel4" data-slide-to="3">
<h3 class="white-shadow-text"><?php echo the_title();?></h3>
<a class="btn read-more" href="portfolio-single.php?post_id=<?php echo $postid ?>">View</a> </div>
<?php endwhile; endif;?>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 paddingnone">
<div class="hovereffect">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 3));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post();
?>
<?php
$postid = get_the_ID();
?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('blogs', 'feature-image-2')) :
MultiPostThumbnails::the_post_thumbnail('blogs', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;?>
<div class="overlay" data-target="#myCarousel4" data-slide-to="4">
<h3 class="white-shadow-text"><?php echo the_title();?></h3>
<p class="white-shadow-text white-text">client: <?php echo $client = $my_meta['client']; ?></p>
<a class="btn read-more" href="portfolio-single.php?post_id=<?php echo $postid ?>">View</a> </div>
<?php endwhile; endif;?>
</div>
</div>
<div class="col-lg-4 col-md-4 hidden-sm hidden-xs paddingnone">
<div class="hovereffect">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 4));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post();
?>
<?php
$postid = get_the_ID();
?>
<?php if (class_exists('MultiPostThumbnails')
&& MultiPostThumbnails::has_post_thumbnail('blogs', 'feature-image-2')) :
MultiPostThumbnails::the_post_thumbnail('blogs', 'feature-image-2', NULL /*, 'add class name here' */ ); endif;?>
<div class="overlay" data-target="#myCarousel4" data-slide-to="5">
<h3 class="white-shadow-text"><?php echo the_title();?></h3>
<a class="btn read-more" href="portfolio-single.php?post_id=<?php echo $postid ?>">View</a> </div>
<?php endwhile; endif;?>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-6 paddingnone">
<div class="hovereffect">
<img src="images/Blog-01.jpg" class="img-responsive"/>
<a href="blog-archive.php"><div class="overlay">
<h3 class="white-shadow-text">Blog Archive</h3>
<div class="btn read-more" >View</div>
</div></a>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 social-sec">
<div class="social-blocks">
<a href="http://www.linkedin.com/company/1067697?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A1067697%2Cidx%3A1-1-1%2CtarId%3A1448903982578%2Ctas%3Azonke%20ignition%20advertising" class="fa fa-linkedin fa-2x" target="_blank"></a>
</div>
<!--<div class="social-blocks"><a href="#" class="fa fa-dribbble fa-2x"></a></div>-->
<div class="social-blocks"><a href="https://www.facebook.com/ZonkeIgnitionAdvertising/" target="_blank" class="fa fa-facebook fa-2x fb"></a></div>
<div class="social-blocks"><a href="#" class="fa fa-twitter fa-2x"></a></div>
</div>
</div>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php include 'main-ft-img.php';?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
<!-- End content block -->
</div>
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 1));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php include 'main-ft-img.php';?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
</div>
<!-- End content block -->
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 2));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php include 'main-ft-img.php';?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
</div>
<!-- End content block -->
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 3));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php include 'main-ft-img.php';?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
</div>
<!-- End content block -->
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div><?php /*?>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 4));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<?php include 'main-ft-img.php';?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
</div>
<!-- End content block -->
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div>
<div class="item">
<?php $catquery = new WP_Query( array( 'post_type' => 'blogs', 'posts_per_page' => 1, 'offset' => 4));
if (have_posts()): while($catquery->have_posts()) : $catquery->the_post(); ?>
<?php
$postid = get_the_ID();
?>
<!-- Begin stage wrapper -->
<div class="video-wrapper" style="background: url(<?php echo $thumb_url; ?>) no-repeat center center fixed ;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;min-height:100%;">
<!-- Background wrapper: -->
<div class="bg-wrapper" style="min-height:800px;">
<div class="block-wrapper">
<div class="content-wrapper">
<!-- Begin content block -->
<div class="content-block">
<h1 class="white-shadow-text"><?php echo the_title();?></h1>
<p class="white-shadow-text"><?php echo the_excerpt();?></p><br><br>
<a class="orange-link" href="#myCarousel4" role="button" data-slide-to="0">‹ Back to blogs</a> <a class="orange-link" href="blog-single.php?post_id=<?php echo $postid ?>">Read More</a>
</div>
<!-- End content block -->
</div>
</div>
</div>
</div>
<?php endwhile; endif;?>
<!-- Soical sharing single posts - works using post ID -->
<?php include 'blog-single-share.php';?>
</div>
<?php */?>
</div>
<!-- Left and right controls -->
<a class="left carousel-control back" href="#myCarousel4" role="button" data-slide="prev"> <!--<span class="glyphicon glyphicon-chevron-left"></span><i class="fa fa-chevron-left" style="-webkit-font-smoothing: antialiased; width:50px; height:50px;"></i>--><img src="images/left-arrow.png" width="30" height="36" style="display:block;" border="0" class="arrow-left"/><span class="sr-only">Previous</span> </a> <a class="right carousel-control forw" href="#myCarousel4" role="button" data-slide="next"> <img src="images/right-arrow.png" width="30" height="36" style="display:block;" border="0" class="arrow-right"/><!--<span class="glyphicon glyphicon-chevron-right"></span>--> <span class="sr-only">Next</span> </a> </div>
<!--<div id="myCarousel44" class="carousel slide" data-ride="carousel" data-interval="false">
</div>-->
</section>