-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
33 lines (27 loc) · 735 Bytes
/
single.php
File metadata and controls
33 lines (27 loc) · 735 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
<?php if ( !defined('ABSPATH') ) die();
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage FS_Onepage
* @since 1.0
* @version 1.0
*/
if ( is_active_sidebar( 'widgets_area1' ) ) {
$sidebar = ' has-sidebar';
} else {
$sidebar = null;
}
get_header(); ?>
<div class="page-wrap">
<?php get_template_part( 'template-parts/page', 'banner' ); ?>
<div class="archive-wrap<?php echo $sidebar; ?>">
<?php
get_sidebar();
get_template_part( 'template-parts/post-content', get_post_format() );
?>
</div>
</div>
<?php get_footer(); ?>