-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
47 lines (42 loc) · 1.88 KB
/
page.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<?php get_header(); ?>
<div id="container">
<?php if(have_posts()):?>
<?php while(have_posts()):the_post();?>
<div class="header">
<h2><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
<!--链接指向文章的URL页,当鼠标放到链接上时显示文章标题-->
</div>
<div class="entry" id="entry-<?php the_ID();?>">
<?php the_content();?>
<?php link_pages('<p><code>Pages:</strong> ', '</p>', 'number'); ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
</div>
<?php endwhile;?>
<?php else : ?>
<div class="post" >
<h2><?php _e('Not Found'); ?></h2>
</div>
<?php endif;?>
</div>
<?php get_sidebar();?>
<?php get_footer();?>
</div>
</body>
</html>