-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy patharchive.php
More file actions
51 lines (51 loc) · 1.69 KB
/
archive.php
File metadata and controls
51 lines (51 loc) · 1.69 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
<?php
/*
Template name: 归档页面
Template Post Type: pages
*/
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<link type="text/css" rel="stylesheet" href="<?php echo $src_cdn; ?>/style/notes.css?v=<?php echo get_theme_info(); ?>" />
<?php get_head(); ?>
</head>
<body class="<?php theme_mode(); ?>">
<div class="content-all">
<div class="win-top bg" style="background: url() top center /cover">
<header>
<nav id="tipson" class="ajaxloadon">
<?php get_header(); ?>
</nav>
</header>
<em class="digital_mask" style="background: url(<?php echo $img_cdn; ?>/images/svg/digital_mask.svg)"></em>
<video src="" poster="<?php echo $img_cdn; ?>/images/archives.jpg" preload autoplay muted loop x5-video-player-type="h5" controlsList="nofullscreen nodownload"></video>
<h5 class="workRange wow fadeInUp" data-wow-delay="0.2s">
<?php
global $wp_query;
$dates = $wp_query->query;
$date_yea = isset($dates['year']) ? $dates['year'] : false;
$date_mon = array_key_exists('monthnum',$dates) ? '<b> '.$dates['monthnum'].' </b>月' : '';
if ($date_yea) echo '<b>'.$date_yea.'</b> 年'.$date_mon.'中';
echo '找到<b> '.$wp_query->found_posts.' </b>篇记录';
$string = 'Archives of '.$date_yea;
?>
</h5>
</div>
<div class="content-all-windows">
<div class="win-nav-content">
<div class="win-content main">
<div class="notes notes_default" style="max-width: 100%;min-height: 360px;">
<?php the_posts_with_styles($string); ?>
</div>
</div>
</div>
</div>
<footer>
<?php get_footer(); ?>
</footer>
</div>
<!-- siteJs -->
<?php get_foot(); ?>
<!-- inHtmlJs -->
</body></html>