'; $out .= '
'; $out .= '

Scenarios

'; $out .= '

Browse examples of situations other homeowners have experienced. When something looks familiar, select it and describe your own situation in your own words.

'; $out .= '
'; $raw = @file_get_contents('addon/vs01/config.json'); $cfg = $raw ? json_decode($raw, true) : []; $associations = $cfg['associations'] ?? []; if (!empty($associations)) { $out .= ''; } else { $out .= '
No associations registered.
'; } $out .= ''; return $out; } // --------------------------------------------------------------------------- // RENDER — ASSOCIATION LANDING (carousel + form) // --------------------------------------------------------------------------- function scn01_render_landing($association_slug, $access) { $raw = @file_get_contents('addon/vs01/config.json'); $cfg = $raw ? json_decode($raw, true) : []; $assoc = $cfg['associations'][$association_slug] ?? []; $name = scn01_h($assoc['name'] ?? $association_slug); $scenarios = scn01_load_scenarios(); $out = '
'; $out .= '
'; $out .= '

' . $name . '

'; $out .= '

Browse the scenarios below. Select up to 5 that feel similar to your situation, then describe what happened in your own words.

'; $out .= '
'; // Data island — consumed entirely by scn01.js, no PHP logic beyond this. $out .= ''; if ($access === 'public') { // Public — show carousel + pinned strip read-only (no form) $out .= '
'; $out .= ''; $out .= ''; $out .= '
'; $out .= '
'; $out .= ''; $out .= ''; $out .= '
'; $out .= ''; $out .= '
'; $out .= '
'; $out .= 'Scenarios are public. '; $out .= 'Complete the SASE process '; $out .= 'to submit your own account for this association.'; $out .= '
'; $out .= '
'; return $out; } $form_url = z_root() . '/scn01/' . scn01_h($association_slug); $out .= '
'; $out .= scn01_csrf_token(); // Narrative textarea — above the carousel $out .= '
'; $out .= ''; $out .= ''; $out .= '
'; // Category filter $out .= '
'; $out .= ''; $out .= ''; $out .= '
'; // Carousel $out .= ''; // Pinned strip — stacked below the carousel $out .= '
'; $out .= '
'; $out .= '
'; $out .= 'Once submitted, this record cannot be edited. If you want to add more later, you will need to submit a new record.'; $out .= '
'; $out .= '
'; $out .= ''; $out .= '
'; $out .= '
'; $out .= ''; return $out; }