public function search_content() { // Add scripts $search_results = new Core\TeaserList('search', 'search', array('posts_per_page' => 20), true, null, true); ?> <?php the_widget('SearchBox'); ?> <?php $search_results->print_list(); ?> <?php }
?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <?php // Header get_template_part('templates/page', 'header'); $meta = get_post_meta(get_the_ID()); // Call Teaser list $teaser_list = new Core\TeaserList($meta['proud_teaser_content'][0], $meta['proud_teaser_display'][0], array('posts_per_page' => -1, 'update_post_term_cache' => false, 'update_post_meta_cache' => false), true); ?> <div class="row"> <div class="col-md-3 padding-md-right"> <div class="views-exposed-form"> <?php $teaser_list->print_filters(); ?> </div> </div> <div class="col-md-9"> <?php $teaser_list->print_list(); ?> </div> </div>