<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wpps-media-rename-panel" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
	<p class="wpps-current-filename">
		<strong><?php esc_html_e( 'Current filename:', 'wppowersuite-lite' ); ?></strong><br>
		<code><?php echo esc_html( $current ); ?></code>
	</p>
	<p>
		<label class="wpps-field-label"><?php esc_html_e( 'New filename', 'wppowersuite-lite' ); ?></label>
		<input type="text" class="widefat wpps-new-filename" value="<?php echo esc_attr( $default_name ?? '' ); ?>" data-default="<?php echo esc_attr( $default_name ?? '' ); ?>" placeholder="<?php esc_attr_e( 'New filename (extension is kept)', 'wppowersuite-lite' ); ?>" />
		<span class="description"><?php esc_html_e( 'Only the name changes. The original file type is always kept.', 'wppowersuite-lite' ); ?></span>
	</p>
	<p>
		<label class="wpps-checkbox-label">
			<input type="checkbox" class="wpps-update-title" value="1" />
			<span><?php esc_html_e( 'Update media title', 'wppowersuite-lite' ); ?></span>
		</label>
	</p>
	<p class="wpps-rename-actions">
		<button type="button" class="button button-primary wpps-rename-file-btn" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
			<?php esc_html_e( 'Rename File', 'wppowersuite-lite' ); ?>
		</button>
		<button type="button" class="button wpps-scan-references-btn" data-attachment-id="<?php echo esc_attr( (string) $post->ID ); ?>">
			<?php esc_html_e( 'Scan References', 'wppowersuite-lite' ); ?>
		</button>
	</p>
	<div class="wpps-rename-result" style="display:none;"></div>
	<div class="wpps-scan-result" style="display:none;"></div>
</div>
