<?php
/********************************************************************
 * Copyright (C) 2024 Darko Gjorgjijoski (https://darkog.com/)
 * Copyright (C) 2024 IDEOLOGIX MEDIA Dooel (https://ideologix.com/)
 *
 * This file is property of IDEOLOGIX MEDIA Dooel (https://ideologix.com)
 * This file is part of Vimeify Plugin - https://wordpress.org/plugins/vimeify/
 *
 * Vimeify - Formerly "WP Vimeo Videos" is free software: you can redistribute
 * it and/or modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 2 of the License,
 * or (at your option) any later version.
 *
 * Vimeify - Formerly "WP Vimeo Videos" is distributed in the hope that it
 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this plugin. If not, see <https://www.gnu.org/licenses/>.
 *
 * Code developed by Darko Gjorgjijoski <dg@darkog.com>.
 **********************************************************************/

defined( 'ABSPATH' ) || exit;
/* @var \Vimeify\Core\Abstracts\BaseTool $tool */
?>
<h2><?php esc_html_e( 'Thumbnail Cache Reset', 'vimeify' ); ?></h2>
<div class="vimeify-tool-content">
	<p><?php esc_html_e( 'Clear all cached video thumbnails. Thumbnails will be re-fetched from Vimeo on next access. This is useful if thumbnails appear outdated or broken.', 'vimeify' ); ?></p>
	<form class="vimeify-tool-form" method="POST" action="">
		<div class="vimeify-tool-form-row vimeify-tool-form-row-progress" style="display: none;">
			<div class="vimeify-tool-progress-bar">
				<p class="vimeify-tool-progress-bar-inner">&nbsp;</p>
			</div>
			<div class="vimeify-tool-progress-info"><?php esc_html_e( 'Initializing...', 'vimeify' ); ?></div>
		</div>
		<div class="vimeify-tool-form-row">
			<input type="hidden" name="id" value="<?php echo esc_attr( $tool->get_id() ); ?>">
			<input type="hidden" name="tool" value="<?php echo esc_attr( $tool->get_slug() ); ?>">
			<button type="submit" class="button button-primary"><?php esc_html_e( 'Reset Thumbnails', 'vimeify' ); ?></button>
		</div>
	</form>
</div>
