public function save_image_settings_callback(): void
{
    if ( ! check_ajax_referer('opnv_admin_nonce', 'nonce', false) ) {
        wp_send_json_error(['message' => __('Violación de seguridad: Nonce inválido.', 'optimizador-pro-notoriusvision')], 403);
    }
    if ( ! current_user_can('manage_options') ) {
        wp_send_json_error(['message' => __('Permisos insuficientes.', 'optimizador-pro-notoriusvision')], 403);
    }

    try {
        $post = wp_unslash($_POST);

        update_option('opnv_auto_convert',    isset($post['auto_convert']));
        update_option('opnv_enable_webp',     isset($post['enable_webp']));
        update_option('opnv_enable_avif',     isset($post['enable_avif']));
        update_option('opnv_reverse_convert', isset($post['reverse_convert']));
        update_option('opnv_backup_original', isset($post['backup_original']));
        update_option('opnv_strip_exif',      isset($post['strip_exif']));

        $quality = isset($post['image_quality']) ? (int) $post['image_quality'] : 82;
        $quality = max(50, min(100, $quality));
        update_option('opnv_image_quality', $quality);

        $max_width = isset($post['max_width']) ? absint($post['max_width']) : 1920;
        $max_width = min($max_width, 10000); // tope razonable
        update_option('opnv_max_image_width', $max_width);

        SafeLogger::info('wpo_settings_updated', ['user_id' => get_current_user_id()]);
        wp_send_json_success(['message' => __('Ajustes WPO guardados correctamente.', 'optimizador-pro-notoriusvision')]);

    } catch (\Throwable $e) {
        SafeLogger::error('ajax_save_wpo_failed', ['msg' => $e->getMessage()]);
        wp_send_json_error(['message' => 'Error crítico: ' . $e->getMessage()], 500);
    }
}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//sant-francesc.eu/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://sant-francesc.eu/post-sitemap.xml</loc>
		<lastmod>2026-04-20T05:56:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/page-sitemap.xml</loc>
		<lastmod>2026-05-11T09:30:04+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap1.xml</loc>
		<lastmod>2026-05-21T06:11:34+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap2.xml</loc>
		<lastmod>2026-05-21T06:11:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap3.xml</loc>
		<lastmod>2026-05-21T06:11:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap4.xml</loc>
		<lastmod>2026-05-21T06:10:37+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap5.xml</loc>
		<lastmod>2026-05-17T21:32:24+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap6.xml</loc>
		<lastmod>2026-05-04T05:52:29+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/sermons-sitemap7.xml</loc>
		<lastmod>2026-05-04T05:50:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/tribe_venue-sitemap.xml</loc>
		<lastmod>2026-04-20T06:25:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/tribe_organizer-sitemap.xml</loc>
		<lastmod>2024-05-06T15:01:39+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/tribe_events-sitemap1.xml</loc>
		<lastmod>2026-05-12T02:49:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/tribe_events-sitemap2.xml</loc>
		<lastmod>2026-05-02T04:36:23+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/category-sitemap.xml</loc>
		<lastmod>2026-04-20T05:56:21+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/video-sitemap.xml</loc>
		<lastmod>2025-05-09T01:51:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://sant-francesc.eu/local-sitemap.xml</loc>
		<lastmod>2026-04-19T10:32:31+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->