-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.php
103 lines (93 loc) · 3.94 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
get_header('meta');
get_header();
?>
<!--首页小横栏 -->
<div class="heading-top">
<img src="<?php bloginfo('template_url'); ?>/static/img/gonggao.gif" style="vertical-align: middle;margin-bottom: 3px;border:0"/> 官方反馈交流 QQ 群:121235751 ,欢迎加入!新版本将第一时间在Q群发布。
主题下载:<a href="http://t.cn/8knzKcZ">http://t.cn/8knzKcZ</a>
</div>
<!-- Main Container -->
<div id="body-wrapper" class="body-wraper-path">
<!-- Content -->
<div id="content" class="container clearfix">
<!-- Slider -->
<div id="main-slider" class="flexslider">
<ul class="slides">
<?php echo get_banner_slide(); ?>
</ul>
</div>
<div class="has-line" style="margin-top: 45px;"></div>
<!-- /Slider -->
<!-- main-services -->
<div class="main-services">
<ul>
<?php echo get_main_services_post(); ?>
</ul>
<div class="has-line"></div>
</div>
<!-- Project Carousel -->
<div id="project-wrapper" class="clearfix">
<div class="section-title one-fourth">
<h4>最新图文</h4>
<p>这里汇集了我们网站最新的图文页面,你可以点击查阅详细!</p>
<p><a href="javascript:void(0)">查看更多</a></p>
<div class="carousel-nav">
<a id="project-prev" class="jcarousel-prev" href="javascript:void(0)" title="上一页"></a>
<a id="project-next" class="jcarousel-next" href="javascript:void(0)" title="下一页"></a>
</div>
</div>
<ul class="project-carousel">
<?php
global $query_string;
query_posts($query_string.'&showposts=100&caller_get_posts=1');
$i = 0;
if (have_posts()){
while (have_posts()){
the_post();
$content = $post->post_content;
$searchimages = '~<img [^>]* />~';
preg_match_all( $searchimages, $content, $pics );
$iNumberOfPics = count($pics[0]);
if ( $iNumberOfPics > 0 &&$i <6) {
echo "<li><a href='";
echo the_permalink();
echo "' title='' class='project-item'><div class='project-image' style='background-image:url(";
echo catch_that_image();
echo ")' alt='";
echo the_title();
echo "'></div><div class='overlay'><h5>";
echo strip_tags(the_excerpt());
echo "</h5><p>";
echo the_title();
echo "</p></div> </a></li>\n";
$i ++;
}
}
}
?>
</ul>
<div class="has-line" style="margin-top: 50px;"></div>
</div>
<!-- /Project Carousel -->
<!-- Blog Carousel -->
<div id="blog-wrapper" class="clearfix">
<div class="section-title one-fourth">
<h4>热评文章</h4>
<p>最受欢迎的文章当然有它的出彩之处,点进去看看吧!</p>
<p><a href="javascript:void(0)">查看更多</a></p>
<div class="carousel-nav">
<a id="blog-prev" class="jcarousel-prev" href="javascript:void(0)" title="上一页"></a>
<a id="blog-next" class="jcarousel-next" href="javascript:void(0)" title="下一页"></a>
</div>
</div>
<ul class="blog-carousel">
<?php echo simple_get_most_viewed(); ?>
</ul>
</div>
<!-- /Blog Carousel -->
</div>
<!-- /Content -->
<?php
get_footer();
?>