<?php

/**
 * The template for displaying TV series archive pages
 *
 * This template can be overridden by copying it to yourtheme/movie-engine/archive-series.php.
 *
 * HOWEVER, on occasion MovieEngine will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @note Please do not delete our CSS classes when you customize, as it may break functionality.
 * @package Movie_Engine
 * @subpackage Movie_Engine/templates
 * @version 1.0.0
 * @since 1.0.0
 */

if (! defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

get_header();
?>

<div class="movie-engine-archive-wrapper movie-engine-plugin movie-engine-library-container movie-engine-ajax-container" data-action="movie_engine_filter_movies" data-post_type="movie_engine_series">
    <div class="movie-engine-container-fluid">

        <?php
        /**
         * Hooks for Archive Header
         */
        do_action('movie_engine_archive_header');
        ?>

        <?php
        /**
         * Hooks for before the grid (e.g. Filter Bar)
         * 
         * @hooked MovieEngine\Frontend\TemplateHooks::render_filter_bar - 10
         */
        do_action('movie_engine_archive_before_grid');
        ?>

        <?php
        /**
         * Hooks for the main archive content (The Loop)
         * 
         * @hooked MovieEngine\Frontend\TemplateHooks::render_archive_grid - 10
         */
        do_action('movie_engine_archive_content');
        ?>

        <?php
        /**
         * Hooks for after the grid (Pagination)
         * 
         * @hooked MovieEngine\Frontend\TemplateHooks::render_pagination - 10
         */
        do_action('movie_engine_archive_after_grid');
        ?>

    </div>
</div>

<?php
get_footer();
