-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
66 lines (48 loc) · 1.96 KB
/
archive.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
<?php get_header(); ?>
<div id="content" class="clearfix">
<div id="main" class="col620 clearfix" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title">
<?php
if ( is_day() ) :
printf( __( 'Daily Archives: %s', 'attorney' ), '<span class="colortxt">' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Monthly Archives: %s', 'attorney' ), '<span class="colortxt">' . get_the_date( 'F Y' ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Yearly Archives: %s', 'attorney' ), '<span class="colortxt">' . get_the_date( 'Y' ) . '</span>' );
else :
_e( 'Archives', 'attorney' );
endif;
?>
</h1>
</header>
<?php rewind_posts(); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php if (function_exists("attorney_pagination")) {
attorney_pagination();
} elseif (function_exists("attorney_content_nav")) {
attorney_content_nav( 'nav-below' );
}?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'attorney' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content post_content">
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'attorney' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); ?>
</div> <!-- end #content -->
<?php get_footer(); ?>