This repository was archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·122 lines (93 loc) · 3.68 KB
/
archive.php
File metadata and controls
executable file
·122 lines (93 loc) · 3.68 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
116
117
118
119
120
121
122
<?php
/**
* The template for display Archive pages.
*
* @package North
* @since 3.2.2
*/
get_header(); ?>
<header class="page-titles">
<div class="container clearfix">
<!-- titles -->
<h2 class="entry-title">
<?php
if ( is_category() ) :
single_cat_title( __( 'Category / ', 'north' ) );
elseif ( is_tag() ) :
single_tag_title( __( 'Tag / ', 'north' ) );
elseif ( is_search() ):
printf( __( 'Search Results for: %s', 'north' ), '' . get_search_query() . '' );
elseif ( is_day() ) :
printf( __( 'Day %s', 'north' ), ' / <span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Month %s', 'north' ), ' / <span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'north' ) ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Year %s', 'north' ), ' / <span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'north' ) ) . '</span>' );
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
_e( 'Asides', 'north' );
elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :
_e( 'Galleries', 'north' );
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
_e( 'Images', 'north' );
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
_e( 'Videos', 'north' );
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
_e( 'Quotes', 'north' );
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
_e( 'Links', 'north' );
elseif ( is_tax( 'post_format', 'post-format-status' ) ) :
_e( 'Statuses', 'north' );
elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :
_e( 'Audios', 'north' );
elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :
_e( 'Chats', 'north' );
elseif( is_post_type_archive() ):
printf( __( 'Category / %s', 'north' ) . post_type_archive_title() );
else :
_e( 'Archives', 'north' );
endif;
?>
</h2>
</div>
</header>
<section class="main">
<div class="container clearfix">
<div id="content">
<div class="posts">
<!-- Grab the posts -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class('post'); ?>>
<div class="box-wrap">
<div class="box">
<!-- post content -->
<div class="post-content">
<?php get_template_part( 'template-gallery' ); ?>
<div class="blog-entry-title">
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'north' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="blog-entry-date">
<span>
<em><?php _e( 'By', 'north' ); ?></em> <?php the_author_posts_link(); ?>
</span>
<span>
<em><?php _e( 'On', 'north' ); ?></em> <?php echo get_the_date(); ?>
</span>
<span>
<em><?php _e( 'With', 'north' ); ?></em> <a href="<?php the_permalink(); ?>/#comment-jump" title=""><?php comments_number(__('No Comments','north'),__('1 Comment','north'),__( '% Comments','north') );?></a>
</span>
</div>
</div>
<?php the_excerpt(); ?>
</div><!-- post content -->
</div><!-- box -->
</div><!-- box wrap -->
</article><!-- post-->
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php north_page_nav(); ?>
</div><!-- content -->
<?php get_sidebar(); ?>
</div><!-- container -->
</section><!-- main -->
<!-- footer -->
<?php get_footer(); ?>