add search
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user