post_content, 'bookline_demo' ) ) { return; } self::enqueue_assets(); } /** * Print demo assets. Safe to call from the shortcode (footer scripts still print). */ private static function enqueue_assets(): void { wp_enqueue_style( 'bookline-demo' ); wp_enqueue_script( 'bookline-demo' ); } /** * Render the demo markup. Script and CSS are enqueued, not printed inline. * * @param array|string $atts Shortcode attributes (unused). */ public static function render( $atts = [] ): string { unset( $atts ); if ( ! CommercialRuntime::is_operational() ) { return '
' . esc_html__( 'Booking is unavailable.', 'buildler' ) . '
'; } self::register_assets(); self::enqueue_assets(); $rest = esc_url_raw( rest_url( 'bookline/v1' ) ); $nonce = wp_create_nonce( 'wp_rest' ); $test_mode = self::is_test_mode_active(); $classes = 'bl-demo' . ( $test_mode ? ' bl-demo--test-mode' : '' ); ob_start(); ?>

has( SettingsStore::class ) ) { return false; } $settings = $container->get( SettingsStore::class ); if ( ! $settings instanceof SettingsStore ) { return false; } } catch ( \Throwable ) { return false; } return LivePaymentGuard::using_test_keys( (string) $settings->get( 'payments.stripe_secret_key' ), (string) $settings->get( 'payments.stripe_publishable_key' ) ); } }