<%
    /**
     * This is a template file to generate Custom Post Types
     */
%>
<?php
/**
 * Custom Post Types
 * @var [type]
 */


// get_stylesheet_directory() won't bring the proper path if this sits inside of a child theme
$_path_to_theme = is_child_theme() ? get_stylesheet_directory() : get_template_directory();

require_once $_path_to_theme . '/<%= directory %>/cpt.php';
require_once $_path_to_theme . '/<%= directory %>/meta.php';
require_once $_path_to_theme . '/<%= directory %>/taxo.php';
<%
/*
 * This will generate CPTS
 */
for ( var cpt of cpts ) {
    %>
$cpts['<%= cpt.plural.toLowerCase() %>'] = new \fuel\CPT('<%= cpt.single %>','<%= cpt.plural %>','<%= textdomain %>',
    array(
        'menu_icon' => 'dashicons-thumbs-up',
        'supports' => array('title','editor' ),
        'taxonomies'  => array(),
        'public' => false,
    ) );
<% } // end of for loop %>

