-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
32 lines (32 loc) · 1.92 KB
/
search.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
<?php echo "<script type='text/javascript'>var max_num_pages=".$wp_query->max_num_pages.";if(typeof now_num_pages=='undefined') var now_num_pages=".(isset($_GET["paged"])?$_GET["paged"]:1).";</script>";
if (!isset($_GET["data"])) { get_header(); ?>
<div class="postlist">
<!-- Blog Post -->
<div id="postsbox">
<?php } $datacount = isset($_GET["data"])?$_GET["data"]+1:0; echo "<script type='text/javascript'>datacount=".$datacount.";</script>" ?>
<?php
$indexint = $datacount;
if (have_posts()) : while (have_posts()) : the_post();
$indexint = postlistblock($indexint);
endwhile; else : ?>
<p id="nopost">没啦</p>
<?php endif; if (!isset($_GET["data"])) { get_header(); ?>
</div>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/ceramictiles.js"></script>
<script type="text/javascript">var wpNyarukoAutoLoadConf=[<?php echo '1,'.@$wpNyarukoOption['wpNyarukoAutoLoadI'].','.@$wpNyarukoOption['wpNyarukoAutoLoadB'].',"'.@$wpNyarukoOption['wpNyarukoAutoLoad1'].'","'.@$wpNyarukoOption['wpNyarukoAutoLoad2'].'","'.@$wpNyarukoOption['wpNyarukoAutoLoad3'].'","'.@$wpNyarukoOption['wpNyarukoAutoLoad4'].'"'; ?>];</script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/lan.js"></script>
<script>resize();</script>
<!-- Blog Navigation -->
<p><?php if ($wp_query->max_num_pages == 1) {
echo '<div id="loadstatus" value="2">'.@$wpNyarukoOption['wpNyarukoAutoLoad2'].'</div>';
} else {
$wpNyarukoAutoLoadI = intval(@$wpNyarukoOption['wpNyarukoAutoLoadI']);
if ($wpNyarukoAutoLoadI != 0) {
echo '<div id="loadstatus" value="0">'.@$wpNyarukoOption['wpNyarukoAutoLoad1'].'</div>';
} else {
echo '<div id="loadstatus" value="0"><a href="javascript:loadnextpage();" title="跳转到第2页">'.@$wpNyarukoOption['wpNyarukoAutoLoad3'].'</a></div>';
}
} ?></p>
</div>
<?php get_footer(); ?>
<?php } //$wp_query->max_num_pages ?>