-
Notifications
You must be signed in to change notification settings - Fork 84
/
page.php
65 lines (59 loc) · 1.49 KB
/
page.php
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
61
62
63
64
65
<?php
/**
* The template for displaying all pages.
*
* @package Neve
* @since 1.0.0
*/
$container_class = apply_filters( 'neve_container_class_filter', 'container', 'single-page' );
get_header();
?>
<div class="<?php echo esc_attr( $container_class ); ?> single-page-container">
<div class="row">
<?php do_action( 'neve_do_sidebar', 'single-page', 'left' ); ?>
<div class="nv-single-page-wrap col">
<?php
/**
* Executes actions before the page header.
*
* @since 2.4.0
*/
do_action( 'neve_before_page_header' );
/**
* Executes the rendering function for the page header.
*
* @param string $context The displaying location context.
*
* @since 1.0.7
*/
do_action( 'neve_page_header', 'single-page' );
/**
* Executes actions before the page content.
*
* @param string $context The displaying location context.
*
* @since 1.0.7
*/
do_action( 'neve_before_content', 'single-page' );
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', 'page' );
}
} else {
get_template_part( 'template-parts/content', 'none' );
}
/**
* Executes actions after the page content.
*
* @param string $context The displaying location context.
*
* @since 1.0.7
*/
do_action( 'neve_after_content', 'single-page' );
?>
</div>
<?php do_action( 'neve_do_sidebar', 'single-page', 'right' ); ?>
</div>
</div>
<?php get_footer(); ?>