-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-service.php
More file actions
67 lines (51 loc) · 1.65 KB
/
single-service.php
File metadata and controls
67 lines (51 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
get_header(); ?>
<div id="primary" class="site-content single-service">
<?php while ( have_posts() ) : the_post();
// Slideshow or Hero Image --------------------------------------
if (get_field('slides')) {
$slides = get_field('slides');
//dump($slides);
if ($slides[0][slide_image] == null) { $slides = false;
} else { $slides = get_field('slides'); }
} else {
$slides = false;
}
$args = array(
'id' => 'idea-hero-slides',
'class' => '',
'image_size' => 'hero_slideshow',
'full_bleed' => true,
'with_fade' => true,
'slides' => $slides
);
$hero_slides = get_hero_slides($args); ?>
<header class="page-header <? echo ($hero_slides) ? 'with-slides' : 'no-slides'; ?>">
<? echo get_subnavbar(); ?>
<? if ($hero_slides) {
echo $hero_slides;
if (!$slides[0][slide_large_text] && !$slides[0][slide_small_text]) { ?>
<div class="overlay-text">
<div class="centering_box">
<h1 class="large-text"><?php the_title(); ?></h1>
</div>
</div>
<? } else { ?>
<div class="centering_box">
<h1 class="page-title"><?php the_title(); ?></h1>
<hr />
</div>
<? } ?>
<? } else { ?>
<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"><?php the_content(); ?> </div>
</div><!-- #content -->
<?php endwhile; // end of the loop. ?>
</div><!-- #primary .site-content -->
<?php get_footer(); ?>