-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
53 lines (34 loc) · 1.29 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
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package presscore
* @since presscore 1.0
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
$config = Presscore_Config::get_instance();
$config->set('template', 'page');
presscore_config_base_init();
get_header(); ?>
<?php if ( presscore_is_content_visible() ): ?>
<div id="content" class="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php do_action('presscore_before_loop'); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'the7mk2' ), 'after' => '</div>' ) ); ?>
<?php presscore_display_share_buttons_for_post( 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'page' ); ?>
<?php endif; ?>
</div><!-- #content -->
<?php do_action('presscore_after_content'); ?>
<?php endif; // if content visible ?>
<?php get_footer(); ?>