-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home.php
153 lines (111 loc) · 4.19 KB
/
page-home.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
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* Author: StudioViq
* Author URI: http://studioviq.nl/
*
*
* Template Name: HomePage
*
*
*/ get_header(); ?>
<?php //while ( have_posts() ) : the_post(); ?>
<?php //get_template_part('content', 'page') ?>
<?php //endwhile; ?>
<?php //get_template_part('loop', 'portfolio') ?>
<?php // if( dynamic_sidebar('widget-area-one') ); ?>
<div id="background-full" class="container-fluid">
<div class="inner-shell">
<div class="row">
<script>
$(document).ready(function(){
$("#background-full").backstretch([
<?php
$images = CFS()->get('homepage_background_loop');
foreach ($images as $image) {
echo "'{$image['background_image_full']}', ";
}
?>
], {duration: 3000, fade: 750});
});
</script>
<?php while(have_posts()) : the_post(); ?>
<div class="top-content col-xs-12">
<div class="">
<div class="col-xs-12 col-sm-8">
<!-- <h1>For some awesome advice on any legal matter, come to us.</h1> -->
<h1><?php get_custom_value(heading_title); ?></h1>
<p class="subtitle"><?php get_custom_value(heading_subtitle); ?></p>
</div>
<div class="col-xs-12 col-sm-4">
<a href="<?php get_custom_value(button_url); ?>" class="button btn-blue"><?php get_custom_value(button_value); ?></a>
</div>
</div>
</div> <!-- end top-content -->
<?php
endwhile;
?>
<div class="main-content">
<div class="container-fluid">
<div class="inner-shell">
<div class="row">
<div class="col-sm-6 col-md-4 element">
<div class="row">
<?php if( dynamic_sidebar('widget-blue-home-block') ); ?>
<div class="col-md-12">
<div class="content-block referenties bg-darkblue">
<h2>Referenties</h2>
<div class="flexslider">
<ul class="slides">
<?php
$args = array( 'post_type' => 'Referenties_slider' );
$loop = new WP_Query( $args );
while ($loop->have_posts() ) : $loop->the_post();
?>
<?php
$fields = CFS()->get('referentie');
foreach ($fields as $field) {
echo "<li>";
echo '<div class="ref-item">';
echo "<p>{$field['beschrijving']}</p>";
echo '<div class="signature">';
echo "<h3>{$field['naam']}</h3>";
echo "<p>{$field['naam_kantoor']}</p>";
echo "</div>";
echo "</div></li>";
}
?>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<?php if( dynamic_sidebar('widget-area-home-categories') ); ?>
<div class="col-sm-12 col-md-4 ">
<div class="row">
<?php include('partials/latestnews.php'); ?>
<div class="col-sm-6 col-md-12">
<div class="content-block bg-darkblue">
<h2>Neem contact met ons op</h2>
<?php echo do_shortcode('[contact-form-7 id="41" title="Neem vrijblijvend contact op"]'); ?>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end inner-shell -->
</div> <!-- end container-fluid -->
</div> <!-- end main-content -->
</div> <!-- end row -->
</div> <!-- end container -->
</div> <!-- end container-fluid -->
<?php // if( dynamic_sidebar('widget-area-one') ); ?>
<?php get_footer(); ?>