-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-project.php
43 lines (37 loc) · 1.57 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
<?php get_header(); ?>
<?php get_template_part( 'nav' ); // Navigation bar (nav.php) ?>
<div id="sectionHeaderBackground">
<?php single_cat_title(); ?>
<div id="sectionHeader" class="container">
<div class="row">
<div id="sectionHeader-left" class="span6">
<div class="client"><?php echo get_the_term_list ( $post->ID, 'client', '', ', ','' );?></div>
<h1><?php echo empty( $post->post_parent ) ? get_the_title( $post->ID ) : get_the_title( $post->post_parent );?></h1>
</div>
<div id="sectionHeader-right" class="span6 hidden-phone">
<nav id="nav-single" class="pull-right">
<span class="nav-next"><?php next_post_link( '%link', __( '<span class="btn"><span class="meta-nav">←</span> Recent</span>', 'spottsfield' ) ); ?></span>
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="btn">Past <span class="meta-nav">→</span></span>', 'spottsfield' ) ); ?></span>
</nav>
</div>
</div>
</div>
</div>
<!-- /end SectionHeader -->
<div id="mainBackground" class="<?php echo $post_slug=$post->post_name;?>">
<div id="main" class="container">
<div class="row">
<div id="mainContent" class="span12">
<?php if(has_term( 'film', 'project-type', $post->ID ) ) : ?>
<?php get_template_part( 'content-film'); ?>
<?php elseif(has_term( 'web', 'project-type', $post->ID ) ) : ?>
<?php get_template_part( 'content-web'); ?>
<?php else : ?>
<?php get_template_part( 'content-project'); ?>
<?php endif; ?>
</div>
<!-- /end main content -->
</div>
</div>
</div>
<?php get_footer(); ?>