add interview styles
This commit is contained in:
@@ -1,27 +1,38 @@
|
||||
<?php
|
||||
$formatted_date = format_event_date();
|
||||
$full_width = $args['full_width'] ?? false;
|
||||
|
||||
$short = $args['short'] ?? false;
|
||||
//$class = $full_width ? 'article-item-main__rfo' : 'article-item-rfo';
|
||||
$class = isset($args['class']) ? $args['class'] : 'article-item-rfo';
|
||||
$title = isset($args['title']) ? $args['title'] : '';
|
||||
$has_video = isset($args['has_video']) ? $args['has_video'] : false;
|
||||
|
||||
|
||||
?>
|
||||
<div class="article-item-wrapper__rfo">
|
||||
<div class="<?=$class; ?>">
|
||||
<a href="<?php the_permalink(); ?>" class="article-item__image-container">
|
||||
<?if ( $title !== ''):?>
|
||||
<div class="land-cart-title">
|
||||
<div class="land-cart-title__text"><?php echo esc_html($title); ?></div>
|
||||
<div class="land-cart-title__arrow"></div>
|
||||
</div>
|
||||
<?endif?>
|
||||
<div class="<?=$class; ?><?=$has_video === true ? ' has-video' : ''; ?>">
|
||||
<a href="<?php the_permalink(); ?>" class="article-item__image-container<">
|
||||
<?=render_webp_picture_by_post( null, 'news-list-picture'); ?>
|
||||
</a>
|
||||
<div class="article-item__text">
|
||||
<div class="article-time">
|
||||
<img src="<?= get_asset('/icons/time.svg'); ?>" alt="" /><?php echo $formatted_date; ?>
|
||||
<?if (! $short ):?>
|
||||
<div class="article-item__text">
|
||||
<div class="article-time">
|
||||
<img src="<?= get_asset('/icons/time.svg'); ?>" alt="" /><?php echo $formatted_date; ?>
|
||||
</div>
|
||||
<a href="<?php the_permalink(); ?>" class="subtitle-16 article-item__link"><?php the_title(); ?></a>
|
||||
</div>
|
||||
<a href="<?php the_permalink(); ?>" class="subtitle-16 article-item__link"><?php the_title(); ?></a>
|
||||
<? if ($full_width) : ?>
|
||||
<p class="article-item__descr text-13"><?php the_excerpt(); ?></p>
|
||||
<? endif; ?>
|
||||
</div>
|
||||
<div class="article-rfo-details">
|
||||
<div class="article-rfo-details-text"><a href="<?php the_permalink();?>">Подробнее</a></div><div class="article-rfo-details-icon"><svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.57157 16.4283H16.4287M16.4287 16.4283V8.5712M16.4287 16.4283L8.57157 8.5712" stroke="#006842" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
||||
</svg></div></div>
|
||||
<div class="article-rfo-details">
|
||||
<div class="article-rfo-details-text"><a href="<?php the_permalink();?>">Подробнее</a></div><div class="article-rfo-details-icon"><svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.57157 16.4283H16.4287M16.4287 16.4283V8.5712M16.4287 16.4283L8.57157 8.5712" stroke="#006842" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<?endif?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user