if ($typography_posts) {
        echo '<section id="patterns-typography" class="patterns--type-section">';
        include_once trailingslashit(dirname(__FILE__)) . 'view-patterns-typography.php';
        wp_reset_postdata();
        echo '</section>';
    }
    // Pattern Types
    if ($pattern_posts) {
        $count = 1;
        foreach ($pattern_posts as $key => $patterns) {
            $type_id = str_replace(' ', '-', $key);
            preg_match('/^[a-z0-9 .\\-]+$/i', $type_id);
            echo '<section id="patterns-' . strtolower($type_id) . '" class="patterns--type-section">';
            foreach ($patterns as $post) {
                setup_postdata($post);
                $pattern = $view->Patterns__Post_Main($post);
                $code = $pattern['code'];
                $desc = $pattern['desc'];
                $container = get_post_meta($post->ID, '_Patterns__Main_wrapper', true);
                ?>

            <section class="patterns--entry">
              <h2 class="patterns--entry-title"><?php 
                echo get_the_title();
                ?>
</h2>

              <?php 
                if ($code) {
                    ?>