
Fields. On Site options: announcement (Group): show (Yes / No), text (Text), link (Link).
<?php
$announcement = ugly_get( 'announcement', 'option' );
if ( $announcement && $announcement->get( 'show' ) ) :
$link = $announcement->get( 'link' );
?>
<div class="announcement">
<?php $announcement->show( 'text' ); ?>
<?php if ( $link ) : ?>
<a href="<?php echo esc_url( $link['url'] ); ?>"><?php echo esc_html( $link['title'] ); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>An editor turns the bar on and off from one screen, without touching the theme.