| @@ -44,11 +44,12 @@ | ||
| 44 | 44 | </tr> --> |
| 45 | 45 | <tr> |
| 46 | 46 | <th scope="row"><label for="siteDescription">Site description & context</label></th> |
| 47 | 47 | <td> |
| 48 | - <textarea name="siteDescription" id="siteDescription" class="large-text" rows="4" | |
| 48 | + <textarea name="siteDescription" id="siteDescription" class="large-text" rows="4" maxlength="500" | |
| 49 | 49 | placeholder="Describe your site and add any additional context that will help AI generate better content"></textarea> |
| 50 | - <p class="description">Start with your site's description, then add any relevant information about your business, target audience, or specific requirements.</p> | |
| 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> | |
| 51 | 52 | </td> |
| 52 | 53 | </tr> |
| 53 | 54 | <tr> |
| 54 | 55 | <th scope="row"><label for="designStyle">Design Style</label></th> |
| @@ -107,14 +108,23 @@ | ||
| 107 | 108 | </select> |
| 108 | 109 | <p class="description">Browsers map to native OS fonts and fallback to sans-serif.</p> |
| 109 | 110 | </td> |
| 110 | 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> | |
| 111 | 121 | </tbody> |
| 112 | 122 | </table> |
| 123 | + <div id="aibui-settings-toast" style="display:none;"></div> | |
| 113 | 124 | |
| 114 | 125 | <p class="submit"> |
| 115 | - <button type="submit" class="button button-primary">Save Settings</button> | |
| 126 | + <button type="submit" class="button button-primary button-center">Save Settings</button> | |
| 116 | 127 | </p> |
| 117 | 128 | </form> |
| 118 | 129 | |
| 119 | - <div id="aibui-settings-toast" style="display:none;"></div> | |
| 120 | 130 | </div> |