public static function detectCoreTemplate($post)
    {
        if ((int)get_option('page_on_front') == (int)$post->ID) {
            return \Modularity\Helper\Wp::findCoreTemplates(array(
                'front-page',
                'page'
            ));
        }

        switch ($post->post_type) {
            case 'post':
                return 'single';
                break;

            case 'page':
                return 'page';
                break;

            default:
                return \Modularity\Helper\Wp::findCoreTemplates(array(
                    'single-' . $post->post_type,
                    'single',
                    'page'
                ));
                break;
        }

        return 'index';
    }