-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle-case_study.php
More file actions
47 lines (38 loc) · 1.72 KB
/
single-case_study.php
File metadata and controls
47 lines (38 loc) · 1.72 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
<?php
/**
* The template for displaying all single posts.
*
* @package obsub
*/
get_header(); ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$featured_image_id = get_post_thumbnail_id();
$cs_class = "full-height";
if ($featured_image_id) {
$featured_image_array = wp_get_attachment_image_src($featured_image_id, 'full', true);
$featured_image_url = $featured_image_array[0];
$cs_class .= " has-bg-image use-ui-light-theme";
}
?>
<section class="page-header page-section <?php echo $cs_class; ?>" style="<?php echo ($featured_image_id) ? "background-image:url( {$featured_image_url} )" : ""; ?> ">
<div class="section-content">
<div class="outer-container">
<h1 class="page-title inner-container h1 mt-nudge super"><?php echo get_the_excerpt(); ?></h1>
<h3 class="page-subtitle inner-container mt-3"><?php the_field('case_study_subtitle'); ?></h3>
<nav class="page-nav inner-container mt-3">
<ul class="list-unstyled mt-nudge">
<li><a href="#opportunity" class="future-A h3 smooth-scroll">opportunity</a></li>
<li><a href="#process" class="future-A h3 smooth-scroll">process</a></li>
<li><a href="#solution" class="future-A h3 smooth-scroll">solution</a></li>
</ul>
</nav>
</div>
</div>
<a href="#opportunity" class="scroll-down smooth-scroll"><span class="hide">Scroll down</span></a>
</section>
<?php get_template_part('content', $post->post_name); ?>
<div class="mt-4"><?php get_template_part('module', 'case-study-preview'); ?></div>
<?php //get_template_part('module', 'contact-form'); ?>
<?php endwhile; // end of the loop.?>
<?php get_footer(); ?>