add interview styles
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
global $wp_query;
|
||||
$large_first_image = $args['large_first_image'] ?? true;
|
||||
$has_video = $args['has_video'] ?? false;
|
||||
$post_counter = 0;
|
||||
$query = $args['query'] ?? $wp_query;
|
||||
if ($query->have_posts()) {
|
||||
@@ -10,11 +11,11 @@ if ($query->have_posts()) {
|
||||
$query->the_post();
|
||||
|
||||
if ( $post_counter == 1 ) :
|
||||
get_template_part('content', 'post-main-rfo', ['full_width' => $post_count === 1 ]);
|
||||
get_template_part('content', 'post-main-rfo', ['full_width' => $post_count === 1, 'has_video' => $has_video ]);
|
||||
elseif ( $post_counter == 2) :
|
||||
get_template_part('content', 'post-rfo', ['full_width' => $post_count === 1 && $large_first_image]);
|
||||
get_template_part('content', 'post-rfo', ['full_width' => $post_count === 1 && $large_first_image, 'has_video' => $has_video]);
|
||||
else:?>
|
||||
<?get_template_part('content', 'post-rfo', ['full_width' => false]);?>
|
||||
<?get_template_part('content', 'post-rfo', ['full_width' => false, 'has_video' => $has_video]);?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?wp_reset_postdata();
|
||||
|
||||
Reference in New Issue
Block a user