function change_post_type_titles($title)
{
    $screen = get_current_screen();
    if ('inti-brand' == $screen->post_type && inti_current_theme_supports('inti-post-types', 'brand')) {
        $title = __('Enter brand name', 'inti-child');
    }
    if ('inti-testimonial' == $screen->post_type && inti_current_theme_supports('inti-post-types', 'testimonial')) {
        $title = __('Enter person\'s name', 'inti-child');
    }
    if ('inti-opt-in' == $screen->post_type && inti_current_theme_supports('inti-post-types', 'opt-in')) {
        $title = __('Purpose/Name', 'inti-child');
    }
    return $title;
}
 * Taxonomy: Testimonial Category
 * Related Post Type: inti-testimonial
 * Description: Split testimonials into types that will let us do things like
 * devide them by service offered, product purchased, or page they appear on etc. 
 * @since 1.0.3
 */
if (inti_current_theme_supports('inti-post-types', 'testimonial')) {
    add_action('init', 'testimonial_taxonomies', 0);
    function testimonial_taxonomies()
    {
        $labels = array('name' => _x('Categories', 'taxonomy general name', 'inti-child'), 'singular_name' => _x('Category', 'taxonomy singular name', 'inti-child'), 'search_items' => __('Search Testimonial Categories', 'inti-child'), 'all_items' => __('All Testimonial Categories', 'inti-child'), 'parent_item' => __('Parent Category', 'inti-child'), 'parent_item_colon' => __('Parent Category:', 'inti-child'), 'edit_item' => __('Edit Category', 'inti-child'), 'update_item' => __('Update Category', 'inti-child'), 'add_new_item' => __('Add New Testimonial Category', 'inti-child'), 'new_item_name' => __('New Category Name', 'inti-child'), 'menu_name' => __('Categories', 'inti-child'));
        $args = array('hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array('slug' => 'testimonial-category'));
        register_taxonomy('inti-testimonial-category', 'inti-testimonial', $args);
    }
}
/**
 * Taxonomy: Service Category
 * Related Post Type: inti-service
 * Description: Split services into types that will let us do things like
 * devide them by service offered, product purchased, or page they appear on etc. 
 * @since 1.0.3
 */
if (inti_current_theme_supports('inti-post-types', 'service')) {
    add_action('init', 'service_taxonomies', 0);
    function service_taxonomies()
    {
        $labels = array('name' => _x('Categories', 'taxonomy general name', 'inti-child'), 'singular_name' => _x('Category', 'taxonomy singular name', 'inti-child'), 'search_items' => __('Search Service Categories', 'inti-child'), 'all_items' => __('All Service Categories', 'inti-child'), 'parent_item' => __('Parent Category', 'inti-child'), 'parent_item_colon' => __('Parent Category:', 'inti-child'), 'edit_item' => __('Edit Category', 'inti-child'), 'update_item' => __('Update Category', 'inti-child'), 'add_new_item' => __('Add New Service Category', 'inti-child'), 'new_item_name' => __('New Category Name', 'inti-child'), 'menu_name' => __('Categories', 'inti-child'));
        $args = array('hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array('slug' => 'service-category'));
        register_taxonomy('inti-service-category', 'inti-service', $args);
    }
}
/**
 * Google Maps
 * This block displays a map from Google
 * 
 * @since 1.0.9
 */
function child_block_gmap()
{
    if (inti_current_theme_supports('inti-front-page-blocks', 'gmap')) {
        get_template_part('template-parts/part-block', 'gmap');
    }
}
/**
 * Footer opt-in
 * Adds opt-in form above footer
 * 
 * @since 1.0.5
 */
function child_do_footer_opt_in()
{
    if (inti_current_theme_supports('inti-post-types', 'opt-in')) {
        get_template_part('template-parts/part-opt-in', 'footer');
    }
}
/**
 * Child Theme Setup
 * Modify this function to deactivate features in the parent theme
 *
 * See functions.php in Inti Foundation
 * Remove the comment slashes (//) next to the functions
 * 
 * Remove or add array elements in add_theme_support() as needed
 */
function childtheme_override_setup()
{
    /**
     * Features to expand on Inti Foundation
     */
    add_theme_support('inti-front-page-blocks', array('page', 'posts', 'services', 'testimonials', 'brands', 'bio', 'video', 'gmap', 'slogan'));
    add_theme_support('inti-post-types', array('service', 'testimonial', 'brand', 'opt-in'));
    add_theme_support('inti-page-templates', array('front-page', 'news-page', 'portfolio', 'contact'));
    /**
     * Basic Inti Foundation Features to be support in this child theme
     */
    add_theme_support('inti-layouts', array('1c', '2c-l', '2c-r', '1c-thin'));
    add_theme_support('inti-menus', array('dropdown-menu', 'off-canvas-menu', 'footer-menu'));
    add_theme_support('inti-sidebars', array('primary', 'frontpage', 'footer'));
    add_theme_support('inti-customizer');
    add_theme_support('inti-theme-options');
    add_theme_support('inti-backgrounds');
    add_theme_support('inti-fonts');
    add_theme_support('inti-breadcrumbs');
    add_theme_support('inti-pagination');
    add_theme_support('inti-post-header-meta');
    add_theme_support('inti-shortcodes');
    add_theme_support('inti-sticky-sidebars');
    add_theme_support('inti-custom-login');
    /**
     * WordPress features
     */
    add_theme_support('menus');
    // different post formats for tumblog style posting
    add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
    /**
     * 3rd Party Supprt
     */
    add_theme_support('woocommerce');
    add_theme_support('post-thumbnails');
    add_image_size('thumb-300', 300, 250, true);
    add_image_size('thumb-200', 200, 150, true);
    add_image_size('blog-thumbnail', 800, 600, true);
    add_image_size('brand-thumbnail', 200, 150, true);
    add_image_size('testimonial-thumbnail', 800, 800, true);
    add_image_size('service-thumbnail', 800, 800, true);
    // RSS feed links to header.php for posts and comments.
    add_theme_support('automatic-feed-links');
    // editor stylesheet for TinyMCE
    add_editor_style('/library/css/editor.css');
    // load parent translations
    load_theme_textdomain('inti', get_template_directory() . '/languages');
    // load parent translations
    load_theme_textdomain('inti-child', get_stylesheet_directory() . '/languages');
    /**
     * Load framework files from child theme's framework directory
     * 
     * locate_template() will first check the child theme for a file in that location,
     * and if not found, will search the parent theme. Override parent theme files by giving
     * the child theme versions the same name, set a unique name or add a prefix to load
     * them in addition to parent theme files.
     */
    // require_once locate_template('/framework/content/child-content-header.php');
    // require_once locate_template('/framework/content/child-content-footer.php');
    require_once locate_template('/framework/content/child-content-front-page-blocks.php');
    require_once locate_template('/framework/content/child-content-header.php');
    require_once locate_template('/framework/content/child-content-footer.php');
    require_once locate_template('/framework/functions/child-helpers.php');
    require_once locate_template('/framework/functions/theme-supports.php');
    require_once locate_template('/framework/metaboxes/child-metaboxes.php');
    require_once locate_template('/framework/customizer/child-customize.php');
    require_once locate_template('/framework/theme-options/child-theme-options.php');
    require_once locate_template('/framework/post-types/taxonomies.php');
    if (inti_current_theme_supports('inti-post-types', 'testimonial')) {
        require_once locate_template('/framework/shortcodes/shortcode-testimonials.php');
        require_once locate_template('/framework/shortcodes/shortcode-testimonial-single.php');
    }
    if (inti_current_theme_supports('inti-post-types', 'opt-in')) {
        require_once locate_template('/framework/shortcodes/shortcode-opt-in.php');
        require_once locate_template('/framework/widgets/opt-in.php');
    }
}
     $wp_customize->add_control('inti_customizer_options[fpb_video_show]', array('label' => __('Show this block', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'description' => '', 'type' => 'checkbox', 'priority' => 1));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_title]', array('default' => '', 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_title]', array('label' => __('Title (Optional)', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'type' => 'text', 'priority' => 2));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_aspect]', array('default' => 'widescreen', 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_aspect]', array('label' => __('Aspect Ratio', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'type' => 'select', 'choices' => array('widescreen' => __('Widescreen', 'inti-child'), 'fourthree' => __('4:3', 'inti-child')), 'priority' => 3));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_source]', array('default' => 'YouTube', 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_source]', array('label' => __('Video Source', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'type' => 'select', 'choices' => array('YouTube' => 'YouTube', 'Vimeo' => 'Vimeo', 'Wistia' => 'Wistia'), 'priority' => 4));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_code]', array('default' => 'MtCMtC50gwY', 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_code]', array('label' => __('Video Code/ID', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'description' => __('', 'inti-child'), 'type' => 'text', 'priority' => 5));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_button_text]', array('default' => '', 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_button_text]', array('label' => __('Text for Button', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'description' => __('There is a button beneath the video. Add the text here.', 'inti-child'), 'type' => 'text', 'priority' => 6));
     $wp_customize->add_setting('inti_customizer_options[fpb_video_button_link]', array('default' => '', 'type' => 'option', 'capability' => 'manage_options', 'transport' => 'postMessage'));
     $wp_customize->add_control('inti_customizer_options[fpb_video_button_link]', array('label' => __('URL for Button', 'inti-child'), 'section' => 'inti_customizer_front_page_block_video', 'description' => __('Add a URL here for the button', 'inti-child'), 'type' => 'text', 'priority' => 7));
 }
 // Gmaps Block
 if (inti_current_theme_supports('inti-front-page-blocks', 'gmap')) {
     $wp_customize->add_section('inti_customizer_front_page_block_gmap', array('title' => __('Front Page: Google Maps', 'inti-child'), 'description' => __('Adds a map as a front page block', 'inti-child'), 'priority' => 1));
     $wp_customize->add_setting('inti_customizer_options[fpb_gmap_show]', array('default' => 1, 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_gmap_show]', array('label' => __('Show this block', 'inti-child'), 'section' => 'inti_customizer_front_page_block_gmap', 'description' => '', 'type' => 'checkbox', 'priority' => 1));
     $wp_customize->add_setting('inti_customizer_options[fpb_gmap_source]', array('default' => 'https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d12090.470159428245!2d-73.9856644!3d40.7484405!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xd134e199a405a163!2sEmpire+State+Building!5e0!3m2!1sen!2spe!4v1462314250678', 'type' => 'option', 'capability' => 'manage_options'));
     $wp_customize->add_control('inti_customizer_options[fpb_gmap_source]', array('label' => __('Source', 'inti-child'), 'section' => 'inti_customizer_front_page_block_gmap', 'type' => 'text', 'priority' => 2));
 }
 /**
  * General/Header section exists in parent theme, let's add to it here
  * Section: inti_customizer_general
  */
 $wp_customize->add_setting('inti_customizer_options[header_opt_in]', array('default' => 1, 'type' => 'option', 'capability' => 'manage_options'));
 $wp_customize->add_control(new WP_Customize_Dropdown_Opt_In_Control($wp_customize, 'inti_customizer_options[header_opt_in]', array('label' => "Opt-In Form to display", 'settings' => 'inti_customizer_options[header_opt_in]', 'section' => 'inti_customizer_general', 'priority' => 8)));
 /**
  * Layouts section exists in parent theme, let's add to it here
  * Section: inti_customizer_posts