-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentkal.php
More file actions
132 lines (111 loc) · 4.47 KB
/
Copy pathcontentkal.php
File metadata and controls
132 lines (111 loc) · 4.47 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
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 /* Template Name: Content kalender */ ?>
<?php get_header(); ?>
<div class="hero background_img_services" style="background-image:url(<?php the_field('calender_hero_image'); ?>);">
<div class="container-fluid wrapper">
<div class="row">
<div class="col-sm-6 hero_services">
<div class="stroke_position_services">
<div class="stroke_services"></div>
</div>
<h1><?php the_field('calender_hero_title'); ?></h1>
</div>
<div class="col-sm-6">
</div>
</div>
</div>
</div>
<div class="container-fluid wrapper_content">
<div class="row">
<div class="col-md-6 download_wrapper">
<h2><?php the_field('content_calendar_header'); ?></h2>
<div class="stroke_position">
<div class="content_calendar_stroke"></div>
</div>
<p class="gray content_calendar_text"><?php the_field('content_calendar_content'); ?></p>
</div>
<div class="contact_form col-md-6 download">
<?php echo do_shortcode("[contact-form-7 id=1552]") ; ?>
</div>
</div>
</div>
<?php
$calendarimg = get_field('content_calendar_preview_calendar_image');
$previewheader = get_field('content_calendar_preview_header');
$previewtext = get_field('content_calendar_preview_text');
?>
<div class="container-fluid wrapper_content">
<div class="row">
<div class="col-md-6 preview_wrapper">
<img class="content_calendar_preview" src="<?php echo $calendarimg; ?>" alt="">
</div>
<div class="col-md-6 preview_wrapper">
<h2><?php echo $previewheader; ?></h2>
<div class="stroke_position">
<div class="content_calendar_stroke"></div>
</div>
<div class="gray content_calendar_text"><?php echo $previewtext; ?></div>
</div>
</div>
</div>
<!-- Slider med firma logoer (klienter?) -->
<div class="container-fluid">
<div class="row logo_slider">
<div class="col align-self-center">
<div class="owl-carousel owl-theme autoplay">
<?php
$images = get_field('firma_slider', 'option');
foreach ($images as $image):?>
<div>
<img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
</div>
<?php endforeach;?>
</div>
</div>
</div>
</div>
<?php get_footer(services); ?>
<script type="text/javascript">
/* Logo transition script */
$(document).scroll(function() {
scroll_pos = $(this).scrollTop();
if(scroll_pos > 620) {
$(".logo").html("<img src='<?php echo get_bloginfo('template_directory'); ?>/images/logo.svg'>");
} else {
$(".logo").html("<img src='<?php echo get_bloginfo('template_directory'); ?>/images/logo_neg.svg'>");
}
});
$(document).scroll(function() {
scroll_pos = $(this).scrollTop();
if(scroll_pos > 620) {
$(".input").addClass("out_black2");
} else {
$(".input").removeClass("out_black2");
}
});
$(document).scroll(function() {
scroll_pos = $(this).scrollTop();
if(scroll_pos > 620) {
$(".menubtn").addClass("menu_black");
} else {
$(".menubtn").removeClass("menu_black");
}
});
$(document).scroll(function() {
scroll_pos = $(this).scrollTop();
if(scroll_pos > 620) {
$(".header").addClass("out_white");
} else {
$(".header").removeClass("out_white");
}
});
ScrollReveal().reveal('.stroke_position_services', { distance: '350px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.hero_services h1', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.download_wrapper h2', { distance: '650px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.stroke_position', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.download_wrapper p', { distance: '650px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.contact_form', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.content_calendar_computer', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.preview_wrapper h2', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.content_calendar_text', { distance: '450px', easing: 'ease-in-out', duration: 900 });
ScrollReveal().reveal('.logo_slider', { distance: '450px', easing: 'ease-in-out', duration: 900 });
</script>