-
Notifications
You must be signed in to change notification settings - Fork 1
/
taxonomy-personarole-geschaeftsstelle.php
89 lines (61 loc) · 2.79 KB
/
taxonomy-personarole-geschaeftsstelle.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
<?php get_header(); ?>
<?php
if ((get_theme_mod('dav_breadcrumb') != false) && (get_theme_mod('dav_breadcrumb') == 1)) {
if (function_exists('nav_breadcrumb')) nav_breadcrumb();
}
get_theme_mod('dav_excerpt') ? $excerpt = get_theme_mod('dav_excerpt') : $excerpt = 160;
?>
<div class="container">
<div class="container-content">
<div class="row">
<div class="col-xs-12 col-sm-8">
<h1>Unsere <?php single_cat_title('',true); ?></h1>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="row">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php
$persona_meta = get_post_meta($post->ID);
$persona_thumb = get_the_post_thumbnail($post->ID, 'persona-thumb', array('class' => 'img-fluid '));
?>
<div class="col-md-4 pt-4">
<div class="card card-person ' . $persona_color . '">
<div class="row m-3 align-self-stretch align-items-baseline">
<div class="col-4">
<?php echo $persona_thumb; ?>
</div>
<div class="col-8">
<span class="person-name"><?php the_title(); ?></span>
<span class="persona-title"><?php echo get_the_term_list($post->ID,'personarole','',', '); ?></span>
<span class="person-title"><?php echo $persona_meta['persona_daten_funktion'][0]; ?></span>
<hr>
</div>
</div>
<div class="row m-3" style="margin-top: 0 !important;">
<div class="col-12 p-0">
<a class="btn btn-primary" type="button" href="<?php echo get_permalink($post->ID); ?>">Mehr zu <?php echo $post->post_title; ?></a>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php else : ?>
<div class="row">
<div class="col-12">
<h1>Entschuldigung!</h1>
<p>Leider gibt es hier nicht den gewünschten Inhalt.</p>
</div>
</div>
<?php endif; ?>
<div class="row mt-5">
<div class="col-xs-12 col-sm-8 col-lg-9">
<?php if (function_exists("pagination")) {pagination(); } ?>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>