# abdallahoraby/rasnconsult architecture

> Architecture diagram of the GitHub repository abdallahoraby/rasnconsult, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdallahoraby/rasnconsult
- Repository: https://github.com/abdallahoraby/rasnconsult

## Overview

RASN Consult is a WordPress theme for a consulting-services website. Visitors enter through the home page or a standard page, see shared site navigation and page content, and—where configured—receive sections dispatched from flexible-content rows. The theme also supports blog listings and reusable marketing sections such as services, product features, client proof, pricing, and contact calls to action. The excerpts show the page dispatch and selected layouts; many other layouts are present in the tree but were not sampled, so their internal behavior and wiring are not asserted.

Main entry points: [`rasn-consult/template-parts/layouts`](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts) (Flexible Sections), [`rasn-consult/front-page.php`](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/front-page.php) (Home Template), [`rasn-consult/page.php`](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/page.php) (Page Template), [`rasn-consult/index.php`](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/index.php) (Generic Template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_templates["Page Templates"]
  node_home["Home Template<br/>[front-page.php]"]
  node_page["Page Template<br/>[page.php]"]
  node_archive["Generic Template<br/>[index.php]"]
  node_header["Site Header<br/>[header.php]"]
  node_footer["Site Footer<br/>[footer.php]"]
end

subgraph group_layouts["Flexible Layouts"]
  node_flex["Flexible Sections"]
  node_landing["Landing Hero<br/>[hero_landing.php]"]
  node_iconlist["Icon Feature List"]
  node_services["Services Sections"]
  node_product["Product Sections"]
  node_contact["Contact Sections"]
  node_socialproof["Client Proof"]
  node_pricing["Pricing Sections"]
end

subgraph group_content["Content Features"]
  node_blog["Blog Cards"]
end

subgraph group_theme["Theme Configuration"]
  node_fields["ACF Layout Definitions<br/>[functions.php]"]
  node_helpers["ACF Helpers<br/>[acf-helpers.php]"]
end

node_visitor(("Site Visitor"))
node_wordpress(("WordPress"))
node_acf(("ACF Fields"))

node_visitor -->|"requests page"| node_wordpress
node_wordpress -.->|"selects front page"| node_home
node_wordpress -.->|"selects page"| node_page
node_wordpress -->|"selects fallback"| node_archive
node_home -->|"loads header"| node_header
node_home -->|"dispatches layouts"| node_flex
node_home -->|"loads footer"| node_footer
node_page -->|"loads header"| node_header
node_page -->|"dispatches layouts"| node_flex
node_page -->|"loads footer"| node_footer
node_archive -->|"loads header"| node_header
node_archive -->|"renders post part"| node_blog
node_archive -->|"loads footer"| node_footer
node_flex -->|"reads row data"| node_acf
node_fields -->|"defines layouts"| node_acf
node_flex -->|"dispatches by name"| node_landing
node_flex -->|"dispatches by name"| node_iconlist
node_flex -.->|"dispatches by name"| node_services
node_flex -.->|"dispatches by name"| node_product
node_flex -.->|"dispatches by name"| node_contact
node_flex -.->|"dispatches by name"| node_socialproof
node_flex -.->|"dispatches by name"| node_pricing

click node_home "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/front-page.php"
click node_page "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/page.php"
click node_archive "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/index.php"
click node_header "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/header.php"
click node_footer "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/footer.php"
click node_flex "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_landing "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/layouts/hero_landing.php"
click node_iconlist "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/layouts/icon_list_with_image.php"
click node_services "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_product "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_contact "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_socialproof "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_pricing "https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts"
click node_blog "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/content-blog-card.php"
click node_fields "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/functions.php"
click node_helpers "https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/acf-helpers.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_page,node_archive,node_header,node_footer toneBlue
class node_flex,node_landing,node_iconlist,node_services,node_product,node_contact,node_socialproof,node_pricing toneAmber
class node_blog toneMint
class node_fields,node_helpers toneRose
class node_visitor,node_wordpress,node_acf toneIndigo
```

## Components

### Page Templates

- [Home Template](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/front-page.php): `rasn-consult/front-page.php`
- [Page Template](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/page.php): `rasn-consult/page.php`
- [Generic Template](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/index.php): `rasn-consult/index.php`
- [Site Header](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/header.php): `rasn-consult/header.php`
- [Site Footer](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/footer.php): `rasn-consult/footer.php`

### Flexible Layouts

- [Flexible Sections](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`
- [Landing Hero](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/layouts/hero_landing.php): `rasn-consult/template-parts/layouts/hero_landing.php`
- [Icon Feature List](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/layouts/icon_list_with_image.php): `rasn-consult/template-parts/layouts/icon_list_with_image.php`
- [Services Sections](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`
- [Product Sections](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`
- [Contact Sections](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`
- [Client Proof](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`
- [Pricing Sections](https://github.com/abdallahoraby/rasnconsult/tree/main/rasn-consult/template-parts/layouts): `rasn-consult/template-parts/layouts`

### Content Features

- [Blog Cards](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/template-parts/content-blog-card.php): `rasn-consult/template-parts/content-blog-card.php`

### Theme Configuration

- [ACF Layout Definitions](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/functions.php): `rasn-consult/functions.php`
- [ACF Helpers](https://github.com/abdallahoraby/rasnconsult/blob/main/rasn-consult/acf-helpers.php): `rasn-consult/acf-helpers.php`

### Other components

- **Site Visitor**
- **WordPress**
- **ACF Fields**

## Connections

- Site Visitor → WordPress: requests page
- WordPress → Home Template: selects front page
- WordPress → Page Template: selects page
- WordPress → Generic Template: selects fallback (evidence: `rasn-consult/index.php`)
- Home Template → Site Header: loads header (evidence: `rasn-consult/front-page.php`)
- Home Template → Flexible Sections: dispatches layouts (evidence: `rasn-consult/front-page.php`)
- Home Template → Site Footer: loads footer (evidence: `rasn-consult/front-page.php`)
- Page Template → Site Header: loads header (evidence: `rasn-consult/page.php`)
- Page Template → Flexible Sections: dispatches layouts (evidence: `rasn-consult/page.php`)
- Page Template → Site Footer: loads footer (evidence: `rasn-consult/page.php`)
- Generic Template → Site Header: loads header (evidence: `rasn-consult/index.php`)
- Generic Template → Blog Cards: renders post part (evidence: `rasn-consult/index.php`)
- Generic Template → Site Footer: loads footer (evidence: `rasn-consult/index.php`)
- Flexible Sections → ACF Fields: reads row data
- ACF Layout Definitions → ACF Fields: defines layouts (evidence: `rasn-consult/functions.php`)
- Flexible Sections → Landing Hero: dispatches by name
- Flexible Sections → Icon Feature List: dispatches by name
- Flexible Sections → Services Sections: dispatches by name
- Flexible Sections → Product Sections: dispatches by name
- Flexible Sections → Contact Sections: dispatches by name
- Flexible Sections → Client Proof: dispatches by name
- Flexible Sections → Pricing Sections: dispatches by name
