# dobosc/virtual-health architecture

> Architecture diagram of the GitHub repository dobosc/virtual-health, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dobosc/virtual-health
- Repository: https://github.com/dobosc/virtual-health

## Overview

##### Main Components

a. Template Layer
- "template-virtual-health.php" at the top level
- It to header-virtual-health.php and footer-virtual-health.php

b. Component Modules Layer
Components into functional groups:

Hero Components:
- hero-image-content.php
- hero-image-homepage.php
- logo-in-header.php

Media Components:
- media-block.php
- media-carousel.php
- text-media-block.php
- image-text-overlay.php

Interactive Components:
- form-module.php
- google-maps.php
- faqs.php

Content Components:
- cta-pod.php
- expert-block.php

Footer Component:
- flower-footer.php

c. Integration Layer
- Google-maps-script.php as an external integration
- Connection to WordPress core
- ACF integration points

##### Component Organization

**Template Layer**
- ↓
**Header/Footer Layer**
- ↓
**Component Modules Layer**
- ↓
**Integration Layer**

##### Additional Details

Annotations for:
- WordPress hooks and filters
- ACF field group relationships
- Template hierarchy
- Component dependencies

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Template Files]:::template
        L2[Component Modules]:::component
        L3[External Integration]:::external
        L4[ACF Integration]:::acf
        L5[/"Solid Arrow<br>Direct Include"/]
        L6[/"Dashed Arrow<br>ACF Relationship"/]
        L7[/"Dotted Arrow<br>External Service"/]
    end

    subgraph "Template Layer"
        VHT["template-virtual-health.php"]:::template
        HDR["header-virtual-health.php"]:::template
        FTR["footer-virtual-health.php"]:::template
    end

    subgraph "Hero Components"
        HIC["hero-image-content.php"]:::component
        HIH["hero-image-homepage.php"]:::component
        LIH["logo-in-header.php"]:::component
    end

    subgraph "Media Components"
        MB["media-block.php"]:::component
        MC["media-carousel.php"]:::component
        TMB["text-media-block.php"]:::component
        ITO["image-text-overlay.php"]:::component
    end

    subgraph "Interactive Components"
        FM["form-module.php"]:::component
        GM["google-maps.php"]:::component
        FAQ["faqs.php"]:::component
    end

    subgraph "Content Components"
        CTA["cta-pod.php"]:::component
        EB["expert-block.php"]:::component
        IT["icon-text.php"]:::component
    end

    subgraph "Footer Component"
        FF["flower-footer.php"]:::component
    end

    subgraph "Integration Layer"
        GMS["google-maps-script.php"]:::external
        ACF[Advanced Custom Fields]:::acf
        WP[WordPress Core]:::external
    end

    VHT --> HDR
    VHT --> FTR
    
    HDR --> LIH
    HDR -.-> ACF
    
    VHT --> HIC
    VHT --> HIH
    VHT --> MB
    VHT --> MC
    VHT --> TMB
    VHT --> ITO
    VHT --> FM
    VHT --> GM
    VHT --> FAQ
    VHT --> CTA
    VHT --> EB
    VHT --> IT
    
    FTR --> FF
    
    GM ..-> GMS
    GMS ..-> WP
    
    HIC -.-> ACF
    HIH -.-> ACF
    MB -.-> ACF
    MC -.-> ACF
    TMB -.-> ACF
    ITO -.-> ACF
    FM -.-> ACF
    FAQ -.-> ACF
    CTA -.-> ACF
    EB -.-> ACF
    IT -.-> ACF
    FF -.-> ACF

    %% Click events for file paths
    click VHT "https://github.com/DobosC/virtual-health/blob/main//template-virtual-health.php"
    click HDR "https://github.com/DobosC/virtual-health/blob/main//header-virtual-health.php"
    click FTR "https://github.com/DobosC/virtual-health/blob/main//footer-virtual-health.php"
    click HIC "https://github.com/DobosC/virtual-health/blob/main//virtual-health/hero-image-content.php"
    click HIH "https://github.com/DobosC/virtual-health/blob/main//virtual-health/hero-image-homepage.php"
    click LIH "https://github.com/DobosC/virtual-health/blob/main//virtual-health/logo-in-header.php"
    click MB "https://github.com/DobosC/virtual-health/blob/main//virtual-health/media-block.php"
    click MC "https://github.com/DobosC/virtual-health/blob/main//virtual-health/media-carousel.php"
    click TMB "https://github.com/DobosC/virtual-health/blob/main//virtual-health/text-media-block.php"
    click ITO "https://github.com/DobosC/virtual-health/blob/main//virtual-health/image-text-overlay.php"
    click FM "https://github.com/DobosC/virtual-health/blob/main//virtual-health/form-module.php"
    click GM "https://github.com/DobosC/virtual-health/blob/main//virtual-health/google-maps.php"
    click FAQ "https://github.com/DobosC/virtual-health/blob/main//virtual-health/faqs.php"
    click CTA "https://github.com/DobosC/virtual-health/blob/main//virtual-health/cta-pod.php"
    click EB "https://github.com/DobosC/virtual-health/blob/main//virtual-health/expert-block.php"
    click IT "https://github.com/DobosC/virtual-health/blob/main//virtual-health/icon-text.php"
    click FF "https://github.com/DobosC/virtual-health/blob/main//virtual-health/flower-footer.php"
    click GMS "https://github.com/DobosC/virtual-health/blob/main//virtual-health/google-maps-script.php"

    classDef template fill:#3498db,stroke:#2980b9,color:white
    classDef component fill:#e74c3c,stroke:#c0392b,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef acf fill:#2ecc71,stroke:#27ae60,color:white
```
