<?php

$cta = get('cta-button', true);

if (!$cta || empty($cta['url'])) {
    return;
}

?>

<a class="header__cta-button | button display-md-none"
   href="<?php echo esc_url($cta['url']); ?>"
   <?php if (!empty($cta['target'])) echo 'target="' . esc_attr($cta['target']) . '"'; ?>>
    <?php echo esc_html($cta['title']); ?>
</a>
