This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
business/single-person.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (32 sloc)
1020 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Used for displaying the 'person' post type. | |
*/ | |
get_header(); ?> | |
<?php include('inc/sidebar-check.php')?> | |
<div id="page-page"> | |
<?php if (have_posts()) : while ( have_posts() ) : the_post(); ?> | |
<?php include(get_template_directory().'/inc/submenu-check.php') ?> | |
<div class="row"> | |
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>"> | |
<div id="primary" class="content-area subpage"> | |
<main id="main" class="site-main" role="main"> | |
<div class="row"> | |
<?php | |
$about = get_field('about'); | |
if (strlen($about) > 0){ | |
include('inc/person-with-about.php'); | |
} else { | |
include('inc/person-no-about.php'); | |
} | |
?> | |
</div> | |
</main> | |
</div> | |
</div> | |
<?php include(get_template_directory().'/inc/sidebar-if-active.php')?> | |
</div> | |
<?php include(get_template_directory().'/inc/submenu-closing-tags.php')?> | |
<?php endwhile; endif; // end of the loop. ?> | |
</div> | |
<?php get_footer(); ?> |