-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-portfolio.php
59 lines (59 loc) · 2.13 KB
/
single-portfolio.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
<?php
/*
Template Name: Single Portfolio Page
*/
?>
<?php get_header(); ?>
<main>
<div class="container detailcontainer">
<div class="row">
<div class="col-md-12 backBtnDiv">
<a id="backLink" href="http://madwester.com/home/#portfolio"><i class="fa fa-angle-double-left"></i>Go Back to Portfolio</a>
</div>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<?php
endwhile;
?>
<div class="row detailrow">
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-12">
<?php if( get_field('image_1') ): ?>
<img src="<?php the_field('image_1'); ?>" class="img-responsive"/>
<?php endif; ?>
<?php if( get_field('image_2') ): ?>
<img src="<?php the_field('image_2'); ?>" class="img-responsive"/>
<?php endif; ?>
<?php if( get_field('image_3') ): ?>
<img src="<?php the_field('image_3'); ?>" class="img-responsive"/>
<?php endif; ?>
<?php if( get_field('vertical_image_1') ): ?>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-6">
<img src="<?php the_field('vertical_image_1'); ?>" class="img-responsive"/>
</div>
<?php if( get_field('vertical_image_2') ): ?>
<div class="col-md-6">
<img src="<?php the_field('vertical_image_2'); ?>" class="img-responsive"/>
</div>
<?php endif; ?>
<?php if( get_field('vertical_image_3') ): ?>
<div class="col-md-6">
<img src="<?php the_field('vertical_image_3'); ?>" class="img-responsive"/>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 detailtext">
<h1><?php the_title(); ?></h1>
<p><?php the_field('description'); ?></p>
<a href="<?php the_field('external_link_to_project');?>"><?php the_field('external_link_title');?><i class="fa fa-angle-double-right"></i>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>