-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
136 lines (105 loc) · 4.1 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php get_header(); ?>
<div class="content">
<?php if ( is_category() ) : ?>
<div class="rflow-vcard">
<div class="rflow-mugshot"></div>
<div class="rflow-vital-statistics">
<h1 class="rflow-title">Alastair Dant</h1>
<p class="rflow-role">Interactive Graphics Specialist</p>
<p class="rflow-asl">
<span>SF Bay Area, CA</span><span> | </span><span>> 15 years experience</span>
</p>
<table class="rflow-info-table">
<tr>
<td class="rflow-info-field">Current</td>
<td class="rflow-info-value">
<a href="http://riffyn.com">Interactive Lead, Riffyn, Inc</a>
</td>
</tr>
<tr class="rflow-former">
<td class="rflow-info-field">Previously</td>
<td class="rflow-info-value">
<a href="http://www.nytimes.com/interactive/2014/12/29/us/year-in-interactive-storytelling.html">New York Times</a>,
<a href="https://www.theguardian.com/profile/guardian-interactive-department">Guardian News</a>,
<a href="http://mindcandy.com">Mind Candy</a>
</td>
</tr>
<tr class="rflow-former">
<td class="rflow-info-field">Education</td>
<td class="rflow-info-value">
<a href="http://www.ucl.ac.uk/pals">Cognitive Science, University College London</a>
</td>
</tr>
</table>
</div>
<div class="rflow-contact-me">
<ul>
<li>
<a data-title="Email" href="mail-to:[email protected]">
<span class="genericon genericon-mail"></span>
</a>
</li>
<li>
<a data-title="LinkedIn" href="https://www.linkedin.com/in/alastairdant">
<span class="genericon genericon-linkedin"></span>
</a>
</li>
<li>
<a data-title="Twitter" href="https://twitter.com/ajdant">
<span class="genericon genericon-twitter"></span>
</a>
</li>
<li>
<a data-title="GitHub" href="https://github.com/rflow">
<span class="genericon genericon-github"></span>
</a>
</li>
</ul>
</div>
</div>
<?php endif; ?>
<div class="page-title">
<div class="section-inner">
<h4><?php if ( is_day() ) : ?>
<?php echo get_the_date( get_option('date_format') ); ?>
<?php elseif ( is_month() ) : ?>
<?php echo get_the_date('F Y'); ?>
<?php elseif ( is_year() ) : ?>
<?php echo get_the_date('Y'); ?>
<?php elseif ( is_category() ) : ?>
<?php printf( __( '%s', 'fukasawa' ), '' . single_cat_title( '', false ) . '' ); ?>
<?php elseif ( is_tag() ) : ?>
<?php printf( __( 'Tag: %s', 'fukasawa' ), '' . single_tag_title( '', false ) . '' ); ?>
<?php elseif ( is_author() ) : ?>
<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
<?php printf( __( 'Author: %s', 'fukasawa' ), $curauth->display_name ); ?>
<?php else : ?>
<?php _e( 'Archive', 'fukasawa' ); ?>
<?php endif; ?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if ( "1" < $wp_query->max_num_pages ) : ?>
<span><?php printf( __('Page %s of %s', 'fukasawa'), $paged, $wp_query->max_num_pages ); ?></span>
<div class="clear"></div>
<?php endif; ?></h4>
</div> <!-- /section-inner -->
</div> <!-- /page-title -->
<?php if ( have_posts() ) : ?>
<?php rewind_posts(); ?>
<div class="posts" id="posts">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</div> <!-- /posts -->
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div class="archive-nav">
<div class="section-inner">
<?php echo get_next_posts_link( '« ' . __('Older posts', 'fukasawa')); ?>
<?php echo get_previous_posts_link( __('Newer posts', 'fukasawa') . ' »'); ?>
<div class="clear"></div>
</div>
</div> <!-- /post-nav archive-nav -->
<?php endif; ?>
<?php endif; ?>
</div> <!-- /content -->
<?php get_footer(); ?>