/**
  *
  *
  * @since  1.0.0
  * @access public
  * @param
  * @return void
  */
 public function customTemplateInclude($template)
 {
     $utility = new Utility();
     $custom_template_location = '/archives/';
     $cpt_tmp = NULL;
     if ($utility->isCptArchive()) {
         if (is_archive() && !is_tax()) {
             $cpt_tmp = get_stylesheet_directory() . $custom_template_location . 'archive-' . get_post_type() . '.php';
         } else {
             if (is_single()) {
                 $cpt_tmp = get_stylesheet_directory() . $custom_template_location . 'single-' . get_post_type() . '.php';
             }
         }
         if (file_exists($cpt_tmp)) {
             return $cpt_tmp;
         }
     }
     return $template;
 }
 /**
  *
  *
  * @since  1.0.0
  * @access public
  * @param
  * @return void
  */
 public function singleLoop($archive_link = false, $archive_link_text = null)
 {
     while (have_posts()) {
         the_post();
         $utility = new Utility();
         $content_helper = new ContentHelper();
         $post_helper = new PostHelper();
         if ($utility->isCustomPostType()) {
             get_template_part('content/content', get_post_type());
         } else {
             get_template_part('content/content', get_post_format());
         }
         $content_helper->linkPages();
         get_template_part('partials/post-nav');
         if ($utility->isCustomPostType() && $archive_link_text) {
             $post_helper->archiveLink(get_post_type(), $archive_link_text);
         }
     }
 }