-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-projects.php
More file actions
46 lines (34 loc) · 1.18 KB
/
single-projects.php
File metadata and controls
46 lines (34 loc) · 1.18 KB
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
<?php
/**
* The Template for displaying all single posts.
*
* @package Arenson
* @since Arenson 1.0
*/
get_header(); ?>
<div id="primary" class="site-content single-project">
<?php while ( have_posts() ) : the_post();
// Slideshow or Hero Image --------------------------------------
if (get_field('slides')) { $slides = get_field('slides'); } else { $slides = false; }
$args = array(
'id' => 'project-hero-slides',
'class' => '',
'image_size' => 'product_images',
'full_bleed' => false,
'with_fade' => false,
'slides' => $slides
);
$hero_slides = get_hero_slides($args); ?>
<header class="page-header <? echo ($hero_slides) ? 'with-slides' : 'no-slides'; ?>">
<? echo ($hero_slides) ? $hero_slides : null; ?>
<div class="centering_box">
<h1 class="page-title"><?php the_title(); ?></h1>
<hr />
</div>
</header><!-- .entry-header -->
<div id="content" class="single centering_box" role="main">
<div class="entry-content"><? the_content(); ?></div>
</div><!-- #content -->
<?php endwhile; // end of the loop. ?>
</div><!-- #primary .site-content -->
<?php get_footer(); ?>