예제 #1
0
파일: page.php 프로젝트: Teplitsa/giger
        } else {
            tst_post_card($ep);
        }
    }
} else {
    ?>
		
<div class="mdl-cell mdl-cell--5-col mdl-cell--6-col-tablet">
	<?php 
    $r_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 3));
    if ($r_query->have_posts()) {
        ?>
		<aside class="related-posts section">	
			<h5>Последние новости</h5>	
			<?php 
        foreach ($r_query->posts as $rp) {
            tst_compact_post_item($rp, true, 'category');
        }
        ?>
		</aside>
	<?php 
    }
    ?>
</div>
<div class="mdl-cell mdl-cell--7-col mdl-cell--2-col-tablet mdl-cell--hide-phone"></div>
<?php 
}
?>
</div></div>
<?php 
get_footer();
예제 #2
0
파일: 404.php 프로젝트: Teplitsa/giger
</div>
		</section>
	</div>
	
	<div class="mdl-cell mdl-cell--3-col mdl-cell--hide-phone mdl-cell--hide-tablet"></div>
	
</div><!-- .mdl-grid -->
</div>

<div class="page-footer"><div class="mdl-grid">
	<div class="mdl-cell mdl-cell--3-col mdl-cell--hide-phone mdl-cell--hide-tablet"></div>
	<div class="mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet">
<?php 
$r_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 3, 'tax_query' => array(array('taxonomy' => 'category', 'field' => 'slug', 'terms' => array('news'), 'operator' => 'NOT IN'))));
?>
	<aside class="related-posts section">	
		<h5>Почитайте наши новости</h5>
		
		<?php 
foreach ($r_query->posts as $rp) {
    tst_compact_post_item($rp);
}
?>
	</aside>	
	</div>
	<div class="mdl-cell mdl-cell--3-col mdl-cell--hide-phone mdl-cell--hide-tablet"></div>
</div></div>


<?php 
get_footer();