-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
49 lines (49 loc) · 2.95 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
<?php get_header(); ?>
<div class="pb_default-wrap clearfix">
<main class="pb_main">
<?php if ( have_posts() ) {?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="pb_single-post-<?php the_ID(); ?>" <?php post_class('pb_content-page clearfix'); ?>>
<h3 class="pb_single-page-title"><?php the_title(); ?></h3>
<div class="pb_single-page-cont">
<?php if(is_account_page()): ?>
<?php the_content(); ?>
<?php else: ?>
<?php if( have_rows('content_page_layouts') ): while ( have_rows('content_page_layouts') ) : the_row(); ?>
<?php if( get_row_layout() == 'single_column_layout' ): ?>
<div class="pb_one-col-layout rte">
<?php the_sub_field('single_column_content'); ?>
</div>
<?php elseif( get_row_layout() == 'two_column_layout' ): ?>
<div class="pb_two-col-layout">
<div class="pb_two-col-one rte">
<?php the_sub_field('two_column_content_one'); ?>
</div>
<div class="pb_two-col-two rte">
<?php the_sub_field('two_column_content_two'); ?>
</div>
</div>
<?php endif; ?>
<?php endwhile; endif; ?>
<?php endif; ?>
<?php if(is_page('faqs')): ?>
<?php if( have_rows('faqs') ): ?>
<div class="pb_faq-module">
<dl>
<?php while ( have_rows('faqs') ) : the_row(); ?>
<dt><h3><?php the_sub_field('faq_question'); ?></h3></dt>
<dd class="pb_faq-answer rte"><?php the_sub_field('faq_answer'); ?></dd>
<?php endwhile; ?>
</dl>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
</article>
<?php endwhile; ?>
<?php } else { ?>
<?php get_template_part('includes/module','nocontent'); ?>
<?php }; ?>
</main>
</div>
<?php get_footer(); ?>