<?php
/**
 * Output of the single tournament title.
 *
 * @package cyberpress/templates
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound

$tournament       = cyberpress()->get_the_tournament();
$tournament_title = $tournament->get_title();

if ( $tournament_title ) : ?>
    <header class="entry-header">
        <h1 class="entry-title">
            <?php echo esc_html( $tournament_title ); ?>
        </h1>
    </header><!-- .entry-header -->
<?php endif; ?>
