add files
This commit is contained in:
59
template-parts/archive/list-item.php
Normal file
59
template-parts/archive/list-item.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<!--[archive/list-item]-->
|
||||
|
||||
<?php global $wp_query; ?>
|
||||
|
||||
<div class="newslist__item">
|
||||
|
||||
<?php //get_template_part("template-parts/micro/post"); ?>
|
||||
|
||||
<div class="d-flex">
|
||||
|
||||
<?php if ( has_post_thumbnail() && show_post_thumbnail() ) : ?>
|
||||
|
||||
<a class="newslist__frame" href="<?= the_permalink() ?>">
|
||||
|
||||
<img loading="lazy"
|
||||
src="<?= the_post_thumbnail_url("thumb-320"); ?>"
|
||||
alt="<?= htmlspecialchars( get_the_title() ) ?>"
|
||||
width="224"
|
||||
height="138" />
|
||||
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
|
||||
<div class="newslist__body">
|
||||
<h2 class="newslist__title" style="font-weight:700">
|
||||
|
||||
<a href="<?= the_permalink() ?>">
|
||||
|
||||
<?= the_title() ?>
|
||||
|
||||
</a>
|
||||
|
||||
</h2>
|
||||
<a href="<?= the_permalink() ?>" class="d-none d-md-block mb-4">
|
||||
|
||||
<?= get_first_paragraph() ?>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="publication__data">
|
||||
|
||||
<?php get_template_part("template-parts/post/list-item-date") ?>
|
||||
|
||||
<?php get_template_part("template-parts/post/list-item-author") ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--[/archive/list-item]-->
|
||||
Reference in New Issue
Block a user