This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpage.php
More file actions
executable file
·68 lines (48 loc) · 1.51 KB
/
page.php
File metadata and controls
executable file
·68 lines (48 loc) · 1.51 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
61
62
63
64
65
66
67
68
<?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 Wonder
* @link https://themebeans.com/themes/wonder
*/
get_header();
wonder_sidebar_loader(); ?>
<div id="primary-container" class="fadein">
<div class="row">
<div class="<?php echo esc_attr( $bean_content_class ); ?> mobile-four">
<?php
$page_title = get_post_meta( $post->ID, '_bean_page_title', true );
if ( $page_title == 'on' ) {
?>
<h1 class="entry-title"><?php the_title( '' ); ?></h1>
<?php } ?>
<div class="entry-content">
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile;
wp_link_pages(
array(
'before' => '<div class="page-link"><span>' . __( 'Pages:', 'wonder' ) . '</span>',
'after' => '</div>',
)
);
?>
</div>
</div><!-- END $bean_content_class -->
<?php if ( $bean_sidebar_location === 'left' || $bean_sidebar_location === 'right' ) { ?>
<div class="<?php echo esc_attr( $bean_sidebar_class ); ?> hide-for-small">
<aside class="sidebar " role="complementary">
<?php dynamic_sidebar( 'internal-sidebar' ); ?>
</aside><!-- END .sidebar -->
</div><!-- END $bean_sidebar_class -->
<?php } // END SIDEBAR LEFT OR RIGHT ?>
</div><!-- END .row -->
</div><!-- END #primary-container -->
<?php
get_footer();