<header class="mdl-cell mdl-cell--12-col"> <h3 class="home-section-title"><?php echo $sections['third']['title']; ?> </h3> </header> <?php } ?> <?php for ($i = 0; $i < $num; $i++) { $cpost = $sections['third']['posts'][$i]; if ($cpost->post_type == 'person') { $cpost->grid_css = 'mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone'; } tst_print_post_card($cpost); } ?> </div> </section> <?php } ?> <!-- partners --> <?php $part_ids = get_post_meta($home_id, 'home_partners', true); $partners = array(); if ($part_ids) {
* and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package bb */ get_header(); ?> <div class="mdl-grid masonry-grid"> <?php if (have_posts()) { while (have_posts()) { the_post(); tst_print_post_card($post); } } ?> <div class="mdl-cell mdl-cell--4-col masonry-item movable-widget"><?php get_sidebar(); ?> </div> </div> <?php $p = tst_paging_nav(); if (!empty($p)) { ?> <div class="mdl-grid"> <div class="mdl-cell mdl-cell--12-col"><?php