| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.7 Free | |
| 4 | + * @version 3.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | 8 | * @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| @@ -176,8 +176,14 @@ | ||
| 176 | 176 | [], |
| 177 | 177 | FBOX_VERSION |
| 178 | 178 | ); |
| 179 | 179 | |
| 180 | + // Load the Phone Number widget styles on this hook so WordPress injects | |
| 181 | + // them into the editor iframe canvas (enqueue_block_editor_assets does not). | |
| 182 | + \FPFramework\Base\Widgets\PhoneNumber::register_assets(); | |
| 183 | + wp_enqueue_style('fpframework-widget'); | |
| 184 | + wp_enqueue_style('fpframework-phonenumber-widget'); | |
| 185 | + | |
| 180 | 186 | wp_enqueue_script( |
| 181 | 187 | 'firebox-editor', |
| 182 | 188 | FBOX_MEDIA_ADMIN_URL . 'js/blocks/editor.js', |
| 183 | 189 | ['wp-edit-post'], |
| @@ -245,12 +251,12 @@ | ||
| 245 | 251 | $data = [ |
| 246 | 252 | 'google_fonts' => \FPFramework\Libs\GoogleFonts::getFonts(), |
| 247 | 253 | 'google_fonts_names' => \FPFramework\Libs\GoogleFonts::getFontsNames(), |
| 248 | 254 | 'icons' => \FireBox\Core\Libs\Icons::getAll(), |
| 249 | - 'turnstile_site_key' => \FireBox\Core\Helpers\Captcha\Turnstile::getSiteKey(), | |
| 250 | - 'turnstile_secret_key' => \FireBox\Core\Helpers\Captcha\Turnstile::getSecretKey(), | |
| 255 | + 'turnstile_site_key' => \FireBox\Core\Helpers\Captcha\Turnstile::getSiteKey(), | |
| 256 | + 'has_turnstile_secret_key' => (string) \FireBox\Core\Helpers\Captcha\Turnstile::getSecretKey() !== '', | |
| 251 | 257 | 'hcaptcha_site_key' => \FireBox\Core\Helpers\Captcha\HCaptcha::getSiteKey(), |
| 252 | - 'hcaptcha_secret_key' => \FireBox\Core\Helpers\Captcha\HCaptcha::getSecretKey(), | |
| 258 | + 'has_hcaptcha_secret_key' => (string) \FireBox\Core\Helpers\Captcha\HCaptcha::getSecretKey() !== '', | |
| 253 | 259 | 'settings_url' => admin_url('admin.php?page=firebox-settings'), |
| 254 | 260 | 'integrations_registry' => $integrations_registry, |
| 255 | 261 | 'integration_connections' => $integration_connections, |
| 256 | 262 | 'license_type' => defined('FBOX_LICENSE_TYPE') ? FBOX_LICENSE_TYPE : '', |