25 lines
872 B
PHP
25 lines
872 B
PHP
|
|
<?php
|
||
|
|
/*
|
||
|
|
YARPP Template: Simple
|
||
|
|
Author: mitcho (Michael Yoshitaka Erlewine)
|
||
|
|
Description: A simple example YARPP template.
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<?php if (have_posts()):?>
|
||
|
|
<section class="related-links">
|
||
|
|
<h4 class="related-links__title">
|
||
|
|
<span>Читайте также</span><span></span>
|
||
|
|
</h4>
|
||
|
|
<?php while (have_posts()) : the_post(); ?>
|
||
|
|
<div class="related-links__item">
|
||
|
|
<a class="related-links__item-name" href="<?php the_permalink() ?>">
|
||
|
|
<?php the_title(); ?>
|
||
|
|
</a>
|
||
|
|
<div class="publication__data">
|
||
|
|
<span class="publication__number"><?php echo get_the_date("d.m.Y") ?></span>
|
||
|
|
<?php get_template_part( 'author', 'related' ); ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php endwhile; ?>
|
||
|
|
</section>
|
||
|
|
<?php endif; ?>
|