-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
executable file
·51 lines (46 loc) · 1.04 KB
/
page.php
File metadata and controls
executable file
·51 lines (46 loc) · 1.04 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
<?php
/**
* The template for displaying all pages
*
* @package UnPress
* @since UnPress 1.0
**/
?>
<?php get_header(); ?>
<div id="page-wrap">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<section class="container">
<div class="row">
<div class="col-md-12">
<h1 class="page-title"><?php the_title(); ?></h1>
</div>
</div>
<div class="row">
<?php if ( get_field( 'page_sidebar' ) == 'page_sidebar_on' ):?>
<div class="col-md-9 col-lg-9 col-sm-12 col-xs-12">
<?php else: ?>
<div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">
<?php endif; ?>
<article class="page">
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
</div>
<?php if ( get_field( 'page_sidebar' ) == 'page_sidebar_on' ):?>
<div class="col-md-3 col-lg-3 col-sm-12 col-xs-12">
<aside class="sidebar">
<?php generated_dynamic_sidebar(); ?>
</aside>
</div>
<?php endif; ?>
</div>
</section>
<?php
endwhile;
endif;?>
</div>
<?php get_footer(); ?>