forked from nhannd314/flatsome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
51 lines (38 loc) · 1.15 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
<?php
/**
* The template for displaying all pages.
*
* @package flatsome
*/
if(flatsome_option('pages_layout') != 'default') {
// Get default template from theme options.
echo get_template_part('page', flatsome_option('pages_layout'));
return;
} else {
get_header();
do_action( 'flatsome_before_page' ); ?>
<div id="content" class="content-area page-wrapper" role="main">
<div class="row row-main">
<div class="large-12 col">
<div class="col-inner">
<?php if(get_theme_mod('default_title', 0)){ ?>
<header class="entry-header">
<h1 class="entry-title mb uppercase"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<?php } ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_action( 'flatsome_before_page_content' ); ?>
<?php the_content(); ?>
<?php if ( comments_open() || '0' != get_comments_number() ){
comments_template(); } ?>
<?php do_action( 'flatsome_after_page_content' ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- .col-inner -->
</div><!-- .large-12 -->
</div><!-- .row -->
</div>
<?php
do_action( 'flatsome_after_page' );
get_footer();
}
?>