<?php
    $image = $_view["imageLink"] ?? $_con->getLink(["media", "image", "wpPost", $_view["id"], $_view["imageHeader"], "280", "0"]);
?>

<a href="<?= $_view["link"]; ?>" class="article-card mobile-w-100">
    <div class="row g-0">
        <div class="col-xl-6 col-lg-3">
            <div class="article-picture h-100 d-none d-lg-block" data-lazybg="<?= $image; ?>"> </div>
        </div>
        <div class="col-xl-6 col-lg-9">
            <div class="article-content small">
                <?php if ($_view["company"] ?? null) { ?>
                    <div class="article-company"> <b><?= shorten($_view["company"], 20);?></b> </div>
                <?php } ?>
                <?php if ($main["categories"] ?? null) { ?>
                    <?= $_con->getRenderedView("magazine/categories.partial", $_view["categories"]); ?>
                <?php } ?>
                <h4 class="txt-big crop-text-2"><b><?= $_view["title"]; ?></b></h4>
                <div class="article-author mt-2">
                    <p class="txt-small mb-0">
                        <?php if ($_view["author"] ?? null) { ?>
                            <nobr><?= $_view["author"]; ?></nobr> •
                        <?php } ?>
                        <nobr><?= $_view["dateCreated"]; ?></nobr>
                    </p>
                </div>
                <object class="d-block d-lg-none">
                    <a class="d-inline-block read-more" href="<?= $_view["link"]; ?>"><b>Artikel lesen</b></a><span class="icon rm"></span>
                </object>
            </div>
        </div>
    </div>
</a>