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_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
|