<?php
if (!defined('ABSPATH')) {
    exit;
}

/*
 * SmartProductSEO Media Cleanup
 * Version: 1.1.9
 *
 * Permanent Delete page connection.
 * The permanent delete screen uses the same safe Trash manager renderer,
 * with permanent-delete mode enabled.
 */

$smcmlc_trash_manager_file = plugin_dir_path(__FILE__) . 'free-trash.php';
if (file_exists($smcmlc_trash_manager_file)) {
    require_once $smcmlc_trash_manager_file;
}

if (!function_exists('smcmlc_render_permanent_delete_manager')) {
    function smcmlc_render_permanent_delete_manager() {
        if (function_exists('smcmlc_render_trash_manager')) {
            smcmlc_render_trash_manager(true);
            return;
        }

        echo '<p>Trash manager is not loaded yet.</p>';
    }
}

if (!function_exists('smcmlc_render_media_library_delete_manager')) {
    function smcmlc_render_media_library_delete_manager() {
        smcmlc_render_permanent_delete_manager();
    }
}

if (!function_exists('smcmlc_render_free_permanent_delete_manager')) {
    function smcmlc_render_free_permanent_delete_manager() {
        smcmlc_render_permanent_delete_manager();
    }
}