# ai-builder/2.2.3/admin/pages/settings.php

AI Builder – Generate pages, blocks, images &amp; translate with AI, version 2.2.3. 77 lines.

- Page: https://pluginprobe.com/plugins/ai-builder/2.2.3/code/admin/pages/settings.php
- Raw: https://pluginprobe.com/plugins/ai-builder/2.2.3/raw/admin/pages/settings.php
- Modified: 2025-11-30T10:16:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ai-builder/2.2.3/code/admin/pages/settings.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH'))
    exit; // Exit if accessed directly

$jwt_token = get_option('aibui_jwt_token', '');
if (empty($jwt_token)) {
    echo '<div class="ai-auth-container"><div class="ai-message error">' . esc_html__('Please sign in to access the AI Builder settings.', 'ai-builder') . '</div></div>';
    return;
}
?>
<div class="wrap ai-builder-settings">
    <h1>AI Builder – Settings</h1>

    <p>Configure your global design tokens for AI-generated pages.</p>

    <form id="aibui-settings-form">
        <table class="form-table" role="presentation">
            <tbody>
                <tr>
                    <th scope="row"><label for="primaryColor">Primary color</label></th>
                    <td>
                        <input name="primaryColor" id="primaryColor" type="color" />
                    </td>
                </tr>
                <tr>
                    <th scope="row"><label for="secondaryColor">Secondary color</label></th>
                    <td>
                        <input name="secondaryColor" id="secondaryColor" type="color" />
                    </td>
                </tr>
                <tr>
                    <th scope="row"><label for="siteName">Site name</label></th>
                    <td>
                        <input name="siteName" id="siteName" type="text" class="regular-text"
                            placeholder="My Company" />
                    </td>
                </tr>
                <!-- <tr>
                    <th scope="row"><label for="siteTagline">Tagline</label></th>
                    <td>
                        <input name="siteTagline" id="siteTagline" type="text" class="regular-text"
                            placeholder="We build awesome things" />
                    </td>
                </tr> -->
                <tr>
                    <th scope="row"><label for="siteDescription">Site description</label></th>
                    <td>
                        <textarea name="siteDescription" id="siteDescription" class="large-text" rows="4"
                            placeholder="Short description used by AI as context"></textarea>
                    </td>
                </tr>
                <!-- <tr>
                    <th scope="row"><label for="nativeFont">Font (native)</label></th>
                    <td>
                        <select name="nativeFont" id="nativeFont">
                            <option value="system-ui">System UI (auto)</option>
                            <option value="-apple-system">Apple System (macOS/iOS)</option>
                            <option value="'Segoe UI'">Segoe UI (Windows)</option>
                            <option value="Roboto">Roboto (Android)</option>
                            <option value="Arial">Arial</option>
                            <option value="Helvetica">Helvetica</option>
                            <option value="'Noto Sans'">Noto Sans</option>
                            <option value="sans-serif">sans-serif</option>
                        </select>
                        <p class="description">Browsers map to native OS fonts and fallback to sans-serif.</p>
                    </td>
                </tr> -->
            </tbody>
        </table>

        <p class="submit">
            <button type="submit" class="button button-primary">Save Settings</button>
        </p>
    </form>

    <div id="aibui-settings-toast" style="display:none;"></div>
</div>
```
