forked from WuPlus/WP-Theme-Purity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·92 lines (89 loc) · 4.29 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
<?php get_header(); ?>
<div class="pure-u-1">
<div class="content">
<div class="pure-g-r" id='social'>
<div class="pure-u-1-5">
<a href='http://renren.com'><img src='<?php echo get_template_directory_uri(); ?>/icon/social-facebook-outline.svg'></img></a>
</div>
<div class="pure-u-1-5">
<a href='http://renren.com'><img src='<?php echo get_template_directory_uri(); ?>/icon/social-twitter-outline.svg'></img></a>
</div>
<div class="pure-u-1-5">
<a href='http://renren.com'><img src='<?php echo get_template_directory_uri(); ?>/icon/social-github-outline.svg'></img></a>
</div>
<div class="pure-u-1-5">
<a href='http://renren.com'><img src='<?php echo get_template_directory_uri(); ?>/icon/social-googleplus-outline.svg'></img></a>
</div>
<div class="pure-u-1-5">
<a href='http://renren.com'><img src='<?php echo get_template_directory_uri(); ?>/icon/social-rss-outline.svg'></img></a>
</div>
</div>
<h1 class="content-subhead">Page</h1>
<!-- A wrapper for all the blog posts -->
<div style="clear:both"></div>
<?php get_sidebar()?>
<div class="posts">
<!-- A single blog post -->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<section class="post" id="post-<?php the_ID(); ?>">
<header class="post-header">
<div class="post-avatar">
<?php echo get_avatar( get_the_author_email(), 47); ?>
</div>
<h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="post-meta">
作者 <a class="post-author"><?php the_author() ?></a> 分类
<?php
get_post_meta_info(the_ID());
?>
</p>
</header>
<div class="post-description">
<?php the_content('已经有'.getPostViews(get_the_ID()).'人阅读了余下的内容,点击阅读 »'); ?>
</div>
</section>
<?php endwhile; ?>
</div>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« OlderEntries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries»') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn'there.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_footer(); ?>
<div id="content1">
<a href="#modal" class="second">菜单</a>
</div>
<div id="modal">
<?php get_sidebar(); ?>
</div>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.7.1.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.pageslide.min.js"></script>
<script>
/* Slide to the left, and make it model (you'll have to call $.pageslide.close() to close) */
$(".second").pageslide({ direction: "left", modal: true });
$(".second").click(function(){
var ui = document.getElementById("sidebar-pure-u");
if(ui.style.display == "none"){
ui.style.display = "";
$.pageslide.close();
}else{
ui.style.display="none";
}
});
$(".pure-u-1").click(function(){
var ui = document.getElementById("sidebar-pure-u");
if(ui.style.display == "none"){
ui.style.display = "";
$.pageslide.close();
}
});
</script>
</body>
</html>