-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (40 loc) · 1.69 KB
/
index.php
File metadata and controls
55 lines (40 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
52
53
54
55
<?php get_header(); ?>
<div id="content">
<div id="mainContent">
<?php include (TEMPLATEPATH . '/contextualInfo.php'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php if(function_exists('post_class')) post_class(); ?> id="post">
<div class="postTitle">
<?php if(!is_page()): ?>
<p class="postDate"><?php the_date(); ?></p>
<?php endif; ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo sprintf(__('%s', 'mandm'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entry">
<?php the_content(__('阅读本文余下部分 »»', 'mandm')); ?>
<?php if(is_single()): ?>
<div class="postmetadata_head">
<p>Posted in <?php the_category(', ') ?>.</p>
</div>
<?php endif; ?>
</div>
<?php edit_post_link(__('编辑', 'mandm')); ?>
<div class="commentsWrapper">
<?php comments_template('', true); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('« 上一页', 'mandm')) ?></div>
<div class="alignright"><?php previous_posts_link(__('下一页 »', 'mandm')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e("网页找不到", "mandm"); ?></h2>
<p class="center"><?php _e("嘿嘿,你确定要找只是这些吗?要不看看别的?", "mandm"); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- main content -->
<?php get_sidebar(); ?>
</div> <!-- content -->
<?php get_footer(); ?>