add files
This commit is contained in:
25
yarpp-template-example.php
Normal file
25
yarpp-template-example.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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; ?>
|
||||
Reference in New Issue
Block a user