Skip to content
Permalink
Newer
Older
100644 33 lines (32 sloc) 1020 Bytes
briandunnigan briandunnigan
Dec 18, 2015
1
<?php
2
/**
3
* Used for displaying the 'person' post type.
4
*/
5
6
get_header(); ?>
7
<?php include('inc/sidebar-check.php')?>
8
<div id="page-page">
9
<?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
10
<?php include(get_template_directory().'/inc/submenu-check.php') ?>
11
<div class="row">
12
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">
13
<div id="primary" class="content-area subpage">
14
<main id="main" class="site-main" role="main">
15
<div class="row">
16
<?php
17
$about = get_field('about');
18
if (strlen($about) > 0){
19
include('inc/person-with-about.php');
20
} else {
21
include('inc/person-no-about.php');
22
}
23
?>
24
</div>
25
</main>
26
</div>
27
</div>
28
<?php include(get_template_directory().'/inc/sidebar-if-active.php')?>
29
</div>
30
<?php include(get_template_directory().'/inc/submenu-closing-tags.php')?>
31
<?php endwhile; endif; // end of the loop. ?>
32
</div>
33
<?php get_footer(); ?>
You can’t perform that action at this time.