/
page.php
42 lines (42 loc) · 1015 Bytes
/
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
<?php get_header(); ?>
<!-- main start -->
<div class="main">
<div class="content">
<!--左侧新闻-->
<div class="left box">
<ul class="news">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php setPostViews(get_the_ID()); ?>
<?php
$fmimg = get_post_meta($post->ID, "fmimg_value", true);
$cti = catch_that_image();
if($fmimg) {
$showimg = $fmimg;
} else {
$showimg = $cti;
};
?>
<li style="background:none">
<h2 style="color:#333">
<?php the_title(); ?>
</h2>
<?php the_content(); ?>
</li>
<?php endwhile; endif; ?>
</ul>
<div id="comment">
<?php comments_template(); ?>
</div>
</div>
<div class="right">
<?php get_search_form(); ?>
<?php get_sidebar(); ?>
</div>
<!--[if lte IE 7]>
<div style="clear: both">
</div>
<![endif]-->
</div>
</div>
<!-- main end -->
<?php get_footer(); ?>