/
archive.php
72 lines (43 loc) · 966 Bytes
/
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
<?php
/*
* list archived entries repects the archive type
*/
get_header()
?>
<div class="ym-column linearize-level-1">
<?php
get_sidebar()
?>
<div class="ym-col3">
<h2 class="ym-hideme"><?php _e("Content") ?></h2>
<?php
if (have_posts()) :
?>
<h3>
<?php
if (is_day()) :
printf(__('All archived articles from %1$s', 'sunlix'), get_the_date());
elseif (is_month()) :
printf(__('All archived articles from %1$s', 'sunlix'), get_the_date(_x('F Y', 'monthly archived articles', 'sunlix')));
elseif (is_year()) :
printf(__('All archived articles from %1$s', 'sunlix'), get_the_date(_x('Y', 'yearly archived articles', 'sunlix')));
else :
_e('All Archives', 'sunlix');
endif
?>
</h3>
<?php
sxPaging();
while (have_posts()) :
the_post();
get_template_part('content', get_post_format());
endwhile;
sxPaging();
else:
get_template_part("404");
endif
?>
</div>
</div>
<?php
get_footer();