add files
This commit is contained in:
53
template-parts/search/search-list-item.php
Normal file
53
template-parts/search/search-list-item.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<!--[search/search-list-item]-->
|
||||
|
||||
<div class="newslist__item"
|
||||
itemscope
|
||||
<?php if( get_post_type() == "profile_article"): ?>
|
||||
itemtype="https://schema.org/Article"
|
||||
<?php else: ?>
|
||||
itemtype="https://schema.org/NewsArticle"
|
||||
<?php endif; ?>
|
||||
>
|
||||
|
||||
<?php get_template_part("template-parts/micro/post"); ?>
|
||||
|
||||
<div class="d-flex">
|
||||
|
||||
<div>
|
||||
|
||||
<div class="newslist__body">
|
||||
|
||||
<h3 class="newslist__title">
|
||||
|
||||
<a href="<?= the_permalink() ?>">
|
||||
|
||||
<?= the_title() ?>
|
||||
|
||||
</a>
|
||||
|
||||
</h3>
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<!--[/search/search-list-item]-->
|
||||
Reference in New Issue
Block a user