add styles interview
This commit is contained in:
@@ -20,9 +20,11 @@ if ( $style == 'short' ){
|
||||
$wrapper = 'article-short-wrapper__rfo';
|
||||
$color_style = 'article-short-rfo';
|
||||
$short = true;
|
||||
$template = 'short-rfo';
|
||||
} else {
|
||||
$short = false;
|
||||
$wrapper = 'article-item-wrapper__rfo';
|
||||
$template = 'post-rfo';
|
||||
if ($style == '') {
|
||||
$color_style = 'article-item-rfo';
|
||||
} else {
|
||||
@@ -47,10 +49,11 @@ $posts_count = isset($args['posts_count']) ? $args['posts_count'] : 1;
|
||||
if ($query->have_posts()) : ?>
|
||||
|
||||
<?php while ($query->have_posts()) : $query->the_post(); ?>
|
||||
<?get_template_part( 'content', 'post-rfo',
|
||||
<?get_template_part( 'content', $template,
|
||||
[
|
||||
'class'=>$color_style,
|
||||
'title' => $title,
|
||||
'title_link' => get_category_link(get_category_by_slug($category)),
|
||||
'has_video' => $has_video
|
||||
]);?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
Reference in New Issue
Block a user