PluginProbe
AI Builder – Generate pages, blocks, images & translate with AI / trunk
AI Builder – Generate pages, blocks, images & translate with AI vtrunk
2.7.10 2.7.9 2.7.8 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.10 All 122 releases
ai-builder / admin / pages / settings.php

settings.php in AI Builder – Generate pages, blocks, images & translate with AI trunk, at admin/pages/settings.php

130 lines 7.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH'))
3 exit; // Exit if accessed directly
4
5 $jwt_token = get_option('aibui_jwt_token', '');
6 if (empty($jwt_token)) {
7 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>';
8 return;
9 }
10 ?>
11 <div class="wrap ai-builder-settings">
12 <h1>AI Builder Settings</h1>
13
14 <p>Configure your global design tokens for AI-generated pages.</p>
15
16 <form id="aibui-settings-form">
17 <table class="form-table" role="presentation">
18 <tbody>
19 <tr>
20 <th scope="row"><label for="primaryColor">Primary color</label></th>
21 <td>
22 <input name="primaryColor" id="primaryColor" type="color" />
23 </td>
24 </tr>
25 <tr>
26 <th scope="row"><label for="secondaryColor">Secondary color</label></th>
27 <td>
28 <input name="secondaryColor" id="secondaryColor" type="color" />
29 </td>
30 </tr>
31 <tr>
32 <th scope="row"><label for="siteName">Site name</label></th>
33 <td>
34 <input name="siteName" id="siteName" type="text" class="regular-text"
35 placeholder="My Company" />
36 </td>
37 </tr>
38 <!-- <tr>
39 <th scope="row"><label for="siteTagline">Tagline</label></th>
40 <td>
41 <input name="siteTagline" id="siteTagline" type="text" class="regular-text"
42 placeholder="We build awesome things" />
43 </td>
44 </tr> -->
45 <tr>
46 <th scope="row"><label for="siteDescription">Site description & context</label></th>
47 <td>
48 <textarea name="siteDescription" id="siteDescription" class="large-text" rows="4" maxlength="500"
49 placeholder="Describe your site and add any additional context that will help AI generate better content"></textarea>
50 <p id="siteDescription-counter" class="description" style="margin-top:4px;margin-bottom:4px;">0/500</p>
51 <p class="description">Enter your site description and add the rules the AI must follow when generating content.</p>
52 </td>
53 </tr>
54 <tr>
55 <th scope="row"><label for="designStyle">Design Style</label></th>
56 <td>
57 <select name="designStyle" id="designStyle" class="regular-text">
58 <option value="">-- Select Design Style --</option>
59 <option value="minimalist">Minimalist & Clean</option>
60 <option value="tech-modern">Tech & Modern (SaaS)</option>
61 <option value="corporate">Corporate & Serious</option>
62 <option value="brutalist">Bold & Brutalist</option>
63 <option value="luxury">Luxury & Elegant</option>
64 <option value="organic">Organic & Soft</option>
65 </select>
66 <p class="description" id="designStyle-description" style="margin-top:8px;color:#646970;font-style:italic;"></p>
67 </td>
68 </tr>
69 <tr>
70 <th scope="row"><label for="blockShapes">Block Shapes</label></th>
71 <td>
72 <select name="blockShapes" id="blockShapes" class="regular-text">
73 <option value="">-- Select Block Shape --</option>
74 <option value="sharp">Sharp (Square)</option>
75 <option value="soft">Soft (Slightly rounded)</option>
76 <option value="rounded">Rounded</option>
77 <option value="pill">Pill (Very round)</option>
78 </select>
79 <p class="description" id="blockShapes-description" style="margin-top:8px;color:#646970;font-style:italic;"></p>
80 </td>
81 </tr>
82 <tr>
83 <th scope="row"><label for="copywritingTone">Copywriting Tone</label></th>
84 <td>
85 <select name="copywritingTone" id="copywritingTone" class="regular-text">
86 <option value="">-- Select Copywriting Tone --</option>
87 <option value="professional">Professional & Formal</option>
88 <option value="friendly">Friendly & Casual</option>
89 <option value="persuasive">Persuasive & Sales-oriented</option>
90 <option value="educational">Educational & Informative</option>
91 <option value="enthusiastic">Enthusiastic & Energetic</option>
92 </select>
93 <p class="description" id="copywritingTone-description" style="margin-top:8px;color:#646970;font-style:italic;"></p>
94 </td>
95 </tr>
96 <!-- <tr>
97 <th scope="row"><label for="nativeFont">Font (native)</label></th>
98 <td>
99 <select name="nativeFont" id="nativeFont">
100 <option value="system-ui">System UI (auto)</option>
101 <option value="-apple-system">Apple System (macOS/iOS)</option>
102 <option value="'Segoe UI'">Segoe UI (Windows)</option>
103 <option value="Roboto">Roboto (Android)</option>
104 <option value="Arial">Arial</option>
105 <option value="Helvetica">Helvetica</option>
106 <option value="'Noto Sans'">Noto Sans</option>
107 <option value="sans-serif">sans-serif</option>
108 </select>
109 <p class="description">Browsers map to native OS fonts and fallback to sans-serif.</p>
110 </td>
111 </tr> -->
112 <tr>
113 <th scope="row"><?php esc_html_e('Headers & Footers', 'ai-builder'); ?></th>
114 <td>
115 <a href="<?php echo esc_url(admin_url('admin.php?page=aibui-headers-footers')); ?>" class="button">
116 <?php esc_html_e('Edit Headers & Footers →', 'ai-builder'); ?>
117 </a>
118 <p class="description"><?php esc_html_e('Generate a custom header and footer for your site with AI.', 'ai-builder'); ?></p>
119 </td>
120 </tr>
121 </tbody>
122 </table>
123 <div id="aibui-settings-toast" style="display:none;"></div>
124
125 <p class="submit">
126 <button type="submit" class="button button-primary button-center">Save Settings</button>
127 </p>
128 </form>
129
130 </div>