forked from 7kwl/WebstackPro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-blog.php
More file actions
38 lines (28 loc) · 824 Bytes
/
template-blog.php
File metadata and controls
38 lines (28 loc) · 824 Bytes
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
<?php
/*
Template Name: 博客页面
*/
get_header(); ?>
<?php
include( get_theme_file_path('/templates/sidebar-nav.php') );
?>
<div class="main-content flex-fill">
<?php get_template_part( 'templates/header','banner' ); ?>
<div id="content" class="container my-4 my-md-5">
<div class="slide-blog mb-4">
<?php get_template_part( 'templates/slide','blog' ); ?>
</div>
<div class="row">
<div class="col-lg-8">
<?php
$is_blog = true;
?>
<?php include( get_theme_file_path('/templates/cat-list.php') ); ?>
<?php wp_reset_query(); ?>
</div>
<div class="sidebar col-lg-4 pl-xl-4 d-none d-lg-block">
<?php get_sidebar('blog'); ?>
</div>
</div>
</div>
<?php get_footer(); ?>