# Dynamic sections — setup (cPanel)

Your Clients, Case Studies and Testimonials are now managed from one admin
dashboard and stored as JSON. The 51 .html pages load them with JavaScript —
no PHP needed on the public pages, URLs unchanged.

## Upload structure (web root = public_html/)
public_html/
├── seo-agency/        ← 51 .html pages (unchanged URLs)
├── images/            ← logos, screenshots, photos (admin uploads land here)
├── data/              ← clients.json, case-studies.json, testimonials.json
├── js/                ← rafi-dynamic.js (the loader)
└── admin/             ← index.php, config.php (the dashboard)

## 3 steps to go live
1. Upload all folders above to public_html (keep the same structure).
2. Make these writable so the dashboard can save (chmod 755 in cPanel File Manager):
     /data         and the 3 .json files inside (644 or 664)
     /images/clients   /images/case-studies   /images/testimonials
3. Open  https://rafimedia.com/admin/  and log in.

## Change the password (important)
Edit /admin/config.php → line:  $ADMIN_PASSWORD = 'rafimedia2026';
Set your own password before sharing the URL.

## How it works
- Add/edit/delete clients, case studies, testimonials in the dashboard.
- Upload an image in the form — it saves to the right /images/ subfolder
  and the path is stored automatically. Leave the file empty when editing
  to keep the current image.
- Saving writes the JSON instantly. Refresh any landing page to see changes.

## Notes
- These three sections load via JS, so they appear a moment after the page.
  That's fine — they're social proof, not your core ranking content (hero,
  local text and FAQs are still hard-coded in the HTML for SEO).
- Don't add fake reviews; only publish genuine testimonials.

## NEW: results page, PDFs, and testimonial types
- /results/  → a single page showing ALL case studies in a grid (loads the same JSON).
  Linked from every landing page via the "View all results" button, and the section
  is now labelled "Results" instead of "Case studies".
- /pdfs/      → upload each case study's PDF here (or upload through the dashboard).
  Each case study can have its own PDF link; the card shows "View case study (PDF)".
- Testimonials now have a TYPE in the dashboard:
    • Text  → quote + stars + name (+ optional photo)
    • Image → upload a screenshot of the feedback
    • Video → paste a YouTube/Vimeo link (recommended) or upload an mp4
  Make /pdfs writable (chmod 755) too if you'll upload PDFs via the dashboard.
