-
Notifications
You must be signed in to change notification settings - Fork 22
/
date.php
68 lines (50 loc) · 1.7 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
61
62
63
64
65
66
67
68
<?php
/**
* The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second.
*
* @package Mayer
* @since 1.0.0
*/
?>
<?php get_header(); ?>
<div id="primary-wrapper">
<div id="primary" class="container">
<?php if ( is_rtl() || mayer_has_left_sidebar() ) { ?>
<?php get_sidebar(); ?>
<?php } ?>
<main id="main" class="site-main col-lg-8 col-md-8" role="main">
<?php if ( function_exists( 'yoast_breadcrumb' ) ) { ?>
<?php yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' ); ?>
<?php } ?>
<div class="archive-header">
<h4><<?php printf( __( 'Archives For %s', 'mayer' ), mayer_get_the_time() ); ?></h4>
</div><!-- .archive-header -->
<?php while( have_posts() ) { ?>
<?php the_post(); ?>
<div <?php post_class(); ?>>
<h2 class="post-title entry-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h2><!-- .post-title -->
<?php get_template_part( 'partials/post-meta' ); ?>
<div class="post-content">
<?php if ( has_excerpt() ) { ?>
<?php the_excerpt(); ?>
<?php } else { ?>
<?php the_content( __( 'Read More', 'mayer' ) ); ?>
<?php } ?>
</div><!-- .post-content -->
<?php if ( mayer_is_paginated_post() ) { ?>
<?php get_template_part( 'partials/post-pagination' ); ?>
<?php } ?>
</div><!-- div -->
<?php } ?>
<?php get_template_part( 'partials/pagination' ); ?>
</main><!-- #main -->
<?php if ( ! is_rtl() && ! mayer_has_left_sidebar() ) { ?>
<?php get_sidebar(); ?>
<?php } ?>
</div><!-- #primary -->
</div><!-- /#primary-wrapper -->
<?php get_footer(); ?>