<?php
/**
 * Mail Template Settings
 *
 * @package EASYFUA
 */

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

// Verify nonce.
if ( isset( $_REQUEST['_wpnonce'] ) ) {
	check_admin_referer( 'easyfua-nonce' );
}

$view          = isset( $_GET['section'] ) ? sanitize_key( wp_unslash( $_GET['section'] ) ) : 'admin-notification';
$template_path = EASYFUA_PLUGIN_DIR . 'admin/settings/views/' . sanitize_file_name( $view ) . '.php';
if ( file_exists( $template_path ) ) {
	include $template_path;
}
