<!--[header/branding-erid]-->

<style>
    .branding__erid {
        position:absolute;
        left:.5rem;
        top:.5rem;
        z-index:99;
        background:rgba(255,255,255,.4);
        font-size:.6rem;
        color:#444;
        padding:0 .2rem;
        display:block;
    }
</style>

<div class="branding__erid">
    <?php if(is_category() || is_single() ): ?>
        <?php
            $category = is_category() ? get_queried_object_id() : (get_the_category( get_queried_object_id() ))[0]->term_id;
            $taxonomy_term_token = get_field("advert_token", "category_" . $category );
            $taxonomy_term_token_2 = get_field("advert_token_2", "category_" . $category );
        ?>
        <?php if($taxonomy_term_token_2 && date("U") > 1704056401): ?>
            <?= $taxonomy_term_token_2 ?>
        <?php elseif( $taxonomy_term_token ): ?>
            <?= $taxonomy_term_token ?>
        <?php endif; ?>
    <?php endif; ?>
</div>

<!--[/header/branding-erid]-->