-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdate.php
More file actions
115 lines (88 loc) · 2.06 KB
/
date.php
File metadata and controls
115 lines (88 loc) · 2.06 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
<?php
/**
* The date archive
*
* @package huhu
* @since 0.2
*/
get_header(); ?>
<main id="primary" class="site-content">
<header class="date-header">
<div class="date-title">
<?php
if ( is_month() ) {
echo 'Monat: ';
echo get_the_date( 'F Y' );
}
elseif ( is_year() ) {
echo 'Jahr: ';
echo get_the_date( 'Y' );
}
elseif ( is_day() ) {
echo 'Datum: ';
echo get_the_date( );
}
?>
</div>
<div class="date-description">
<?php
if ( is_month() ) {
echo 'Alle Beiträge vom ';
echo get_the_date( 'F Y' );
}
elseif ( is_year() ) {
echo 'Alle Beiträge des Jahres ';
echo get_the_date( 'Y' );
}
elseif ( is_day() ) {
echo 'Alle Beiträge, welche am ';
echo get_the_date( );
echo ' veröffentlicht wurden';
}
?>
</div>
</header>
<?php
// Start the Loop.
while ( have_posts() ) : the_post(); ?>
<?php
if(!has_post_format( array( 'quote', 'image' ))) {
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php /* Headline */ ?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h2>
</header>
<?php /* Text */ ?>
<div class="entry-content">
<?php
if(is_post_type('pinseldisko')) {
echo '<p>';
echo get_the_excerpt();
echo '</p>'; ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail('thumb'); ?></a>
<?php
} elseif (is_post_type('raketenstaub')) {
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail('thumb'); ?></a>
<?php
} else {
the_excerpt();
} ?>
</div>
<?php /* Date */ ?>
<footer class="entry-date published">
<?php echo get_the_date(); ?>
<?php get_template_part( 'microformats' ) ?>
</footer>
</article>
<?php } ?>
<?php endwhile;?>
</main>
<?php get_footer(); ?>