-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-project.php
executable file
·98 lines (73 loc) · 2 KB
/
single-project.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
<?php
/**
* The Template for displaying all single project posts
*
* Please see /external/starkers-utilities.php for info on get_template_parts()
*
* @package WordPress
* @subpackage Starkers
* @since Starkers 4.0
*/
?>
<?php get_template_parts( array( 'parts/shared/html-header', 'parts/shared/header' ) ); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php get_template_parts( array( 'parts/shared/background-image' ) ); ?>
<div class="container">
<article>
<section class="project-body">
<div class="about-project">
<div class="project-intro">
<p><?php echo(get_field('project_introduction')); ?></p>
<a class="view-work button" title="" href="<?php echo(get_field('url')); ?>">
<?php if (get_field('link-label')) {
echo(get_field('link-label'));
} else {
echo('View website');
} ?>
</a>
</div>
<div class="project-role">
<h2>Role</h2>
<ul>
<li>
<?php
if (get_field('role')) {
echo implode('</li><li>', get_field('role'));
}
?>
</li>
</ul>
<h2>Client / Agency</h2>
<ul class="client-agency">
<?php
if (get_field('client')) {
echo('<li>'.(get_field('client')).'</li>');
}
if (get_field('agency')) {
echo('<li>'.(get_field('agency')).'</li>');
} ?>
</ul>
</div>
</div>
<div class="project-images">
<?php $attachments = new Attachments( 'my_attachments' ); ?>
<?php if( $attachments->exist() ) : ?>
<ul>
<?php while( $attachments->get() ) : ?>
<li>
<img src="<?php echo $attachments->src( 'full' ); ?>" alt="" />
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<?php the_content(); ?>
</section>
</article>
</div>
<div class="meta-bar">
<div class="container">
</div>
</div>
<?php endwhile; ?>
<?php get_template_parts( array( 'parts/shared/footer','parts/shared/html-footer' ) ); ?>