<?php

/**
 * The template for displaying related content on single movie page
 *
 * This template can be overridden by copying it to yourtheme/movie-engine/single-movie/section-related.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
}

$movie_engine_design_options = get_option('movie_engine_design_settings', []);
$movie_engine_show_related = isset($movie_engine_design_options['movie_show_related']) ? $movie_engine_design_options['movie_show_related'] : 1;

if ($movie_engine_show_related) {
    \MovieEngine\Utils\TemplateLoader::get_template_part('global/related');
}
