add search

This commit is contained in:
2021-09-28 22:25:21 +03:00
parent 0e42ee8071
commit 57858d1fbd
14 changed files with 639 additions and 91 deletions

View File

@@ -20,19 +20,14 @@ if (!$opinions = kuri_set($key)) {
}
# вывод поста
if($opinions ):
if(is_array($opinions)):
foreach($opinions as $post):
setup_postdata( $opinions );
?>
$post = $opinions[0];?>
<div class="left_opinion<?if (isset($subclass)) echo $subclass;?>">
<div class="left_opinion<?if ($args['subclass'] !== '') echo ' '.$args['subclass'];?>">
<div class="left_opinion_title">мнение</div>
<img class="left_preview" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?=$post->post_title;?>">
<div class="left_opinion_text"><a href="<?=get_permalink($post);?>"><?=$post->post_title;?></a></div>
</div>
<?php endforeach;
endif;
<?php endif;