-
Notifications
You must be signed in to change notification settings - Fork 1
/
home_template.php
146 lines (131 loc) · 5.26 KB
/
home_template.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
<?php
/*
Template Name: Startseite
*/
?>
<?php get_header();?>
<?php $post_id = 51; //Post ID der Startseite?>
<div id="welcome-carousel" class="carousel slide" data-ride="carousel" data-interval="false">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#welcome-carousel" data-slide-to="0" class="active"></li>
<li data-target="#welcome-carousel" data-slide-to="1"></li>
<li data-target="#welcome-carousel" data-slide-to="2"></li>
<li data-target="#welcome-carousel" data-slide-to="3"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="<?php the_field('carousel1'); ?>">
</div>
<div class="item">
<img src="<?php the_field('carousel2'); ?>">
</div>
<div class="item">
<img src="<?php the_field('carousel3'); ?>">
</div>
<div class="item">
<img src="<?php the_field('carousel4'); ?>">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#welcome-carousel" role="button" data-slide="prev">
<img class="chevron-left" src="<?php bloginfo('template_url')?>/icons/arrow_left.svg">
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#welcome-carousel" role="button" data-slide="next">
<img class="chevron-right" src="<?php bloginfo('template_url')?>/icons/arrow_right.svg">
<span class="sr-only">Next</span>
</a>
</div>
<div class="container box">
<h2 class="uppercase"><?php the_field('heading',$post_id); ?></h3>
<hr class="orange-divider"/>
<div class="centred">
<p><?php the_field('text1', $pos_id); ?></p>
</div>
</div>
<!-- START THE FEATURETTES -->
<div class="container-fluid grey box">
<div class="container">
<div class="row featurette">
<div class="col-md-6 col-md-push-6">
<h2 class="featurette-heading"><img src="<?php bloginfo('template_url')?>/icons/house.svg"></h2>
<p><?php the_field('featurette_text1', $post_id); ?></p>
</div>
<div class="col-md-6 col-md-pull-6">
<img class="featurette-image img-responsive center-block" src="<?php the_field('featurette_img1', $post_id); ?>" alt="" />
</div>
</div>
</div>
</div>
<div class="container-fluid box">
<div class="container">
<div class="row featurette">
<div class="col-md-6">
<h2 class="featurette-heading"> <img src="<?php bloginfo('template_url')?>/icons/team.svg"></h2>
<p><?php the_field('featurette_text2', $post_id); ?></p>
</div>
<div class="col-md-6">
<img class="featurette-image img-responsive center-block" src="<?php the_field('featurette_img2', $post_id); ?>" alt="" />
</div>
</div>
</div>
</div>
<!-- /END THE FEATURETTES -->
<!-- AKTUELLES Post Lop-->
<?php // Display blog posts on any page @ https://m0n.co/l
$temp = $wp_query; $wp_query= null;
$wp_query = new WP_Query(); $wp_query->query('posts_per_page=8' . '&paged='.$paged);?>
<div class="container-fluid grey box">
<div class="container">
<h2 class="uppercase">Aktuelles</h1>
<hr class="orange-divider"/>
<div class="centred" style="margin-bottom: 20px;">
<p>Was gibt es Neues bei W. Richter Physiotherapeuten?</p>
<p>Hier finden Sie aktuelle Informationen rund um unsere Praxen:</p>
</div>
<div class="container">
<!-- Slider main container -->
<div class="swiper-container">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<!-- Slides -->
<div class="swiper-slide">
<div class="news-container">
<div class="row" style="height: 100%; margin: 0;">
<div class="img-col col-xs-12 col-sm-5 col-md-5" style="padding:0;">
<div class="info-img" style="background-image: url(<?php the_field('img'); ?>"></div>
</div>
<div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-0 col-md-6 col-md-offset-0">
<h3 class ="swiper-title"><?php the_title(); ?></h3>
<p><?php the_field('preview'); ?></p>
</div>
<div class="col-xs-12 col-sm-1 col-md-1 btn-container" style="padding: 0;">
<div class="btn-container">
<a href ="<?php the_field('link'); ?>" type="button" class="info-box-btn" ><img class="news-btn" src="<?php bloginfo('template_url')?>/icons/arrow_right.svg"></a>
</div>
</div>
</div>
</div>
</div><!-- .swiper-slide -->
<?php endwhile; ?>
<?php else : ?>
<p><?php__('Keine aktuellen Beiträge'); ?></p>
<?php endif; ?>
...
</div><!-- .swiper-wrapper -->
</div><!-- .swiper-container -->
<div class="swiper-nav">
<!-- swiper-pagination -->
<div class="swiper-pagination"></div>
<!-- swiper navigation -->
<div class="button-prev"><img src="<?php bloginfo('template_url')?>/icons/arrow_left.svg"></div>
<div class="button-next"><img src="<?php bloginfo('template_url')?>/icons/arrow_right.svg"></div>
</div>
</div>
</div>
</div>
<?php get_footer();?>