get();
$ready = $settings->is_ready();
$sitemap_url = home_url( '/aiforya-sitemap.xml' );
$include_tax = ! empty( $s['include_taxonomies'] );
$max_entries = (int) $s['max_entries'];
$labels = $settings->available_post_types();
$counts = $sitemap->counts_by_post_type();
$state_bg = $ready ? 'rgba(16,185,129,0.18)' : 'rgba(239,68,68,0.18)';
$state_fg = $ready ? '#6ee7b7' : '#fca5a5';
$state_ico = $ready ? '' : '';
$sum_posts = array_sum( array_map( 'intval', (array) $counts ) );
$est_urls = min( 1 + $sum_posts, $max_entries );
$types_count = count( $counts );
// Helper D2 : pastille d'aide « ? » charte (AiforyaTooltip). $text déjà traduit.
$tip = static function ( $text ) {
printf( '', esc_attr( $text ) );
};
?>