-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-angebot.php
executable file
·87 lines (82 loc) · 3.21 KB
/
single-angebot.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
<div class="">
<div class="row non-printable">
<div class="col text-center col-xs-4">
<?php
$next_post = get_next_post();
if (!empty( $next_post )):
$nextthumbnail = get_the_post_thumbnail($next_post->ID, array(150,150) );
//echo $nextthumbnail;
?>
<div class="">
<a class="btn btn-lg btn-block btn-primary" href="<?php echo get_permalink( $next_post->ID ); ?>">
<i class="fa fa-toggle-left"></i><span class="hidden-xs"> <?php echo $next_post->post_title; ?></span>
</a>
</div>
<?php
endif;
?>
</div>
<div class="col col-xs-4">
<div class="">
<div class="text-center">
<a class="btn btn-lg btn-block btn-primary" href="/angebote">Übersicht</a>
</div>
</div>
</div>
<div class="col col-xs-4">
<?php
$previous_post = get_previous_post();
if (!empty( $previous_post )):
$previousthumbnail = get_the_post_thumbnail($previous_post->ID, array(150,150) );
//echo $previousthumbnail;
?>
<div class="">
<a class="btn btn-lg btn-block btn-primary" href="<?php echo get_permalink( $previous_post->ID ); ?>">
<span class="hidden-xs"> <?php echo $previous_post->post_title; ?> </span><i class="fa fa-toggle-right"></i>
</a>
</div>
<?php
endif;
?>
</div>
</div>
</div>
<div class="margin-top-20">
<div class="box">
<?php while (have_posts()) : the_post(); ?>
<?php
$permalink = urlencode(get_the_permalink());
$title = urlencode(get_the_title());
$kontakt_url = "/kontakt/?url=" . $permalink . "&title=" . $title;
?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/Offer">
<div class="row">
<div class="col col-md-4">
<div class="text-center">
<?php the_post_thumbnail('thumbnail', array('class' => 'img-circle img-shadow')); ?>
<span itemprop="image" hidden>http://www.rodereisen.de<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?></span>
<div class="hidden-xs margin-top-20">
<a class="btn btn-danger btn-lg btn-block" href="<?php echo $kontakt_url; ?>">Informationen anfordern</a>
</div>
<?php get_template_part('templates/entry-meta'); ?>
</div>
</div>
<div class="col col-md-8">
<h1 class="entry-title gradient" itemprop="name"><?php the_title(); ?></h1>
<?php if( get_field('field_53808a959373e') ): ?>
<h2 class="gradient-red text-right" itemprop="price"><?php the_field('field_53808a959373e'); ?> Euro</h2>
<?php endif; ?>
<div itemprop="description">
<?php the_content(); ?>
</div>
</div>
</div>
<div class="row visible-xs">
<div class="col col-lg-12">
<a class="btn btn-danger btn-lg btn-block" href="<?php echo $kontakt_url; ?>">Informationen anfordern</a>
</div>
</div>
</article>
<?php endwhile; ?>
</div>
</div>