'The header contains the project name,', 'Header (zobacz tu) zawiera nazwę projektu,' => 'The header contains the project name,', 'Header zawiera nazwę projektu,' => 'The header contains the project name,', 'Header zawiera nazwę projektu' => 'The header contains the project name', 'zawiera nazwę projektu,' => 'contains the project name,', 'zawiera nazwę projektu' => 'contains the project name', 'zobacz tu' => 'see here', 'oraz the main user-facing value proposition' => 'and the main user-facing value proposition', 'oraz główne przesłanie dla użytkownika' => 'and the main user-facing value proposition', 'główne przesłanie dla użytkownika' => 'the main user-facing value proposition', 'aktualny komunikat o statusie projektu' => 'the current project status message', 'wyraźne CTA kierujące do przewodnika startowego' => 'a strong CTA leading to the getting started guide', 'jasny opis działania' => 'a clear description', 'nazwa projektu' => 'project name', 'Struktura jest zgodna z wytycznymi marki i nie wymaga zmian w motywie.' => 'The structure follows the brand guidelines and does not require theme changes.', ' oraz ' => ' and ', ]; uksort($map, function($a, $b) { return strlen($b) <=> strlen($a); }); $text = strtr($text, $map); $text = str_replace( [ 'Header (*see here) contains the project name,', 'Header (see here) contains the project name,', 'Header contains the project name,' ], 'The header contains the project name,', $text ); } return $text; } function aiwest_site_builder_migrate_legacy_admin_notes() { if (!class_exists('AIWEST_Product') || !AIWEST_Product::is_en()) return; foreach (['aiwest_header_plan', 'aiwest_footer_plan'] as $option_name) { $plan = get_option($option_name, []); if (!is_array($plan) || empty($plan['admin_note'])) continue; $normalized = aiwest_site_builder_admin_note($plan['admin_note']); if ($normalized !== $plan['admin_note']) { $plan['admin_note'] = $normalized; update_option($option_name, $plan); } } } function aiwest_site_builder_page() { if (!current_user_can('manage_options')) return; aiwest_site_builder_migrate_legacy_admin_notes(); $notice = ''; $tab = AIWEST_Security::get_key('tab', 'home'); $allowed_tabs = ['home', 'menu', 'header', 'footer', 'pages', 'style', 'graphics', 'directory-map', 'motion', 'blog', 'redirects']; if (!in_array($tab, $allowed_tabs, true)) $tab = 'home'; if (AIWEST_Security::is_post_request() && AIWEST_Security::post_bool('aiwest_site_builder_action')) { check_admin_referer('aiwest_site_builder_action'); $action = AIWEST_Security::post_key('aiwest_site_builder_action'); if ($action === 'save_canvas_background') { update_option('aiwest_canvas_bg_url', AIWEST_Security::post_url('aiwest_canvas_bg_url')); update_option('aiwest_canvas_bg_opacity', max(0, min(1, AIWEST_Security::post_float('aiwest_canvas_bg_opacity', 0.16)))); update_option('aiwest_header_bg_url', AIWEST_Security::post_url('aiwest_header_bg_url')); update_option('aiwest_header_bg_opacity', max(0, min(1, AIWEST_Security::post_float('aiwest_header_bg_opacity', 0.18)))); $notice = '
' . esc_html(__('Canvas and Header background settings were saved.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not add links:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('Internal links have been added to the homepage.', 'ai-webmaster-studio')) . '
' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html($result['message'] ?? __('No new links were added.', 'ai-webmaster-studio')) . '
' . esc_html(__('The homepage or internal linking module was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('AI Header logo has been saved.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Refresh the homepage to see the change.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not apply the menu to the header:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The menu plan was applied to the active AI Header.', 'ai-webmaster-studio')) . '
'; if ($header_id) $notice .= '' . esc_html(__('Edit AI Header', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View AI Header', 'ai-webmaster-studio')) . '
'; $notice .= '' . esc_html(__('The visible header menu uses the structure saved in the Current menu plan table.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not apply the menu:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The menu plan has been applied to the active AI Header.', 'ai-webmaster-studio')) . '
' . esc_html(__('The AI menu module is not available.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not link the footer:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The active AI Footer was linked.', 'ai-webmaster-studio')) . '
' . esc_html($result['message'] ?? __('No new footer links were added.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not link the header:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('Static AI Header items were linked.', 'ai-webmaster-studio')) . '
' . esc_html(__('A native WordPress menu configured on the Menu tab is recommended.', 'ai-webmaster-studio')) . '
' . esc_html($result['message'] ?? __('No new header links were added.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not clean the homepage:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('Duplicate [aiwest_header] / [aiwest_footer] shortcodes were removed from homepage content.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Canvas continues to render the active AI Header and AI Footer automatically.', 'ai-webmaster-studio')) . '
' . esc_html(__('No [aiwest_header] or [aiwest_footer] shortcode was found in homepage content. No changes were made.', 'ai-webmaster-studio')) . '
' . esc_html(__('The static homepage or Canvas module was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('AI Webmaster Studio Canvas has been enabled for the homepage.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('The static homepage or Canvas module was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('AI Webmaster Studio Canvas was disabled for the homepage.', 'ai-webmaster-studio')) . ' ' . esc_html(__('The page now uses the standard theme template.', 'ai-webmaster-studio')) . '
' . esc_html(__('The static homepage or Canvas module was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not undo the changes:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The latest AI changes have been undone.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Restored snapshot from:', 'ai-webmaster-studio')) . ' ' . esc_html($result['snapshot_time']) . '. ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('Preview', 'ai-webmaster-studio')) . '
' . esc_html(__('The selected page or Undo module is unavailable.', 'ai-webmaster-studio')) . '
' . esc_html(__('AI Webmaster Studio Canvas has been enabled for this page.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not enable Canvas for this page.', 'ai-webmaster-studio')) . '
' . esc_html(__('AI Webmaster Studio Canvas was disabled for the page.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not disable Canvas for this page.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not prepare the menu:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The menu plan was prepared.', 'ai-webmaster-studio')) . ' ' . esc_html($result['admin_note'] ?? '') . '
' . esc_html(__('The menu plan was saved but could not be applied to AI Header:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The menu plan was saved and applied to the active AI Header.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Refresh the page to see the new header items.', 'ai-webmaster-studio')) . '
' . esc_html(__('The menu plan has been saved.', 'ai-webmaster-studio')) . ' ' . esc_html(__('It has also been synchronized with the AI Header menu.', 'ai-webmaster-studio')) . ' ' . esc_html(__('To immediately fix header embedding, use the “Save and apply to AI Header” button.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not create the pages:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('Pages created or found for menu items:', 'ai-webmaster-studio')) . ' ' . intval(count($result)) . '.
' . esc_html(__('Could not create the WordPress menu:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The WordPress menu was created or updated.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Menu ID:', 'ai-webmaster-studio')) . ' ' . intval($result['menu_id']) . '.' . $location . '
' . esc_html(__('The menu plan was also synchronized with the AI Header dropdown menu.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not save AI Header:', 'ai-webmaster-studio')) . ' ' . esc_html($updated->get_error_message()) . '
' . esc_html(__('AI Header was saved.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit in WordPress', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('The active AI Header project was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not save AI Footer:', 'ai-webmaster-studio')) . ' ' . esc_html($updated->get_error_message()) . '
' . esc_html(__('AI Footer was saved.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit in WordPress', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('The active AI Footer project was not found.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not prepare the header:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The header structure was prepared.', 'ai-webmaster-studio')) . ' ' . esc_html(__('This is a safe header content project and does not change the theme.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not create the header project:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The header project was created.', 'ai-webmaster-studio')) . ' ID: ' . intval($result) . '. ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('Preview', 'ai-webmaster-studio')) . '
' . esc_html(__('The active AI Header was set.', 'ai-webmaster-studio')) . ' ' . wp_kses_post(__('Use the [aiwest_header] shortcode or the homepage embedding option.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not set the active header.', 'ai-webmaster-studio')) . '
' . esc_html(__('The active AI Footer was set.', 'ai-webmaster-studio')) . ' ' . wp_kses_post(__('Use the [aiwest_footer] shortcode or the homepage embedding option.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('View', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not set the active footer.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not prepare the footer:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The footer structure was prepared.', 'ai-webmaster-studio')) . ' ' . esc_html(__('You can now create a draft page with the footer project.', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not create the footer project:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html(__('The footer project was created.', 'ai-webmaster-studio')) . ' ID: ' . intval($result) . '. ' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' | ' . esc_html(__('Preview', 'ai-webmaster-studio')) . '
' . esc_html(__('Could not prepare the subpages:', 'ai-webmaster-studio')) . ' ' . esc_html($created->get_error_message()) . '
' . esc_html(__('Core subpages were created as drafts or already exist. Item count:', 'ai-webmaster-studio')) . ' ' . intval(count($created)) . '.
' . esc_html(__('Global graphics rules were saved.', 'ai-webmaster-studio')) . ' ' . esc_html(__('Content generation and administrator-started image actions will use these rules unless item-specific settings are selected.', 'ai-webmaster-studio')) . '
' . esc_html(__('The graphics rules module is not available.', 'ai-webmaster-studio')) . '
' . esc_html(__('The website and image visual style was saved.', 'ai-webmaster-studio')) . '
' . esc_html(__('The locations and partners map module is not available.', 'ai-webmaster-studio')) . '
' . esc_html(__('The action could not be completed:', 'ai-webmaster-studio')) . ' ' . esc_html($result->get_error_message()) . '
' . esc_html($success_label) . ' ID: ' . $page_id . ', status: ' . esc_html($result['status']) . '. ';
if ($edit_link) $notice .= '' . esc_html(__('Edit', 'ai-webmaster-studio')) . ' ';
if ($result['status'] === 'publish' && $permalink) {
$notice .= '| ' . esc_html(__('View', 'ai-webmaster-studio')) . '';
} elseif ($preview_link) {
$notice .= '| ' . esc_html(__('Preview', 'ai-webmaster-studio')) . '';
}
if (!empty($result['admin_note'])) {
$admin_note = $result['admin_note'];
if (class_exists('AIWEST_Site_Builder') && method_exists('AIWEST_Site_Builder', 'normalize_admin_note')) {
$admin_note = AIWEST_Site_Builder::normalize_admin_note($admin_note);
}
$notice .= '
' . esc_html($admin_note) . '';
}
$notice .= '
— ID
Canvas: ' . esc_html(__('Enabled', 'ai-webmaster-studio')) . '' : '' . esc_html(__('Disabled', 'ai-webmaster-studio')) . ''; ?>
[aiwest_header] + page content + [aiwest_footer], without the active theme global header and footer for this specific page.', 'ai-webmaster-studio')); ?>
Current menu plan table below.', 'ai-webmaster-studio')); ?>
Independent AI layout mode, the active theme remains the technical base while AI prepares a clear header and menu project.', 'ai-webmaster-studio')); ?>
ID — shortcode: [aiwest_header]
|
[aiwest_header] shortcode / Canvas. It is not the active theme global header, so it is not edited in the active theme settings.', 'ai-webmaster-studio')); ?>
ID — shortcode: [aiwest_footer]
|
[aiwest_footer] shortcode / Canvas. It is not the active theme global footer, so it is not edited in the active theme settings.', 'ai-webmaster-studio')); ?>
AI Webmaster Studio Canvas can be enabled separately for each subpage. Canvas lets AI Webmaster Studio control the layout of that specific page without changing the active theme global settings.', 'ai-webmaster-studio')); ?>
Undo changes is always visible. If no backup exists, clicking it will show a message that no undo snapshot is available.', 'ai-webmaster-studio')); ?>
|
' . esc_html(__('Exists', 'ai-webmaster-studio')) . '' : '' . esc_html(__('Missing', 'ai-webmaster-studio')) . ''; ?> | ID)): ?> — | ID)): ?> — | ID)): ?> — |
·
·
The AI Header background is also applied to the internal header card. If the header project has its own inline background, AI Webmaster Studio automatically makes it semi-transparent so the image remains visible.', 'ai-webmaster-studio')); ?>