-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
73 lines (66 loc) · 1.86 KB
/
single.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
<?php
while (have_posts()) {
the_post();
get_header();
?>
<main class="main">
<section class="hero hero-single">
<div class="container">
<h1 class="hero-single__title">
<?php the_title(); ?>
</h1>
</div>
</section>
<div class="container">
<?php if (!is_front_page() && function_exists('yoast_breadcrumb')) { ?>
<div class="single-breadcrumb">
<?php yoast_breadcrumb('<div class="single-breadcrumb__list">', '</div>'); ?>
</div>
<?php } ?>
<div class="inner">
<div class="content">
<?php the_post_thumbnail(); ?>
<div class="meta-single">
<div class="meta-single__item meta-single__cat">
<?php the_category(', '); ?>
</div>
<div class="meta-single__item meta-single__date">
Veröffentlicht: <?php the_date('d.m.Y') ?>
</div>
<div class="meta-single__item meta-single__modif">
Erneut: <?php the_modified_date('d.m.Y') ?>
</div>
<div class="meta-single__item meta-single__author">
Autor, Doctor:
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>">
<?php echo get_the_author_meta('display_name', get_the_author_meta('ID')); ?>
</a>
</div>
</div>
<div class="rich-text section single-content">
<?php
the_content();
get_template_part('parts/sections/main-faq');
get_template_part('parts/blocks/page-author');
?>
</div>
</div>
<aside class="sidebar">
<div class="team-vidget">
<?php get_template_part('parts/blocks/form-sidebar'); ?>
</div>
</aside>
</div>
</div>
<?php
get_template_part('parts/sections/blog-slider');
get_template_part('parts/sections/contact');
?>
</main>
<?php if (!empty(carbon_get_post_meta(get_the_ID(), ''))) : ?>
<?php echo carbon_get_post_meta(get_the_ID(), ''); ?>
<?php endif ?>
<?php
}
get_footer();
?>