<?php
/**
 * The Template for displaying player archives.
 *
 * This template can be overridden by copying it to yourtheme/cyberpress/players/archive.php.
 *
 * @package    cyberpress/templates
 */

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

do_action( 'cyberpress_wrapper_start' );

do_action( 'cyberpress_players_archive_title' );

if ( have_posts() ) :

    do_action( 'cyberpress_players_wrapper_start' );

    do_action( 'cyberpress_archive_player_loop_start' );

    /* Start the Loop */
    while ( have_posts() ) :
        the_post();
        /**
         * Include the player loop archive template for the content.
         */
        do_action( 'cyberpress_archive_player_loop' );
    endwhile;

    do_action( 'cyberpress_archive_player_loop_end' );

    do_action( 'cyberpress_archive_pagination' );

    do_action( 'cyberpress_players_wrapper_end' );

else :

    do_action( 'cyberpress_content_none' );

endif;

do_action( 'cyberpress_wrapper_end' );
