[titre, résumé] $aibui_tuto_topics = array( 'create' => array(__('Create a page', 'ai-builder'), __('Describe a page and the AI builds it in the editor.', 'ai-builder')), 'edit' => array(__('Edit with AI', 'ai-builder'), __('Change one block, add a section or tweak the CSS.', 'ai-builder')), 'media' => array(__('Images & text', 'ai-builder'), __('Generate an image or a paragraph right where you need it.', 'ai-builder')), 'ideas' => array(__('Page ideas', 'ai-builder'), __('Find the pages that would bring you visitors.', 'ai-builder')), 'sections' => array(__('Sections', 'ai-builder'), __('Save a section once and reuse it on any page.', 'ai-builder')), 'headers' => array(__('Headers & footers', 'ai-builder'), __('Generate the header and footer of your whole site.', 'ai-builder')), 'translate' => array(__('Translations', 'ai-builder'), __('Translate your pages, header and footer.', 'ai-builder')), 'settings' => array(__('Settings & credits', 'ai-builder'), __('Give the AI your context and keep an eye on credits.', 'ai-builder')), ); /** Carte de guide : titre, étapes [titre, texte HTML], astuce facultative. */ $aibui_tuto_card = function ($id, $number, $title, $intro, $steps, $tip = '') { ?>

  1. AI Builder → Account. 150 credits are included, no credit card needed.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-assistant')) )); ?>
Page replaces the page content. Block adds a new section at the end and keeps the rest. Then pick the model: Haiku is fast, Sonnet is recommended, Opus gives the best quality. The estimated price is shown under the send button.', 'ai-builder')), array(__('Pick a style (optional)', 'ai-builder'), __('Click Need inspiration? Try a style to browse the styles. The eye button shows a preview and the instructions sent to the AI.', 'ai-builder')), ), __('Not happy with the result? Undo last generation under the request field (or Ctrl+Z) puts the page back as it was.', 'ai-builder')); $aibui_tuto_card('edit', 2, __('Edit with AI', 'ai-builder'), __('Improve a page without starting from scratch.', 'ai-builder'), array( array(__('Modify one block', 'ai-builder'), __('Select a block and click Modify with AI. Describe the change, for example “add a button and use a light background”.', 'ai-builder')), array(__('Add content in a specific spot', 'ai-builder'), __('Insert an AI Block from the block inserter (+) where you want it, then describe its content.', 'ai-builder')), array(__('Fine-tune the design', 'ai-builder'), __('Each block has an AI Builder CSS field in its settings sidebar. The CSS button at the top of the AI Builder panel edits the CSS of the whole page.', 'ai-builder')), ), __('To reset the look of a block, remove its class under Block → Advanced → Additional CSS class(es).', 'ai-builder')); $aibui_tuto_card('media', 3, __('Images & text', 'ai-builder'), __('Generate a single image or a piece of text, anywhere in your content.', 'ai-builder'), array( array(__('AI image', 'ai-builder'), __('Select an Image block and click AI image in its toolbar, or Generate with AI in an empty Image block. Describe the image and choose its format.', 'ai-builder')), array(__('AI text', 'ai-builder'), __('Search for “AI Text” in the block inserter, describe the text you need (tone, length, audience) and click Generate AI Text.', 'ai-builder')), )); $aibui_tuto_card('ideas', 4, __('Page ideas', 'ai-builder'), __('Find out which pages are missing from your site.', 'ai-builder'), array( array(__('Describe your business', 'ai-builder'), sprintf( /* translators: %s: Page ideas URL */ __('Go to AI Builder → Page ideas and fill in “Your business”.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-opportunities')) )), array(__('Get suggestions', 'ai-builder'), __('Click Find my next pages. The AI looks at your site and your competitors and explains why each page is worth creating.', 'ai-builder')), array(__('Generate a page in one click', 'ai-builder'), __('Generate the page builds it as a draft. Ideas you dismiss stay in the History tab.', 'ai-builder')), )); $aibui_tuto_card('sections', 5, __('Sections', 'ai-builder'), __('Reusable parts of a page: testimonials, a call to action, a pricing table…', 'ai-builder'), array( array(__('Save a section', 'ai-builder'), __('Select a block in the editor, open its ⋮ menu and choose Save as section. A synced section updates everywhere it is used.', 'ai-builder')), array(__('Reuse it', 'ai-builder'), __('Drag it from the Patterns tab of the editor. The AI also inserts your sections when it builds a page, which saves credits.', 'ai-builder')), array(__('Manage them', 'ai-builder'), sprintf( /* translators: %s: Sections URL */ __('AI Builder → Sections lists them with the pages that use them and the description the AI reads.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-sections')) )), )); $aibui_tuto_card('headers', 6, __('Headers & footers', 'ai-builder'), __('Available with block themes (Full Site Editing).', 'ai-builder'), array( array(__('Open your header or footer', 'ai-builder'), sprintf( /* translators: %s: Headers & Footers URL */ __('In AI Builder → Headers & Footers, click Edit with AI. The Site Editor opens on it.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-headers-footers')) )), array(__('Describe it', 'ai-builder'), __('Open the AI Builder panel and describe the header or footer you want. Your menu is kept.', 'ai-builder')), array(__('Save', 'ai-builder'), __('It applies to every page of your site at once.', 'ai-builder')), )); $aibui_tuto_card('translate', 7, __('Translations', 'ai-builder'), __('Each translation is a separate page, linked to the original.', 'ai-builder'), array( array(__('Choose your languages', 'ai-builder'), sprintf( /* translators: %s: Translations URL */ __('In AI Builder → Translations, set the main language and the languages to offer, and add the language switcher to your header.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-translation-settings')) )), array(__('Translate a page', 'ai-builder'), __('Use the Languages panel in the page settings sidebar, or hover a page in the Pages list and click Translate with AI. The price depends on the length of the page.', 'ai-builder')), array(__('Review and publish', 'ai-builder'), __('The translation is created as a draft. When you change the original later, its translations show “Outdated”: click Update to translate them again.', 'ai-builder')), ), __('Headers and footers are translated from Headers & Footers. Only their texts are translated, so design changes apply to every language.', 'ai-builder')); $aibui_tuto_card('settings', 8, __('Settings & credits', 'ai-builder'), __('Better context gives better pages.', 'ai-builder'), array( array(__('Tell the AI about your site', 'ai-builder'), sprintf( /* translators: %s: Settings URL */ __('In AI Builder → Settings, add your site name, a description and the rules the AI must follow. They are used for every generation.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-settings')) )), array(__('Set a default style', 'ai-builder'), __('Choose the style used for all your pages, or create My style with your own instructions.', 'ai-builder')), array(__('Follow your credits', 'ai-builder'), sprintf( /* translators: 1: Account URL, 2: Credits URL */ __('Every button shows its price before you click. See what you used in Account and change plan in Credits.', 'ai-builder'), esc_url(admin_url('admin.php?page=aibui-assistant')), esc_url(admin_url('admin.php?page=aibui-credits')) )), )); ?>

%1$s.', 'ai-builder'), 'contact@website-ai-builder.com' )); ?>