<?php
    $item = json_decode(get_option('wh_options'));
?>
    <div class="col-12 col-md-4 col-xl-3 float-left">
        <div class="article cell">
            <a class="article__frame" href="<?php echo $item->link; ?>" target="_blank">
                <img loading="lazy" class="d-block lazyload" <?php if(wp_is_mobile()): ?>src="<?= get_template_directory_uri() ?>/assets/img/Profile_lazyload_m.webp"<?php else: ?>src="<?= get_template_directory_uri() ?>/assets/img/Profile_lazyload.jpg"<?php endif; ?> data-src="<?php echo $item->img; ?>" alt="<?php echo $item->title; ?>"  title="<?php echo $item->title; ?>" />
            </a>
            <?php if ($cat->category_parent != 1): ?>
                <span class="sticker-group">
                            <a class="sticker sticker--green" href="<?php echo $item->link; ?>" target="_blank"><?php echo $item->category; ?></a>
                        </span>
            <?php endif; ?>
            <div class="article__body">
                <time datetime="<?php echo $item->date; ?>" class="article__data">
                    <?php echo $item->date; ?>
                </time>
                <a class="article__title" href="<?php echo $item->link; ?>" target="_blank">
                    <?php echo $item->title; ?>
                </a>
                <div class="article__detail">
                    <span class="article__author" >
                        <?php echo $item->author; ?>
                    </span>
                </div>
            </div>
        </div>
    </div>
<!--preview-warhead-mainpage-->