HEX
Server: Apache/2.4.66 (Debian)
System: Linux 6dfabc3b2241 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: (1000)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/custom-theme/blocks/fallback.php
<?php
/**
 * Fallback block render — shown when a block doesn't have its own render template yet.
 * Displays the block title and ACF field values so content is visible while templates are being built.
 */
$title = $block['title'] ?? 'Block';
$fields = get_fields();
?>
<div style="background: #F7F4E2; border: 2px dashed #CBD4D1; border-radius: 8px; padding: 24px 32px; margin: 16px 0; font-family: 'Acumin Pro', sans-serif;">
    <div style="font-size: 14px; color: #767769; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;">
        <?php echo esc_html($title); ?> — template pending
    </div>
    <?php if ($fields): ?>
        <?php foreach ($fields as $key => $value): ?>
            <?php if (is_string($value) && !empty($value)): ?>
                <div style="font-size: 16px; color: #373436; margin-bottom: 8px;">
                    <strong style="color: #767769;"><?php echo esc_html($key); ?>:</strong>
                    <?php echo esc_html(wp_trim_words($value, 20)); ?>
                </div>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>
</div>