/
date.php
60 lines (40 loc) · 1.64 KB
/
date.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
<?php
/**
* Date Template
*
* The date template is used when a date-/time-based archive is shown. This file is more
* or a less a placeholder. It will only show archives if not handled by day.php, month.php,
* week.php, or year.php.
*
* @package Hybrid
* @subpackage Template
*/
get_header(); ?>
<div id="content" class="hfeed content">
<?php hybrid_before_content(); // Before content hook ?>
<div class="archive-info date-info">
<h1 class="archive-title date-title"><?php the_time( __( 'F jS, Y', 'hybrid' ) ); ?></h1>
<div class="archive-description date-description">
<p>
<?php printf( __( 'You are browsing the archive for %1$s.', 'hybrid' ), get_the_time( __( 'F jS, Y', 'hybrid' ) ) ); ?>
</p>
</div><!-- .archive-description .date-description -->
</div><!-- .archive-info .date-info -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php get_the_image( array( 'custom_key' => array( 'Thumbnail' ), 'size' => 'thumbnail' ) ); ?>
<?php hybrid_before_entry(); // Before entry hook ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php hybrid_after_entry(); // After entry hook ?>
</div><!-- .hentry -->
<?php endwhile; ?>
<?php else: ?>
<p class="no-data">
<?php _e( 'Apologies, but no results were found.', 'hybrid' ); ?>
</p><!-- .no-data -->
<?php endif; ?>
<?php hybrid_after_content(); // After content hook ?>
</div><!-- .content .hfeed -->
<?php get_footer(); ?>