This repository was archived by the owner on Dec 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-services.php
132 lines (115 loc) · 5.38 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
/**
* The template for displaying all single posts
*
* @package UnderStrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
$container = get_theme_mod( 'understrap_container_type' );
?>
<header id="inner-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="header-caption">
<h1><?php the_field('main_title_service_post'); ?></h1>
<?php if( get_field('subtitle_service_post') ): ?>
<h2><?php the_field('subtitle_service_post'); ?></h2>
<?php endif; ?>
</div>
<!-- /.header-caption -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</header>
<section id="about-page" class="section-area">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="intro">
<?php the_field('intro_content'); ?>
</div>
<!-- /.fit-wrap -->
<div class="about-body">
<?php if( have_rows('content_layout_service_post') ): ?>
<?php while( have_rows('content_layout_service_post') ): the_row(); ?>
<?php if( get_row_layout() == 'con_left_img_right' ): ?>
<div class="row content-block">
<div class="col-md-8">
<div class="about-content">
<?php the_sub_field('content_block'); ?>
</div>
<!-- /.about-content -->
</div>
<!-- /.col-md-8 -->
<div class="col-md-4">
<div class="about-photo">
<img src="<?php the_sub_field('featured_image'); ?>" alt="">
</div>
<!-- /.about-photo -->
</div>
<!-- /.col-md-4 -->
</div>
<!-- /.row -->
<?php elseif( get_row_layout() == 'image_left_content_right' ): ?>
<div class="row content-block">
<div class="col-md-4">
<div class="about-photo">
<img src="<?php the_sub_field('featured_image'); ?>" alt="">
</div>
<!-- /.about-photo -->
</div>
<!-- /.col-md-4 -->
<div class="col-md-8">
<div class="about-content">
<?php the_sub_field('content_block'); ?>
</div>
<!-- /.about-content -->
</div>
<!-- /.col-md-8 -->
</div>
<!-- /.row -->
<?php elseif( get_row_layout() == 'full_width_content' ): ?>
<div class="row content-block">
<div class="col-md-12">
<div class="about-content">
<?php the_sub_field('content_block_full'); ?>
</div>
<!-- /.about-content -->
</div>
<!-- /.col-md-8 -->
</div>
<!-- /.row -->
<?php elseif( get_row_layout() == 'movers_list' ): ?>
<h3><?php the_sub_field('main_title_movers'); ?></h3>
<div class="row from-to-list">
<div class="col-md-6">
<?php the_sub_field('content_left'); ?>
</div>
<!-- /.col -->
<div class="col-md-6">
<?php the_sub_field('content_right_movers'); ?>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<!-- /.about-body -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</section>
<!-- /#about-area -->
<?php
get_footer();