' . esc_html__('Please sign in to access the AI Builder settings.', 'ai-builder') . '
'; return; } $is_block_theme = function_exists('wp_is_block_theme') && wp_is_block_theme(); $current_theme = wp_get_theme(); $theme_name = $current_theme ? $current_theme->get('Name') : ''; $theme_slug = $current_theme ? $current_theme->get_stylesheet() : ''; $header_part = null; $footer_part = null; $header_edit_url = ''; $footer_edit_url = ''; if ($is_block_theme && function_exists('get_block_templates')) { $header_parts = get_block_templates(array('area' => 'header'), 'wp_template_part'); $footer_parts = get_block_templates(array('area' => 'footer'), 'wp_template_part'); if (!empty($header_parts)) { $header_part = $header_parts[0]; $header_edit_url = admin_url('site-editor.php?postType=wp_template_part&postId=' . str_replace('//', '%2F%2F', $header_part->id) . '&canvas=edit'); } if (!empty($footer_parts)) { $footer_part = $footer_parts[0]; $footer_edit_url = admin_url('site-editor.php?postType=wp_template_part&postId=' . str_replace('//', '%2F%2F', $footer_part->id) . '&canvas=edit'); } } ?>

Twenty Twenty-Five · Ollie · Spectra One · Raft

1

2

3

' . esc_html($header_part->slug) . ''); ?>

' . esc_html($footer_part->slug) . ''); ?>