' . esc_html__('Please sign in to access the AI Builder settings.', 'ai-builder') . '
';
return;
}
// Check if the active theme is a supported FSE theme
$supported_fse_themes = array(
'twentytwentytwo',
'twentytwentythree',
'twentytwentyfour',
'twentytwentyfive',
'spectra-one',
'neve-fse',
'raft',
'ollie',
'ona',
'ona-studio',
'ona-fashion',
'ona-architecture',
'ona-photography',
'blockbase',
'bricksy',
'poe',
'beaumont',
'abisko',
'hideo',
'quadrat',
'videomaker',
'axton',
'artsylens',
'catch-fse',
'inspiro-blocks',
'plover',
'jace',
'miniblock-ooak',
'yith-wonder',
);
$current_theme = wp_get_theme();
$current_theme_slug = $current_theme ? $current_theme->get_stylesheet() : '';
$is_supported_fse = in_array($current_theme_slug, $supported_fse_themes, true);
// Get Site Editor URLs for header and footer pattern selection
$header_url = admin_url('site-editor.php?p=%2Fpattern&postType=wp_template_part&categoryId=header');
$footer_url = admin_url('site-editor.php?p=%2Fpattern&postType=wp_template_part&categoryId=footer');
?>