• File: full-width-template.php
  • Full Path: /home/chassiw/www/buildbench/template/full-width-template.php
  • File size: 860 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

/**
 * template-home.php
 *
 * Template Name: Full Width Template
 * Template Post Type: page,ts-projects,ts-service
 */
$post_type = get_post_type();

get_header();
if ($post_type == "ts-service" && is_single()) {
  get_template_part('template-parts/banner/content', 'banner-service');
} elseif ($post_type == "ts-projects" && is_single()) {
  get_template_part('template-parts/banner/content', 'banner-project');
} else {
  get_template_part('template-parts/banner/content', 'banner-page');
}

// calling title part from blog dir
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('home-full-width-content'); ?> role="main">
  <div class="builder-content">
    <?php while (have_posts()) : the_post(); ?>
      <?php the_content(); ?>
    <?php endwhile; ?>
  </div> <!-- end main-content -->
</div> <!-- end main-content -->
<?php get_footer(); ?>