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

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

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

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

do_action( 'cyberpress_before_single_tournament' );
?>

<article id="post-<?php echo esc_attr( $tournament->get_id() ); ?>" <?php $tournament->tournament_classes(); ?>>

    <?php do_action( 'cyberpress_single_tournament_title' ); ?>

    <div class="entry-content">

        <?php do_action( 'cyberpress_single_tournament_info' ); ?>

        <?php do_action( 'cyberpress_single_tournament_content' ); ?>

        <?php do_action( 'cyberpress_single_tournament_matches' ); ?>

        <?php do_action( 'cyberpress_single_tournament_videos' ); ?>

        <?php do_action( 'cyberpress_single_tournament_screenshots' ); ?>

    </div><!-- .entry-content -->

    <?php edit_post_link( __( 'Edit', 'cyberpress' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
</article><!-- #post-## -->

<?php do_action( 'cyberpress_after_single_tournament' ); ?>
