add styles interview

This commit is contained in:
2025-06-22 20:49:00 +03:00
parent 86687a1832
commit 952aaf80ae
9 changed files with 122 additions and 21 deletions

View File

@@ -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; ?>