-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
71 lines (63 loc) · 1.86 KB
/
index.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
<?php get_header();?>
<div id="innter-box">
<div id="outer-box">
<div id="menuCaption" onmouseover="popMenu('menuLists');" onmouseout="popMenu('menuLists');">
<!-- 在这一行中加入你的RSS图片或文字 -->
<a id="rss" href="#"><img src="<?php bloginfo('template_url') ?>/images/rss.gif"></a>
<!-- <ul id="menuLists" style="display:none;"> -->
<!-- 下面li中显示的是你所想要加入的RSS订阅图标或文字 -->
<!-- <li><a href="#">订阅到****</a></li>
</br>
<li><a href="#">订阅到****</a></li>
</br>
<li><a href="#">订阅到****</a></li>
</br>
</ul>
-->
</div>
<script type="text/javascript">
function popMenu(objId)
{
var obj = document.getElementById(objId);
if (obj.style.display == 'none')
{
obj.style.display = 'block';
}
else
{
obj.style.display = 'none';
}
}
</script>
<div id = "wrapper">
<div id = "container">
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<div class="post" id="post-<?php the_ID();?>">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content(); ?>
<?php link_pages('<p><strong>Pages:</strong>', '</p>', 'number');?>
<p class="postmetadata">
<?php _e('文章属于分类:'); ?> <?php the_category(', ') ?> <?php _e('作者是'); ?> <?php the_author(); ?>
<?php edit_post_link('编辑', ' | ', ''); ?>
</p>
</div>
<div class="navigation">
<?php previous_post_link('查看前一篇: %link')?>
<br />
<?php next_post_link('查看后一篇: %link ') ?>
<div class="comments-template">
<?php comments_template();?>
</div>
</div>
</div>
<?php endwhile;?>
<?php else: ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
</body>
</html>