forked from understrap/understrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
237 lines (203 loc) · 9.59 KB
/
front-page.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
* This is only a test.
* @package understrap
*/
get_header();
$container = get_theme_mod( 'understrap_container_type' );
?>
<?php if ( is_front_page() || is_home() ) : ?>
<?php get_template_part( 'global-templates/hero' ); ?>
<?php endif; ?>
<div class="wrapper" id="index-wrapper">
<div id="hero-slider" class="carousel slide" data-ride="carousel" data-interval="5000">
<div class="position-absolute d-flex h-100 align-items-center w-100" style="z-index: 4;">
<div class="container py-5 text-center hero-content text-white">
<h2 class="display-4 hero-heading">Eco Construction Group</h2>
<p class="hero-subheading"> Central Florida's premiere custom builder of energy efficient and eco-friendly construction.</p>
<br>
<div class="hero-buttons">
<a class="btn btn-primary btn-lg" href="/gallery/">View Gallery</a>
<a id="hero-contact-cta" class="btn btn-outline-light btn-lg" href="#contact-section" target="_blank" role="button">Start Your Project</a>
</div>
</div>
</div>
<ol class="carousel-indicators" style="z-index: 5;">
<li data-target="#hero-slider" data-slide-to="0" class="active"></li>
<li data-target="#hero-slider" data-slide-to="1"></li>
<li data-target="#hero-slider" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="hero-overlay"></div>
<img class="d-block carousel-img" src="/wp-content/uploads/2018/09/hero-1.jpg" alt="First slide">
</div>
<div class="carousel-item">
<div class="hero-overlay"></div>
<img class="d-block carousel-img" src="/wp-content/uploads/2018/11/hero-2.jpg" alt="Second slide">
</div>
<div class="carousel-item">
<div class="hero-overlay"></div>
<img class="d-block carousel-img" src="/wp-content/uploads/2018/11/hero-3.jpg" alt="Third slide">
</div>
<div class="carousel-item">
<div class="hero-overlay"></div>
<img class="d-block carousel-img" src="/wp-content/uploads/2018/11/hero-4.jpg" alt="Third slide">
</div>
<div class="carousel-item">
<div class="hero-overlay"></div>
<img class="d-block carousel-img" src="/wp-content/uploads/2018/11/hero-5.jpg" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#hero-slider" role="button" data-slide="prev" style="z-index:6">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#hero-slider" role="button" data-slide="next" style="z-index:6">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<section id="main-callout" class="bg-success d-flex">
<div class="container">
<div class="row align-items-center">
<div class="col-md-9 col-sm-12 text-white"><h5 class="mb-0">Lake County Custom Home Builders Since 2008.</h5></div>
<div class="col-md-3 col-sm-12 d-none d-md-block"><a id="contact-cta" class="btn btn-outline-light" href="#contact-section">Contact Us</a></div>
</div>
</div>
</section>
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
<div class="row">
<!-- Do the left sidebar check and opens the primary div -->
<?php get_template_part( 'global-templates/left-sidebar-check' ); ?>
<main class="site-main" id="main">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
//get_template_part( 'loop-templates/content', get_post_format() );
?>
<section class="main-content-section">
<div aria-hidden="true" class="big-text big-text-left text-light">Design Build</div>
<div class="container">
<div class="row" >
<h2 class="section-heading text-center">Design-Build</h2>
</div>
<div class="row" >
<h4 class="section-sub-heading text-center">Who We Are</h4>
</div>
<hr class="section-heading-separator">
<div class="row">
<div class="col-lg-2 main-thumb py-3"> <?php the_post_thumbnail(); ?></div>
<div class="col-lg-10 m-auto" > <?php echo get_the_content(); ?> </div>
</div>
</div>
</section>
<?php endwhile; ?>
<?php else : ?>
<?php the_content(); ?> </div>
<?php endif; ?>
</main><!-- #main -->
<!-- The pagination component -->
<?php understrap_pagination(); ?>
</div><!-- #primary -->
<!-- Sections -->
<div id="main-sections" class="container-fluid">
<div class="row">
<section id="our-services-section" class="col-md-12 text-light">
<div aria-hidden="true" class="big-text big-text-right">Our Services</div>
<div class="container" >
<div class="row" ><h2 class="section-heading text-center text-light">Our Services</h2></div>
<div class="row" ><h4 class="section-sub-heading text-center">What We Do</h4></div>
<hr class="section-heading-separator">
<div class="row" ><?php get_template_part( 'section-templates/our-services-loop' ); ?></div>
</div>
</section>
<section id="products-section" class="col-md-12">
<div class="container" >
<div class="row" ><h2 class="section-heading text-center">Our Products</h2></div>
<div class="row" ><h4 class="section-sub-heading text-center">What We Offer</h4></div>
<hr class="section-heading-separator">
<div class="row" ><?php get_template_part( 'section-templates/products-loop' ); ?></div>
</div>
</section>
<section id="team-section" class="col-md-12">
<div aria-hidden="true" class="big-text big-text-left">Meet Our Team</div>
<div class="container" >
<div class="row" ><h2 class="section-heading text-center text-light">Meet Our Team</h2></div>
<div class="row" ><h4 class="section-sub-heading text-center">The People That Make It All Happen</h4></div>
<hr class="section-heading-separator">
<div class="row" id="team-row" ><?php get_template_part( 'section-templates/teamprofiles-loop' ); ?></div>
</div>
</section>
<?php /* Commenting out section until they have testimonials
<section id="testimonials-section" class="col-md-12">
<div class="container" >
<div class="row" ><h2 class="section-heading text-center">Testimonials</h2></div>
<div class="row" ><h4 class="section-sub-heading text-center">What Our Clients Say About Us</h4></div>
<hr class="section-heading-separator">
<div class="row"><?php get_template_part( 'section-templates/testimonials-loop' ); ?></div>
</div>
</section>
<section id="features-callout-section" class="col-md-12">
<?php get_template_part( 'section-templates/features-callout' ); ?>
</section>
*/
?>
<section id="service-map-section" class="col-md-12">
<div class="map-wrapper">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d167638.13377337917!2d-81.65429098816242!3d28.79693917964429!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x7cdb1f93ee6ebd2c!2sEco+Construction+Group+LLC!5e0!3m2!1sen!2sus!4v1528071661353" width="100%" height="566" frameborder="0" style="border:0;" allowfullscreen></iframe>
</div>
</section>
<section id="contact-section" class="col-md-12">
<div class="container" >
<div class="row" ><h2 class="section-heading text-center">Contact Us</h2></div>
<div class="row" ><h4 class="section-sub-heading text-center">Let's Get Your Project Started</h4></div>
<hr class="section-heading-separator">
<div id="contact-address" class="row">
<div id="main-contact-form" class="col-md-12 col-lg-6">
<?php echo do_shortcode("[ninja_form id=2]"); ?>
</div>
<div id="contact-card" class="col-md-12 col-lg-6 px-lg-5 px-sm-1 card py-3 my-lg-5">
<?php echo do_shortcode("[contact-card]"); ?>
</div>
</div>
</div>
</section>
<section id="service-area-section" class="col-md-12 bg-dark text-light">
<div class="container" >
<div class="row" ><h3 class="section-heading text-center text-light">Proudly Serving</h3></div>
<hr class="section-heading-separator">
<div class="row justify-content-center" ><?php get_template_part( 'section-templates/geotargets-loop' ); ?></div>
</div>
</section>
</div>
</div>
<!-- Do the right sidebar check -->
<?php get_template_part( 'global-templates/right-sidebar-check' ); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?>
<script>
document.getElementById('contact-cta').addEventListener('click', function (e) {
e.preventDefault();
scrollTo (document.getElementById('contact-section'));
});
document.getElementById('hero-contact-cta').addEventListener('click', function (e) {
e.preventDefault();
scrollTo (document.getElementById('contact-section'));
});
</script>