-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.php
More file actions
60 lines (35 loc) · 1.29 KB
/
page.php
File metadata and controls
60 lines (35 loc) · 1.29 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* The template for displaying pages
*
* @package Intro
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0
*/
?>
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php $sidebar = apply_filters('intro_show_sidebar', get_option('intro_show_sidebar', true)); ?>
<?php get_header(); ?>
<?php get_template_part('header', 'bar'); ?>
<?php do_action('intro_before_main'); ?>
<section class="content">
<div class="wrapper">
<?php do_action('intro_top_main'); ?>
<main class="main-content<?php if ($sidebar) echo ' col-2-3'; ?>" role="main" itemprop="mainContentOfPage">
<?php
while (have_posts()) : the_post();
get_template_part('content', 'page');
endwhile;
?>
<?php intro_posts_nav(false, '', '<div class="pagination">', '</div>'); ?>
</main><!-- END .main-content -->
<?php if ($sidebar){ ?>
<aside class="sidebar col-1-3" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
<?php dynamic_sidebar('blog'); ?>
</aside> <!-- END .sidebar .col-1-3 -->
<?php } ?>
<?php do_action('intro_bottom_main'); ?>
</div> <!-- END .wrapper -->
</section> <!-- END .content -->
<?php do_action('intro_after_main'); ?>
<?php get_footer(); ?>