You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!doctype html>
|
|
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
|
|
<?php get_header(); ?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app">
|
|
|
|
<header>
|
|
|
|
<div class="header-main-plane">
|
|
|
|
<div class="header-main container">
|
|
|
|
<?php
|
|
|
|
get_template_part('component/nav-header');
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<div class="top-divider"></div>
|
|
|
|
<main class="container">
|
|
|
|
<div class="html-main">
|
|
|
|
<?php
|
|
|
|
global $set;
|
|
|
|
if ($set['theme']['sidebar']['other']) {
|
|
|
|
?>
|
|
|
|
<style>
|
|
|
|
body .post-info-right {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-item-thumbnail img {
|
|
|
|
max-width: 336px;
|
|
|
|
}
|
|
|
|
.post-item-content,.post-item-info {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
.post-item h2 {
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="post-main post-main-closesidebar" style="flex-basis: 100%;">
|
|
|
|
<?php
|
|
|
|
get_template_part('component/post-main-index');
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
} else
|
|
|
|
if ($set['theme']['sidebar_position'] == 1) {
|
|
|
|
?>
|
|
|
|
<div class="post-main">
|
|
|
|
<div class="post-list-page-plane">
|
|
|
|
<div class="list-plane-title">
|
|
|
|
<p>搜索内容:<?php echo get_search_query(); ?></p>
|
|
|
|
</div>
|
|
|
|
<ul class="post-list">
|
|
|
|
<?php
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) {
|
|
|
|
the_post();
|
|
|
|
get_template_part('component/post-list-item');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
<div class="pages">
|
|
|
|
<?php
|
|
|
|
get_template_part('component/pageobj');
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="sidebar">
|
|
|
|
<?php dynamic_sidebar('index_sidebar'); ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}else{
|
|
|
|
?>
|
|
|
|
<div class="sidebar">
|
|
|
|
<?php dynamic_sidebar('index_sidebar'); ?>
|
|
|
|
</div>
|
|
|
|
<div class="post-main">
|
|
|
|
<div class="post-list-page-plane">
|
|
|
|
<div class="list-plane-title">
|
|
|
|
<p>搜索内容:<?php echo get_search_query(); ?></p>
|
|
|
|
</div>
|
|
|
|
<ul class="post-list">
|
|
|
|
<?php
|
|
|
|
if (have_posts()) {
|
|
|
|
while (have_posts()) {
|
|
|
|
the_post();
|
|
|
|
get_template_part('component/post-list-item');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
<div class="pages">
|
|
|
|
<?php
|
|
|
|
get_template_part('component/pageobj');
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
<?php get_footer(); ?>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<?php
|