-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathindex.php
36 lines (35 loc) · 1.36 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
<?php get_header(); ?>
<div class="content-wrap">
<div class="content">
<?php
if ($paged && $paged > 1) {
printf('<header class="archive-header"><h1>最新发布 第' . $paged . '页</h1><div class="archive-header-info"><p>' . get_option('blogname') . get_option('blogdescription') . '</p></div></header>');
} else {
if (git_get_option('git_slide_style') == 'git_slide_3d' ) include 'modules/sticky.php';
if (git_get_option('git_slide_style') == 'git_slide_pt' ) include 'modules/slick.php';
}
if(git_get_option('git_slide_style') != ''):
if (git_get_option('git_adindex_02')) echo'<div class="banner banner-sticky">' . git_get_option('git_adindex_02') . '</div>';
endif;
if (git_is_mobile() && git_get_option('Mobiled_adindex_02')) echo '<div class="banner-sticky mobileads">' . git_get_option('Mobiled_adindex_02') . '</div>';
if (git_get_option('git_cms_b')) {
include 'modules/cms.php';
} else {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if (git_get_option('git_orderbygx')) { $orderby = 'modified'; } else { $orderby = 'date'; }
$args = array(
'ignore_sticky_posts' => 1,
'paged' => $paged,
'orderby' => $orderby
);
query_posts($args);
if (git_get_option('git_card_b')) {
include 'modules/card.php';
}else{
include 'modules/excerpt.php';
}
}
?>
</div>
</div>
<?php get_sidebar(); get_footer(); ?>