add files
This commit is contained in:
21
template-parts/home/news-item.php
Normal file
21
template-parts/home/news-item.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<li>
|
||||
|
||||
<?php //get_template_part("template-parts/micro/post"); ?>
|
||||
|
||||
<time datetime="<?= get_the_date("d.m.Y H:i:s") ?>" class="news__time">
|
||||
|
||||
<?= get_the_date("H:i") ?>
|
||||
|
||||
</time>
|
||||
|
||||
<a class="news__name <?= get_post_meta( get_the_ID(), "_breaking", true ) == 1 ? "active" : "" ?>" href="<?= the_permalink() ?>" title="<?= htmlspecialchars( get_the_title() ) ?>">
|
||||
|
||||
<?= the_title() ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php //get_template_part("template-parts/micro/author"); ?>
|
||||
|
||||
<?php //get_template_part("template-parts/micro/image"); ?>
|
||||
|
||||
</li>
|
||||
Reference in New Issue
Block a user