| @@ -31,8 +31,9 @@ | ||
| 31 | 31 | <p> |
| 32 | 32 | <a href="<?php echo esc_url($header_link); ?>" class="button button-primary"><?php esc_html_e('Open header in Site Editor', 'ai-builder'); ?></a> |
| 33 | 33 | <a href="<?php echo esc_url($footer_link); ?>" class="button"><?php esc_html_e('Open footer in Site Editor', 'ai-builder'); ?></a> |
| 34 | 34 | </p> |
| 35 | + <p><?php esc_html_e('Once translations exist, insert the “Language Switcher” block in your templates to let visitors change the language.', 'ai-builder'); ?></p> | |
| 35 | 36 | </div> |
| 36 | 37 | |
| 37 | 38 | <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>" class="aibui-card aibui-translation-settings-form"> |
| 38 | 39 | <input type="hidden" name="action" value="aibui_save_translation_settings"> |
| @@ -44,12 +45,12 @@ | ||
| 44 | 45 | <th scope="row"><?php esc_html_e('Language switcher', 'ai-builder'); ?></th> |
| 45 | 46 | <td> |
| 46 | 47 | <label> |
| 47 | 48 | <input type="checkbox" name="enable_switcher" <?php checked($translation_settings['enable_switcher']); ?> /> |
| 48 | - <?php esc_html_e('Display the language selector in the site header', 'ai-builder'); ?> | |
| 49 | + <?php esc_html_e('Enable the Language Switcher block for visitors', 'ai-builder'); ?> | |
| 49 | 50 | </label> |
| 50 | 51 | <p class="description"> |
| 51 | - <?php esc_html_e('When enabled, visitors can pick a language. Only content translated in that language will be shown.', 'ai-builder'); ?> | |
| 52 | + <?php esc_html_e('When enabled, you can insert the “Language Switcher” block into your site header or anywhere else on your pages and patterns. Visitors can then pick a language and only translated content will be shown.', 'ai-builder'); ?> | |
| 52 | 53 | </p> |
| 53 | 54 | </td> |
| 54 | 55 | </tr> |
| 55 | 56 | <tr> |
| @@ -80,70 +81,8 @@ | ||
| 80 | 81 | </fieldset> |
| 81 | 82 | <p class="description"> |
| 82 | 83 | <?php esc_html_e('Choose the languages exposed to visitors via the selector. The default language is always enforced.', 'ai-builder'); ?> |
| 83 | 84 | </p> |
| 84 | - </td> | |
| 85 | - </tr> | |
| 86 | - <tr> | |
| 87 | - <th scope="row"><?php esc_html_e('Language switcher appearance', 'ai-builder'); ?></th> | |
| 88 | - <td> | |
| 89 | - <details> | |
| 90 | - <summary style="cursor:pointer;font-weight:500;"> | |
| 91 | - <?php esc_html_e('Customize the look of the front-end language switcher', 'ai-builder'); ?> | |
| 92 | - </summary> | |
| 93 | - <div style="margin-top:12px;padding-top:8px;border-top:1px solid #e5e7eb;"> | |
| 94 | - <p class="description"> | |
| 95 | - <?php esc_html_e('These options control the floating selector shown on the front-end (top-right corner).', 'ai-builder'); ?> | |
| 96 | - </p> | |
| 97 | - <table class="form-table" role="presentation"> | |
| 98 | - <tbody> | |
| 99 | - <tr> | |
| 100 | - <th scope="row"> | |
| 101 | - <label for="aibui-switcher-bg"><?php esc_html_e('Background color', 'ai-builder'); ?></label> | |
| 102 | - </th> | |
| 103 | - <td> | |
| 104 | - <input type="color" id="aibui-switcher-bg" name="switcher_bg" value="<?php echo esc_attr($translation_settings['switcher_bg']); ?>" /> | |
| 105 | - </td> | |
| 106 | - </tr> | |
| 107 | - <tr> | |
| 108 | - <th scope="row"> | |
| 109 | - <label for="aibui-switcher-text"><?php esc_html_e('Text color', 'ai-builder'); ?></label> | |
| 110 | - </th> | |
| 111 | - <td> | |
| 112 | - <input type="color" id="aibui-switcher-text" name="switcher_text" value="<?php echo esc_attr($translation_settings['switcher_text']); ?>" /> | |
| 113 | - </td> | |
| 114 | - </tr> | |
| 115 | - <tr> | |
| 116 | - <th scope="row"> | |
| 117 | - <label for="aibui-switcher-min-height"><?php esc_html_e('Minimum height (px)', 'ai-builder'); ?></label> | |
| 118 | - </th> | |
| 119 | - <td> | |
| 120 | - <input type="number" id="aibui-switcher-min-height" name="switcher_min_height" min="20" step="1" value="<?php echo esc_attr((int) $translation_settings['switcher_min_height']); ?>" /> | |
| 121 | - </td> | |
| 122 | - </tr> | |
| 123 | - <tr> | |
| 124 | - <th scope="row"> | |
| 125 | - <label for="aibui-switcher-min-width"><?php esc_html_e('Minimum width (px)', 'ai-builder'); ?></label> | |
| 126 | - </th> | |
| 127 | - <td> | |
| 128 | - <input type="number" id="aibui-switcher-min-width" name="switcher_min_width" min="80" step="1" value="<?php echo esc_attr((int) $translation_settings['switcher_min_width']); ?>" /> | |
| 129 | - </td> | |
| 130 | - </tr> | |
| 131 | - <tr> | |
| 132 | - <th scope="row"> | |
| 133 | - <label for="aibui-switcher-alpha"><?php esc_html_e('Background opacity', 'ai-builder'); ?></label> | |
| 134 | - </th> | |
| 135 | - <td> | |
| 136 | - <input type="number" id="aibui-switcher-alpha" name="switcher_alpha" min="0" max="1" step="0.05" value="<?php echo esc_attr($translation_settings['switcher_alpha']); ?>" /> | |
| 137 | - <p class="description"> | |
| 138 | - <?php esc_html_e('0 = fully transparent, 1 = fully opaque. Default is 0.9.', 'ai-builder'); ?> | |
| 139 | - </p> | |
| 140 | - </td> | |
| 141 | - </tr> | |
| 142 | - </tbody> | |
| 143 | - </table> | |
| 144 | - </div> | |
| 145 | - </details> | |
| 146 | 85 | </td> |
| 147 | 86 | </tr> |
| 148 | 87 | </tbody> |
| 149 | 88 | </table> |