-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle-services.php
77 lines (53 loc) · 2.01 KB
/
single-services.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
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Padang_Padang
*/
get_header(); ?>
<div id="primary" class="content-area row">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'slideshow' ); ?>
<article>
<header class="article-header">
<h1 class="page-title"><?php the_title(); ?></h1>
</header>
<?php if ( is_active_sidebar( 'services_sidebar' ) ) { ?>
<section class="entry-content">
<?php } else { ?>
<section class="entry-content">
<?php } ?>
<section class="service-section" id="general-service">
<?php fsc_figure( 'fsc_general_info_photo', 'medium_large', 'service-thumb', 'service-thumb-caption') ?>
<h2><?php the_field( 'fsc_general_info_title' ); ?></h2>
<?php the_field( 'fsc_general_info_text' ); ?>
<div class="clear"></div>
</section>
<?php get_template_part( 'template-parts/client-reviews' ); ?>
<section class="service-section" id="areas-served">
<?php fsc_figure( 'fsc_areas_served_photo', 'medium_large', 'service-thumb', 'service-thumb-caption') ?>
<h2 class="service-title"><?php the_field( 'fsc_areas_served_title' ); ?></h2>
<?php the_field( 'fsc_areas_served_text' ); ?>
<div class="clear"></div>
</section>
<section class="service-section" id="rates">
<?php fsc_figure( 'fsc_rates_photo', 'medium_large', 'service-thumb', 'service-thumb-caption') ?>
<h2 class="service-title"><?php the_field( 'fsc_rates_title' ); ?></h2>
<?php the_field( 'fsc_rates_text' ); ?>
<div class="clear"></div>
</section>
</section>
<footer class="article-footer">
</footer>
</article>
<?php endwhile; ?>
<?php get_template_part( 'template-parts/footer-cta' ); ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer();